close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Listing multiple items/quantity boxes on one page with only one add to cart button

Thread began 1/28/2010 2:25 pm by sandy170299 | Last modified 7/30/2010 1:16 pm by Eric Mittman | 2488 views | 9 replies |

sandy170299

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

Sign in to reply to this post

Eric Mittman

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.

Sign in to reply to this post

sandy170299

So, this would not work with dynamic data?

Sign in to reply to this post

Eric Mittman

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.

Sign in to reply to this post

codamedia

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.

Sign in to reply to this post

sandy170299

I agree - I'd like to see this as well.

Sign in to reply to this post

jrojas383072

Need help making these changes

Originally Said By: Eric Mittman
  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.  



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

Sign in to reply to this post

Eric Mittman

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:

php:
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.

Sign in to reply to this post

carleneBeta Tester

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!

Sign in to reply to this post

Eric Mittman

Thanks for the input, customer feedback is very important to us. This is one of many new features being considered.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...