Re: Make out-of-stock variants disappear, and show avail quantities in the pulldown menu
Thanks Marshall, but I still have the same problem I've always had when trying to add a "Please Select An Option" option, namely that the "Please Select An Option" option has to be "in stock" or else the following happens...
"Warning: The product variant you previously defined to be the default one for this product is no longer used as the default selection: the combination of product options of which this variant is made is included into an exception, or the quantity of this variant in stock is 0 (zero), while your store settings do not allow customers to order products that are out of stock (either the option 'Disable inventory tracking' is disabled or the option 'Disable products which are out of stock' is enabled)."
If I put one "in stock" then the script works fine, but the problem is, if all of the "real" products are out of stock then the "Please Select An Option" is the only one "in stock" and the product(s) are still displayed even though "Please Select An Option" cannot be purchased and confuses / frustrates customers. I hope this makes sense.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS
Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
|