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

How to hide "You may specify a quantity up to {{max}}."

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-07-2010, 04:32 PM
  littlebird1111's Avatar 
littlebird1111 littlebird1111 is offline
 

Advanced Member
  
Join Date: Dec 2009
Posts: 45
 

Question How to hide "You may specify a quantity up to {{max}}."

In my store on the products list page under each item it displays:

You may specify a quantity up to {{max}}.

where {{max}} is the quantity in stock.

I have unchecked the box in General Settings>Appearance Options>Display Settings> Show quantity in stock

but that check mark only affects whether the Quantity in stock is displayed on the product detail page, not the products list.

I see the language variable I have for this is:

lbl_product_quantity_type_error

How can I hide this message by commenting it out? I do want to keep the language variable because this is the same error that shows up if people try to enter a quantity into the select box which is too high. But I do not want customers to see how much I have of each item.

I have a highly customized 4.2.2 with a custom skin on it: www.mccombsplan.com so if you can point me in the direction of any files where this might have been added it, that would be truly appreciated.

Thanks for any help!

Lisa
__________________
X-Cart Gold 4.2.2
X-Special Offers
X-AOM
X-FancyCategories
X-Affiliate
BCSE Point of Sale Module
BCSE Address Book
BCSE Preorder Backorder Module
RubyMods FedEx Module
Rubberneck's Endicia/Dazzle Module
Lots of custom work
www.mccombsplan.com/store
Reply With Quote
  #2  
Old 09-08-2010, 08:06 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How to hide "You may specify a quantity up to {{max}}."

Edit skin1/customer/main/product.tpl
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 09-08-2010, 08:37 AM
  littlebird1111's Avatar 
littlebird1111 littlebird1111 is offline
 

Advanced Member
  
Join Date: Dec 2009
Posts: 45
 

Default Re: How to hide "You may specify a quantity up to {{max}}."

Thanks Steve.

What specifically am I looking for?
__________________
X-Cart Gold 4.2.2
X-Special Offers
X-AOM
X-FancyCategories
X-Affiliate
BCSE Point of Sale Module
BCSE Address Book
BCSE Preorder Backorder Module
RubyMods FedEx Module
Rubberneck's Endicia/Dazzle Module
Lots of custom work
www.mccombsplan.com/store
Reply With Quote
  #4  
Old 09-08-2010, 01:11 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How to hide "You may specify a quantity up to {{max}}."

Sorry products list templates are skin1/customer/main/products_list.tpl and skin1/customer/main/products_t.tpl, depending on how you display your products in the list. You are looking for that language variable. It could be also in skin1/customer/main/buy_now.tpl
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
littlebird1111 (09-08-2010)
  #5  
Old 09-08-2010, 05:10 PM
  littlebird1111's Avatar 
littlebird1111 littlebird1111 is offline
 

Advanced Member
  
Join Date: Dec 2009
Posts: 45
 

Default Re: How to hide "You may specify a quantity up to {{max}}."

Thanks a bunch!

It was in the buy_now.tpl, which makes sense because I have the Buy Now option enabled for the product list.

Ahh - there's so much more to customize in these templates.
__________________
X-Cart Gold 4.2.2
X-Special Offers
X-AOM
X-FancyCategories
X-Affiliate
BCSE Point of Sale Module
BCSE Address Book
BCSE Preorder Backorder Module
RubyMods FedEx Module
Rubberneck's Endicia/Dazzle Module
Lots of custom work
www.mccombsplan.com/store
Reply With Quote
  #6  
Old 09-08-2010, 05:53 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: How to hide "You may specify a quantity up to {{max}}."

Glad you got it working
__________________
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 02:16 AM.

   

 
X-Cart forums © 2001-2020