Jump to content

Mark product sold out if sold with any of the attributes

Recommended Posts


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)

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More