![]() |
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. |
Re: Hide out of stock attribute
/common_files/customer/main/product_details.tpl
comment out {$lng.txt_out_of_stock} Code:
<strong>{*{$lng.txt_out_of_stock}*}</strong> |
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? |
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"
|
All times are GMT -8. The time now is 04:25 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.