close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

add to cart from recordset before page load

Thread began 8/25/2011 12:21 am by dave315749 | Last modified 8/25/2011 3:33 pm by Jason Byrnes | 1074 views | 9 replies |

dave315749

add to cart from recordset before page load

I cannot get this working at all.

I have a recordset being filtered by a url or a post of a form variable and it still on page load will not add a item to the cart.

I can but a ATC button on the same page, and it will insert a item into the cart, but the onpage load behavior will not work.

ATC code is after the recordset.

Any suggestions?

Sign in to reply to this post

Jason ByrnesWebAssist

For this you will need to use the add to cart server behavior instead of the add to cart button.

Go to Window -> Server Behaviors, Click the plus button and select eCart -> Add to cart.

set the trigger to use before page load.

Sign in to reply to this post

dave315749

I have been using the server behavior , but it still does not add the item to the shopping cart.

The action goes after the recordset. So i have that set too..

Sign in to reply to this post

Jason ByrnesWebAssist

I need to see a copy of the page then to examine code.

compress the php page into a zip archive and attach the zip file to your response.

Sign in to reply to this post

dave315749

here is the page

Attached Files
atc.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the rsProduct recordset is being filtered on a posted form element named "licence"

That means that the page that calls the atc.php page will need to post the license value using a form to it.

If it is not adding anything to the cart on page load, that is because the recordset is blank.


either there is no post with a license value being sent to the atc.php page, or the license value being sent to the atc.php page is not valid.

Sign in to reply to this post

dave315749

Originally Said By: Jason Byrnes
  either there is no post with a license value being sent to the atc.php page, or the license value being sent to the atc.php page is not valid.  



When i post to the page i have that form element echo on that page and it does work and shows both the the echo PLUS the recordset data. But it does not add anything to the cart.

I have tried removing the filter from the recordset and just sending any data to the cart from the db and it does not work. Currently the only way it works is with a form submit.

I am lost as i have tried just about every which way. I have even tried just putting charecters in the bindings panel without db data, and running the page, and that doesnt work. Is all of the code in order? Is this a bug with the software or just something I am missing?

Sign in to reply to this post

Jason ByrnesWebAssist

please send a link to your site so i can see this in the browser.


make sure to specify where the initial page is as well as the view cart page you have created.

I will also need a copy of the view cart page so i can see the code.

Sign in to reply to this post

dave315749

Its not live yet, any place i can post it in private?

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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