| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Eliminate out of stock options | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Eliminate out of stock options
I've developed a small mod to eliminate out of stock options from displaying on the product page. Note this eliminates options, not variants. For example, if you have a product with 3 colors (red, green, blue) and 3 sizes (S, M, L) and your stock looks like this:
Code:
There are two files to change. In modules/Product_Options/customer_options.php find: Code:
Code:
Code:
Code:
This was developed and tested on 4.0.14 but should drop in easily in other versions. Hope this helps someone out.
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#2
|
|||||||
|
|||||||
Re: Eliminate out of stock options
Hey Ralph...quick question...you say this eliminates options, not variants. However, since options don't have a stock value associated with them, not sure that makes any sense? Basically I have a client who wants to eliminate out of stock variants from displaying...is that what this does?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Re: Eliminate out of stock options
It eliminates option values where all variants that include that value have no stock. If you have a single option class for a product then the net effect is to eliminate out of stock variants. If you have multiple option classes for a product there will still be option value combinations that can be out of stock.
To eliminate all out of stock variants it requires some somewhat complex UI changes that I haven't found the time to tackle yet. The two most common are:
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#4
|
|||||||
|
|||||||
Re: Eliminate out of stock options
Got it, thanks! I think someone could make a decent chunk of change if they wrote a 'dynamic option' mod where one option controls what is displayed in the next option.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
Re: Eliminate out of stock options
Quote:
Hello, Do you happen to know how to do the above like nordstrom.com? I am looking for mod just like this ASAP and am willing to pay a reasonable price for it. Thanks in advance!
__________________
X-Cart Gold v4.4.1 |
|||||||
#6
|
|||||||
|
|||||||
Re: Eliminate out of stock options
Has anyone done this? I need this like yesterday?
Quote:
__________________
X-Cart Gold various versions Tahoe Web Design WebsiteCM.com - We recommend WebsiteCM |
|||||||
#7
|
|||||||
|
|||||||
Re: Eliminate out of stock options
Does anyone know if this will work with 4.1.8?
Quote:
Well, since I have dug this thread out of the back room, apparently no one wanted to make a good chunk of change! I sure wish I knew enough to be able to make this happen. But for now, if the original post will work with 4.1.8, I will use it. Any help is better than none.
__________________
- - Versions: 4.1.10 and 4.3.0 (see post for which cart) "Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison "Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982 "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
#8
|
|||||||
|
|||||||
Re: Eliminate out of stock options
I have used it on 4.1.8 successfully, yes.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
Re: Eliminate out of stock options
Were there any modifications you had to make to the original post? I can not seem to get it to work on the test server.
__________________
- - Versions: 4.1.10 and 4.3.0 (see post for which cart) "Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison "Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982 "Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes |
|||||||
#10
|
|||||||
|
|||||||
Re: Eliminate out of stock options
I'll need to dig back into the code. I'm adding it to a site this week, I'll post back here with the results.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|