close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

add to cart adds quantity 2 instead of 1

Thread began 9/05/2014 4:39 am by Sweens | Last modified 11/05/2014 10:21 am by Jason Byrnes | 3000 views | 10 replies |

Sweens

Curiously, if you add an item from the second accordion tab, it only adds 1 item.

Another strange behaviour is the the accordion doesn't work properly until you have gone to 'view cart', then you can open other tabs.

Sign in to reply to this post

Jason ByrnesWebAssist

you have the add to cart cart behavior code inside a recordset repeat region, that will cause it to trigger for each record that it repeats.

Sign in to reply to this post

Sweens

Sorry, Jason - I didn't see your reply before I updated; will check agaon.

Thanks
Chris

Sign in to reply to this post

Sweens

That fixed it - and the other issue about the tabs not working as expected.

thanks again

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

Sign in to reply to this post

Sweens

Hi Jason

It's doing it again - but this time I think it's related to the number of repeated days, as quantity 16 is being entered each time.

I've tried moving the code block to different locations, but then nothing is added to the cart.

Thanks

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

well, again, its because the cart object code is inside a repeat region.

you have a nested recordset that you are using for display, and you are trying too use the same recordset for the add to cart.

In the add to cart, you should use a separate recordset that is not in the repeat.

so basically, you use one recordset to display the information, but another recordset that is not in the repeat region to add the item to the cart.

Sign in to reply to this post

Sweens

pm

Sign in to reply to this post

Jason ByrnesWebAssist

I'll look at this with you when i loo at the other issues you have posted.

Sign in to reply to this post

Sweens

Thanks Jason

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