I'm very new to using Wix code and coding in general so please be gentle with me.
I have a store on my Wix site and I sell unique handmade items. I have a problem with the way the variants work, and am unable to solve it using the standard Wix Store settings. Let me explain. Say I have one unique handmade pendant, but want to offer it on a variety of chain lengths. I need to price these chain lengths differently, so must select 'Manage pricing and inventory for variants' in my store listing page, then set a quantity of at least one for each chain length if it is to be available to purchase. The problem is, I only have one pendant even though I have many chains, so if somebody buys the pendant on a short chain, it will still show as in stock on a long chain, even though the only pendant I have has sold.
Is there a way to use Wix code to override this and set the inventory for the item, even though I have set different prices for each of the variants?
Thanks for reading and huge thanks in advance for any help that can be offered.