• Resolved Andrew Eastman

    (@andrew-eastman)


    On this website we sell hand numbered bottles of rum. Each bottle number is added as a product variation with a stock limit of 1.

    https://illegaltenderrumco.com/product/first-release-bottles-401-500/

    Once each bottle has been purchased the bottle number will appear as “Out of Stock”. (As an example try bottle number 452)

    Is there any settings that I can alter that would automatically remove each individual bottle number (product variation) from the list after they have been purchased?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The fix for this is to increase the variations threshold to a number higher than the number of variations that you have. Here is a code snippet to do so:
    https://gist.github.com/claudiosanches/6f91ad228c2176b986b2

    The down side is the page may take a fraction longer to load. You’ll need to consider the typical download speed of your target market.

    Thread Starter Andrew Eastman

    (@andrew-eastman)

    Thanks for the reply to this thread. I’ve taken a look at this but am a little unsure of how to tackle it.

    Is $product the product id number? And $qty the number that I need to increase higher than the number of variations?

    No, leave $product and $qty exactly as they are. Its the line return 10; that you need to alter. If you have say 78 variations, alter the line to return 100;

    In this example, the number 100 should be higher than the number of variations in any product you have.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Variable Products – How to remove product variation after sale?’ is closed to new replies.