Listing multiple items/quantity boxes on one page with only one add to cart button
Can eCart 4 accomplish such a scenario? Like this:
quickbuy.htm
Can eCart 4 accomplish such a scenario? Like this:
quickbuy.htm
You could do something like this with eCart by creating the listing of items on a page, then applying an add to cart button for each of them.
You would then need to combine all of the forms and remove all but the final add to cart button.
Finally you would need to update the triggers that are used for the add to cart server behaviors on the page, they will need to be based on the posted quantity being greater than 0.
This technique is a little custom and would only apply to static product listings. You would need to get into the code a little to get it to work this way.
So, this would not work with dynamic data?
This specific approach would not work dynamically with a single add to cart server behavior. It would be possible to do that but it would involve creating a custom loop over the add to cart server behavior to ensure that only items that have a quantity selected are added. I would only suggest doing it this way if you are fairly comfortable with php coding, otherwise you might find it difficult to implement correctly.
I would love to see a technote from Web Assist on how to do this with Dynamic items. Some of my customers prefer this method of adding items to a cart so it would be really helpful.
I agree - I'd like to see this as well.
Hi Eric, I have been trying to figure out how to combine all of the forms but the i am really not sure how to change the trigger to be [Quantity>0].
Could you shed light on this please. Thanks
You would need to manually update this in the code, it would require you to add in or alter the if statement so that it was looking at the posted quantity for that product. The if statement might look something like this:
if(isset($_POST['Quantity_1']) && $_POST['Quantity_1'] > 0){
// add to cart server behavior code here
This is a bit custom though and not something that we support. I would suggest looking for some resources on php and and processing post data to get more info on how these things should be crafted.
Can I just add that this is functionality that I'd love to see in an upgrade to eCart? This is something that my customers are asking for as well.
Thanks!
Thanks for the input, customer feedback is very important to us. This is one of many new features being considered.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.