Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Hide out of stock attribute

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-13-2012, 11:42 AM
 
laguy laguy is offline
 

Newbie
  
Join Date: Jun 2010
Posts: 5
 

Default 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
Reply With Quote
  #2  
Old 03-14-2012, 07:42 AM
  Toora Designs's Avatar 
Toora Designs Toora Designs is offline
 

eXpert
  
Join Date: Aug 2011
Location: California USA
Posts: 281
 

Default 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>
__________________
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.
Reply With Quote
  #3  
Old 03-24-2012, 03:16 AM
 
laguy laguy is offline
 

Newbie
  
Join Date: Jun 2010
Posts: 5
 

Default 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?
__________________
X-Cart Pro v4.3.0
Reply With Quote
  #4  
Old 03-24-2012, 09:01 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,195
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:37 PM.

   

 
X-Cart forums © 2001-2020