| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Hide out of stock attribute | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Hide out of stock attribute
I want to hide 'out of stock' attribute. anyone have idea how to do that? I don't want to hide all options, only these that sold out so customers can see only color/size that are available.
just to be more clear, say size LARGE have black, white and beige. the black sold out, how do I hide the black so customer will see only white and beige? thank you. I use x-cart 4.3.0.
__________________
X-Cart Pro v4.3.0 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Hide out of stock attribute
/common_files/customer/main/product_details.tpl
comment out {$lng.txt_out_of_stock} Code:
__________________
If you need professional help on your x-cart site or any website. Feel free to PM me or Skype me to discuss your project. |
|||||||||
#3
|
|||||||
|
|||||||
Re: Hide out of stock attribute
Quote:
thanks for the help. the out-of-stock options still shown. any other idea how to hide out-of-stock attributes options?
__________________
X-Cart Pro v4.3.0 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Hide out of stock attribute
You can't without some custom coding. Not that hard to hide it when only one option/variant is present but when you have 2+ it becomes very difficult due to the way XC works with and outputs them. XC does the "out of stock" on demand - you have to select options combination that are out of stock in order for XC to calc this and display it. When there is only one option/variant for a product you can use the "avail" attribute to hide any where "avail<1"
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|