gaspower Posted February 14, 2012 Share Posted February 14, 2012 Hello, I have added the below to product_info.php, which should have produced a quanity field next to the "Add To Cart" button. It does add the field, but it is not size 2? It is about size 20? <span class="buttonAction"><?php echo '<span class="text">' . TEXT_ENTER_QUANTITY . ':' .' ' . tep_draw_input_field('cart_quantity', '1', 'size="5" style="vertical-align:middle;"') . '</span> ' . tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span> Thanks JR Link to comment Share on other sites More sharing options...
♥14steve14 Posted February 15, 2012 Share Posted February 15, 2012 I did something similar which seemed to work. I added <span class="buttonAction"><?php if ($products_options_total['total'] != 1) { echo 'Enter Quantity: ' . tep_draw_input_field('cart_quantity','1','size="3" style="text-align:right;"') . ' ' ; } ?><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span> which is a direct replacement for your code. REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
jerseyboy Posted February 17, 2012 Share Posted February 17, 2012 Thats fine, but if you change the quantity, it doesn't get added to the shopping cart. Link to comment Share on other sites More sharing options...
multimixer Posted February 18, 2012 Share Posted February 18, 2012 Of course it does not, because you did just the half job. Other half is in includes/application_top.php where the form get processed. Illustrated example here My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Teamjr Posted February 18, 2012 Share Posted February 18, 2012 Hey Multimixer, Thanks for the advice. Link to comment Share on other sites More sharing options...
jerseyboy Posted February 20, 2012 Share Posted February 20, 2012 Thanks. That worked perfectly. Link to comment Share on other sites More sharing options...
deiana38 Posted October 20, 2012 Share Posted October 20, 2012 Hi, I follower the steps and I had it for in min. and then it disapered ? any ideas? Link to comment Share on other sites More sharing options...
multimixer Posted October 20, 2012 Share Posted October 20, 2012 @@deiana38 , what disappeared? My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
deiana38 Posted October 20, 2012 Share Posted October 20, 2012 Hi, I am trying to add the box's quanity and add to cart on the right side I followed the directions and it was there for a moment and now it's bact to the buy now button. what info do you need to see what I did wrong. I am a newbie Link to comment Share on other sites More sharing options...
deiana38 Posted October 21, 2012 Share Posted October 21, 2012 what I just noticed is when I click on the accual product I see what I was trying to do but I would like it in: this is easyer to exsplain: 1:click on red plum, 2:click on 9/16/12 3: click on product image. I step three is the quanity add to cart. I would like it in the page that is in the second click. Also I am seeing Text_edit_quanity can this be changed to Quanity ? http://delightfulcouponclipper.com/ Link to comment Share on other sites More sharing options...
multimixer Posted October 21, 2012 Share Posted October 21, 2012 @@deiana38 What you need is a quantity input field on the product listing pages, that is the index.php file that use includes/modules/product_listing.php to create the listing layout Search the forum for this, there is an addon also I think, or you can try to do it your self, the logic is similar to what is done on product_info.php + includes/application_top.php where you succeed to do it very well My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
deiana38 Posted October 21, 2012 Share Posted October 21, 2012 Hi, the only thing I found tell what to put in the includes/modules/product_listing.php ended up putting a quanity box ad to cart in the header box ? I am not sure what needs to be changed in the product listing. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.