close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add to cart button on results page

Thread began 9/14/2018 3:09 pm by MagsW | Last modified 11/13/2018 12:35 pm by Ray Borduin | 76 views | 13 replies |

MagsW

Add to cart button on results page

I want to add Add to Cart buttons to the product results page to allow users to quickly add multiple products. These are books which are available in either download or paperback format. I've copied over the format select list and Add to Cart button from my product detail page, along with the Add to Cart server behavior and the recordsets, but the products don't add to the cart. Not sure what I'm missing (and my detail page keeps throwing up Javascript errors in Dreamweaver which doesn't help!) I've attached the detail page and the results page. Could you possibly take a look for me?

Sign in to reply to this post

Ray BorduinWebAssist

You have a form tag nested inside of another form tag. That won't work. If you give me FTP access and a URL to view the page live I can see what I can do to make the necessary changes to make it work.

Sign in to reply to this post

MagsW

Thanks Ray, details in PM.

Sign in to reply to this post

Ray BorduinWebAssist

I removed the outer form and updated the cart code to do an add to cart from the recordset. I also used joins to get it all from a single recordset since you only need the print version.

Sign in to reply to this post

MagsW

Thanks so much for your help Ray. I had to change the price it was pulling from the recordset from ProductPrice to HighestPrice as it was showing the paperback version at the download price, but all working perfectly now.

Sign in to reply to this post

MagsW

Hi Ray, I've discovered an issue with discount codes when using the Quick Add buttons on the results page that you helped me with. The client offers bundle discounts but when the books are added from the results page and the discount code is applied, it doesn't work. If they are added from the product details pages though, it does work. I can only think that there is some info not being passed from the results page that is required to activate the discount code - could you take a look for me? Details in PM.

Sign in to reply to this post

Ray BorduinWebAssist

The add to cart code on index.php was setting the Format to:
"Print version (softback)"

but the discount rule was set to look for:
"Print version (softback) "

I added the extra space at the end on the index.php page line 143, and that appears to have fixed the problem.

Sign in to reply to this post

MagsW

That's great, thank you!

Sign in to reply to this post

MagsW

Hi Ray, sorry but I've just discovered another issue with the above results page - when the books are added from the results page, the postage isn't being added. I've had a look at the code and compared it to the product detail page but can't see where the issue is. Could you possibly take a look for me?

Sign in to reply to this post

MagsW

Hi Ray, hoping you saw the above message - would you be able to take a look for me and advise? Thanks.

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