Jump to content

Bulk "add to cart"


Recommended Posts

for a flowers wholesales shop, customer will buy more than one variety, one color. 

 

i need the quantity box instead of "Add to Cart", and showing a "Update" button to add all items with quantity to the cart.

 

i am using 1.6.1, anyone could help?

Link to comment
Share on other sites

You'll need to create a module that will hide the default quantity input and Add to cart button.

Then hook on displayProductButtons and create your Update button and a quantity input for every combination.

Only the current combination quantity input must be displayed, the rest hidden and it must change when the combination changes.

(Or more elegantly, use one quantity input and store all the combinations quantity data somewhere else)

When the Update button is clicked collect all the combination quantity and id and use the javascript ajaxCart.add() method to add them all to the cart.

It will require some work, it's not easy to implement.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...