Hi, with the new 9.003, is it possible to set up a category page with multiple products that can be added with one click? And, if so, how? Lea-Ann
Announcement
Collapse
No announcement yet.
multi-add category page?
Collapse
X
-
Re: multi-add category page?
I should have some examples to post shortly, but this is the type of thing that is going to be unique to each persons store, because most people have customized category layout.
But at a high level here are the things you need to change to your category page to get it to work:
1. Create a copy of your CTGY page - copy and paste the code from all templates assign all the same items
2. Then in the Product List Layout section make the following changes:
a. Typically each product has its own individual form for add to cart.. You need to change that so there is only a single form wrapped around all products and remove the add to cart buttons.
b. Change the hidden input for Action from ADPR, to ADPM (Add Multiple Products to the cart)
c. Add a quantity text input next to each product so the quantity can be set for each product. It should be defaulted to 0.
d. Add a single submit button within the form.
When the add to cart button is clicked, Miva will go though all products on the page, and any product with a quantity of 1 will be added to the cart.
Comment
-
Re: multi-add category page?
Originally posted by Brennan View PostI should have some examples to post shortly, but this is the type of thing that is going to be unique to each persons store, because most people have customized category layout..
Comment
-
Re: multi-add category page?
EDITED: FIXED -- working on this . . . the add to basket button doesn't actually work. can anyone give me some pointers of other things to check?
http://www.knittingtoday.com/Merchan...Code=MARSIELLELast edited by lea-ann; 05-02-15, 06:40 AM.
Comment
-
Re: multi-add category page?
Originally posted by Brennan View Post
When the add to cart button is clicked, Miva will go though all products on the page, and any product with a quantity of 1 will be added to the cart.
<input type="hidden" name="Products[ &mvt:product:id; ]:quantity" value="GT 1">
Comment
-
Re: multi-add category page?
PROBLEM: Add to cart adds one of each item within the category, regardless of quantity in the input box.
http://www.knittingtoday.com/category/MARSIELLE.html
Comment
-
Re: multi-add category page?
Originally posted by lea-ann View PostPROBLEM: Add to cart adds one of each item within the category, regardless of quantity in the input box.
http://www.knittingtoday.com/category/MARSIELLE.html
Code:<input type="text" name="Quantity" value="0">
Code:<input type="text" name="Products[ &mvt:product:id; ]:quantity" value="0">
Code:<input type="hidden" name="Products[ &mvt:product:id; ]:quantity" value="1">
Comment
-
Re: multi-add category page?
Originally posted by fastees View PostDoes this work with attributes?HTML Code:<mvt:item name="product_attributes" param="product:id" />
Here is a complete example of a Multi-Add on a category page that displays attributes:
https://gist.github.com/steveosoule/...fbcd02c9e53cdc
Comment
-
Re: multi-add category page?
Hi Sam,
Link given by Sam is a correct example of multi add to cart, it's just that there is only one product in that page, you can try same with more products.
Also, you heard right that default Attribute Machine does not work with it as of now, you have to modify some HTML structure (tag names) in the attribute template.
Comment
-
Re: multi-add category page?
I have it working here with a twist. http://www.lindseyracing.com/LR/Parts/944TURBOMISC.html
If you need any help with it please contact me and I'll gladly share.
mivaman.com
Comment
Comment