aman123 Posted December 16, 2013 Share Posted December 16, 2013 Dear all,i applied the tutorial explained on this page:http://mypresta.eu/e...oduct-list.htmlHowever, I have problem with Product-list.tplAfter applying changes, the quantity field does not appear and the add to cart button doesn't work any more. Where was I wrong?please check this link http://imantra.in/khulla_kharido/en/3-attaThank youAnil Link to comment Share on other sites More sharing options...
NemoPS Posted December 16, 2013 Share Posted December 16, 2013 Add to cart works for me, and I can also see the quantity box, even if it's misplaced to the far left My alternative: http://nemops.com/prestashop-cart-multiple-products-quantities/ 1 Link to comment Share on other sites More sharing options...
aman123 Posted December 16, 2013 Author Share Posted December 16, 2013 We would like the quantity option next to the add to cart button where the user can specify the quantity and press add to cart and the specific quantity is added directly instead of the current option where you need to click the "Cart" to increase the quantity after pressing the initial add to cart optionhttp://imantra.in/khulla_kharido/ this is what we are working and we wish to have a quantity add field before the add to cart button similar to this reference link: http://delhilibrary.com/prestashop/index.php?id_category=3&controller=categoryOn the product listing pageWe tried adding the quantity field box which you can see on the following page but which is currently not rightly placed...(http://imantra.in/khulla_kharido/en/3-atta)But this doesn't work or is placed properly.. if you add a different quantity you will see that it does not add that specific quantity. Link to comment Share on other sites More sharing options...
aman123 Posted December 16, 2013 Author Share Posted December 16, 2013 Hello Nemo I know cart works but if you add a different quantity you will see that it does not add that specific quantity... just like reference link :http://delhilibrary.com/prestashop/index.php?id_category=3&controller=category so please check again http://imantra.in/kh...arido/en/3-atta this link and help me.... Thank You Link to comment Share on other sites More sharing options...
NemoPS Posted December 16, 2013 Share Posted December 16, 2013 Have you tried my alternative? Link to comment Share on other sites More sharing options...
aman123 Posted December 16, 2013 Author Share Posted December 16, 2013 (edited) Hi Nemo1 Sir i have tried your alternative in local system but not reslove issue. This problem only this template means custmize template not default template default template is working fine.. i have already use in defalut template http://delhilibrary.com/prestashop/index.php?id_category=3&controller=category but it's working so ....... can u help me Thanks Edited December 16, 2013 by aman123 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 16, 2013 Share Posted December 16, 2013 i checked your page and there is no function in ajax-cart.js file that i suggested to use. http://imantra.in/khulla_kharido/themes/theme758/js/modules/blockcart/ajax-cart.js 3. Changing the javascript function And now it's time for last and most important thing in whole modification. We have to edit the javascript add to cart function (related to the AJAX add to cart method). No worries, it will be very easy We must change the ajax-cart.js file located in the blockcart module. So open the file: /modules/blockcart/ajax-cart.js file. line 40 looks like: 1 ajaxCart.add(idProduct, null, false, this); change it to: 1 ajaxCart.add(idProduct, null, false, this, $('#quantity_to_cart_'+idProduct+'').val()); 1 Link to comment Share on other sites More sharing options...
aman123 Posted December 17, 2013 Author Share Posted December 17, 2013 (edited) Hi Vekia, Thank you sir the issue is resolve ur answer is best for my issue thank you very much Thank's Anil Edited December 17, 2013 by aman123 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 17, 2013 Share Posted December 17, 2013 you're welcome glad to hear that i could help you a little in this case i marked this topic as [solved] with regards, Milos Link to comment Share on other sites More sharing options...
aman123 Posted December 27, 2013 Author Share Posted December 27, 2013 Hello Sir, When i category CSV import then get 2 errors No Name (ID: 41,Dees,tessd s fsfsf,3,1) cannot be saved Property Category->name is empty There are 2 warnings. Hide warning URL rewriting failed to auto-generate a friendly URL for: Rewrite link for (ID: 41,Dees,tessd s fsfsf,3,1) was re-written as friendly-url-autogeneration-failed. please give me any solution............ Thank's Link to comment Share on other sites More sharing options...
vekia Posted December 27, 2013 Share Posted December 27, 2013 hello. please create another topic with your question. it's not related to this thread (see forum rules: one topic = one question) thanks in advance. topic closed. Link to comment Share on other sites More sharing options...
Recommended Posts