Jump to content

[SOLVED] add quantity box to product list not working


Recommended Posts

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 option

http://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=category
On the product listing page

We 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

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 by aman123 (see edit history)
Link to comment
Share on other sites

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());
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...