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

Getting RID of theQuantity 'input' field and get the dropdown

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 09-02-2009, 12:03 PM
 
Kiwami Kiwami is offline
 

Advanced Member
  
Join Date: Nov 2004
Location: Miami, FL
Posts: 69
 

Default Re: Getting RID of theQuantity 'input' field and get the dropdown

changed it to 500.. still have an input box this is bizzare .. I have another site running 4.2.2 and it's perfect.. i dunno man
__________________
Follow me on twitter www.twitter.com/kiwami
@Kiwami
X-Cart Gold 4.4.3 | Cpanel | Dedicated Server
Reply With Quote
  #12  
Old 09-02-2009, 12:06 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Getting RID of theQuantity 'input' field and get the dropdown

Go to the 'modules' section on the left hand side of the admin area. Make sure product options is enabled.
If it is, I have no idea why its not working.
__________________
- Shane Munroe
Reply With Quote
  #13  
Old 09-02-2009, 12:10 PM
 
Kiwami Kiwami is offline
 

Advanced Member
  
Join Date: Nov 2004
Location: Miami, FL
Posts: 69
 

Default Re: Getting RID of theQuantity 'input' field and get the dropdown

lol.. yeah.. i'm really lost here. Its enabled.
__________________
Follow me on twitter www.twitter.com/kiwami
@Kiwami
X-Cart Gold 4.4.3 | Cpanel | Dedicated Server
Reply With Quote
  #14  
Old 09-09-2009, 11:17 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Getting RID of theQuantity 'input' field and get the dropdown

Hi Kiwami -

Just wanted to report I see the same issue on a 4.2.2 X-CART. Everything was working properly until I started adding options/variants to a product.

I see by looking at the differences between 4.2.1 & 4.2.2 - this was an area which was modified - both in the administration and the front end display for 4.2.2

My troubles started when I added product options and variants to a product - then something stuck which is causing various smarty "input_box_enabled" variables to stay set. These variables, when set, will display an input text box no matter what else is set. I suspect there is a bug hidden in the php - not the templates.

Unless there is a setting in the admin somewhere that I don't know about that would set variables like $product.quantity_input_box_enabled??

I'm under the gun right now - so I don't have time to do the steps to verify that it is a bug. For now - I hacked product.tpl and buy_now.tpl to remove the option to display an input text box for quantity - which I don't ever foresee needing. (This cart will never have large quantities to purchase)
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #15  
Old 09-23-2009, 12:59 AM
 
Gaelle Gaelle is offline
 

Newbie
  
Join Date: Dec 2006
Posts: 1
 

Default Re: Getting RID of theQuantity 'input' field and get the dropdown

Heya,

I'm using 4.2.2 and have the same problem as above.

Can you share what you did to edit the product.tpl and buy-now.tpl as I'd like to do the same but wouldn't dare touch it without guidance.

Thank you.
__________________
X-Cart Gold 4.2.2
Reply With Quote
  #16  
Old 09-23-2009, 04:02 AM
 
spence88mph spence88mph is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 95
 

Default Re: Getting RID of theQuantity 'input' field and get the dropdown

I have the same issue with 4.2.2, very frustrating, time to hack product.tpl!
__________________
-------------------
4.2.2
4.1.9
Reply With Quote
  #17  
Old 09-23-2009, 11:41 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Getting RID of theQuantity 'input' field and get the dropdown

I've attached my modified product.tpl. Remember - this is not a fix - it is just a hack - so use with caution.
It removes from the template decisions based on this variable: $product.quantity_input_box_enabled

with the impact of never allowing the quantity box to be input text.

I suspect the setting of that variable might have a problem - but have not had time to figure out how to duplicate the issue so it can reported as a bug.

It would not be a bad idea for someone to review the hack to make sure I am not missing any unintended consequences.
Attached Files
File Type: zip product.tpl.zip (2.9 KB, 96 views)
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #18  
Old 11-11-2010, 09:50 AM
  webxonelex's Avatar 
webxonelex webxonelex is offline
 

Newbie
  
Join Date: May 2010
Posts: 4
 

Default Re: Getting RID of theQuantity 'input' field and get the dropdown

My question is slightly different. I would like to replace the input box as well but the customer wants only the specified quantities to be in the drop down for the reseller (ie; 12,25,50,...500). I other words, the customer doesn't want to sell quantities in between ranges. They are exact quantities only .. Does anyone have any suggestions on how I should approach this in light of all that has been posted here? I would appreciate any input on this. Thanks!
__________________
Lisa Usher
WebxOne Solutions
_________________
X-Cart 4.1.x, 4.2.1, 4.3.x, 4.4.x Gold
LiteCommerce v2
All Addons
Template integration
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 08:50 AM.

   

 
X-Cart forums © 2001-2020