Jump to content

Mark product sold out if sold with any of the attributes


Recommended Posts

Hi,

Can anybody help me change the coding to solve the following problem:

If I have one pendant for sale with different necklaces (attributes), how can I make the whole item stock 0?

For example:

I offer a pendant (the main item) and the customer can choose a silver necklace (attribute choice with extra value added) or a metal necklace (standard price).
If the customer buys this item with any of these options, I don't have any pendants anymore, but if the customer chose the metal option, the already sold pendant stays for sale with the silver necklace option. How can I make the item sold out for all attributes if one of the attributes is used?

Or mark the product as sold out if any of the attributes is zero. Or, even better, make the product stock amount equal to the attribute with the lowest stock amount.

 

Thanks for your help.

Ivo, NZ.

Edited by ivo71
extra info (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...