X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Hide out of stock attribute (https://forum.x-cart.com/showthread.php?t=62953)

laguy 03-13-2012 11:42 AM

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.

Toora Designs 03-14-2012 07:42 AM

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>

laguy 03-24-2012 03:16 AM

Re: Hide out of stock attribute
 
Quote:

Originally Posted by Toora Designs
/common_files/customer/main/product_details.tpl
comment out {$lng.txt_out_of_stock}
Code:

<strong>{*{$lng.txt_out_of_stock}*}</strong>



thanks for the help. the out-of-stock options still shown. any other idea how to hide out-of-stock attributes options?

cflsystems 03-24-2012 09:01 AM

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.