arczi Posted February 25, 2016 Share Posted February 25, 2016 for quantity box on product page only need to add this line in product_info.php echo tep_draw_input_field('cart_quantity', '1', 'maxlength="2"'); ...where you want to have qty box and make changes in application_top.php find: case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { $attributes = isset($HTTP_POST_VARS['id']) ? $HTTP_POST_VARS['id'] : ''; $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes))+1, $attributes); replace with: $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes)) + $HTTP_POST_VARS['cart_quantity'], $attributes); that's all :thumbsup: osC 2.3.4 Link to comment Share on other sites More sharing options...
greasemonkey Posted December 21, 2016 Share Posted December 21, 2016 Hey all, I've been following this thread closely and I'm preparing my site to transition to SSL However, I'm having an issue with this form.... showing an insecure form in Chrome... $prod_list_contents .= ' <div class="col-xs-6 text-right button-listing ">' . tep_draw_form('buy_now', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id='. $listing[$x]['products_id'], $request_type), 'POST') . tep_draw_input_field('buyqty', '1', 'style="width:44px;text-align:center;"', 'tel') . ' ' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'fa fa-shopping-cart', NULL, NULL, NULL, 'btn-success btn-md') . '</form></div>'; Is it possible $request_type is not global on product_listing???? Link to comment Share on other sites More sharing options...
♥Tsimi Posted December 21, 2016 Share Posted December 21, 2016 @@greasemonkey Hi Scott Are you trying to switch your shop to full SSL? Have you tried to use 'SSL' instead of $request_type? Link to comment Share on other sites More sharing options...
greasemonkey Posted December 22, 2016 Share Posted December 22, 2016 @@greasemonkey Hi Scott Are you trying to switch your shop to full SSL? Have you tried to use 'SSL' instead of $request_type? Hi Lambros, yes... I'm trying to switch to full ssl. Yes, I have tried 'SSL' in place of $request_type.... I guess that answers my own question (duh) about request_type being global.... if it's not working with SSL. Is in in the wrong possition maybe??? Link to comment Share on other sites More sharing options...
Dan Cole Posted December 22, 2016 Author Share Posted December 22, 2016 @@greasemonkey Scott...just a guess...is the bracket following the $request_type in the right place? Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
greasemonkey Posted December 22, 2016 Share Posted December 22, 2016 @@Dan Cole , I've looked at that.... but haven't had any success it getting it to pass. More playing today. Any suggestions would be greatly appreciated... Anyone use a buy multiple now from product listing??? Link to comment Share on other sites More sharing options...
Dan Cole Posted December 22, 2016 Author Share Posted December 22, 2016 @@greasemonkey Scott unfortunately I don't have time to play with it right now but the two things that I would do is to echo out $request_type to see if it is defined and if so I would then take at look at the function "tep_href_link" to see how to pass the values to it correctly. That should get you on the right path. Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
greasemonkey Posted December 22, 2016 Share Posted December 22, 2016 Just doing some more testing... and although it is "failing" at whynopadlock..... suggesting a Chrome error... Testing with Chrome (I didn't have Chrome installed in any machine close to me) it seems just fine. And when I view source it looks good to me???? <form name="buy_now" action="https://www.mywebsite.com/sandbox/featured_products.php?sort=5d&action=buy_now&products_id=4902" method="POST"><input type="tel" name="buyqty" value="1" style="width:44px;text-align:center;" class="form-control" /> <button type="submit" class="btn btn-success btn-md"> <span class="fa fa-shopping-cart"></span> Buy It</button></form> Maybe I should just go with it? The specific "warning" is; Insecure <form> call.Found on line # 398 in file: www.mywebsite.com/sandbox/featured_products.php (Note: Chrome will show a security error for any secure page with an insecure <form> call on the page) Link to comment Share on other sites More sharing options...
♥14steve14 Posted December 22, 2016 Share Posted December 22, 2016 @@greasemonkey Have a google for that specific error. There seems to me many results on that error, and you may find one that helps fix yours. I expect there is something in the form code that is going to http and not https. REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
greasemonkey Posted December 22, 2016 Share Posted December 22, 2016 @@14steve14 thanks... ya googled for hours and it seems the vast majoritry of what I'm finding are much more simple forms. Link to comment Share on other sites More sharing options...
greasemonkey Posted December 23, 2016 Share Posted December 23, 2016 Hey all, anyone have a slightly out of date version of Chrome the can test a link for me? Please PM if so... Link to comment Share on other sites More sharing options...
Dan Cole Posted December 23, 2016 Author Share Posted December 23, 2016 Mine shows .... Version 55.0.2883.87 m IF that is of any help just let me know. Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
greasemonkey Posted December 23, 2016 Share Posted December 23, 2016 Mine shows .... Version 55.0.2883.87 m IF that is of any help just let me know. Dan Thanks Dan. That's what I have... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.