close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Checkout Wizard not doing data bindings

Thread began 10/16/2011 6:59 am by rob.parkin390637 | Last modified 10/24/2011 3:14 pm by rob.parkin390637 | 1311 views | 13 replies |

rob.parkin390637

Checkout Wizard not doing data bindings

The checkout wizard is not creating the data bindings in the form in checkout.php.

I had a functioning eCart but needed to make some alterations:

1. I added an additional column (stock code) using the add-to-cart-buttons and eCart Object, then used the Display Manager to recreate my shopping cart page to display this new column. This part seems to work fine.

2. I then used the Checkout Wizard to add a base shipping rate and to change the PayPal account to a different Merchant ID.

I deleted all of the original checkout pages before running the checkout wizard but when the wizard runs it does not do any of the data bindings in the checkout form - and this despite stage 2 of 2 in the wizard saying it will use my database tables and will automatically do the data binding.

I have attached a zip file containing the new checkout.php file created by the wizard and the original one that did have the data bindings for the form and two screen shots of the settings I used with the checkout wizard.

Any idea why the wizard is not creating the checkout page correctly ?

Attached Files
checkwiz.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the behaviors for storing the cart summary and cart details into the database are not added to the checkout page, they will be added to the confirm page.


The cart information is stored into the database when the confirm order button is clicked on the confirm.php page.

Sign in to reply to this post

rob.parkin390637

Hi Jason

It's not the cart summary details that I'm talking about; if you look at the two versions of checkout.php I attached you'll see that it's the customer's details from the user table that are not being bound to the fields in the latest iteration of the form produced by the checkout wizard !

rob

Sign in to reply to this post

Jason ByrnesWebAssist

the checkout wizard will not add any bindings to a users table, this would need to be done manually after the checkout pages are created.

Sign in to reply to this post

rob.parkin390637

OK, ok, ok ! I've just re-read the crib sheet on this - so I guess I must've been having a senior moment when I created this post ... isn't it a bummer when you ask a question to which you've forgotten that you already know the answer !!!

lol

Sign in to reply to this post

rob.parkin390637

Oh dear, I still have the problem.

I've now bound the form fields in checkout.php to the recordset (rsUser). When I test the recordset in Dreamweaver - using a UserID I know to be in the database - it works fine, but when I use the checkout form on my site, after login using the same UserID, the checkout form is still not being populated with the user information.

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the page so I can examine the code.

Sign in to reply to this post

rob.parkin390637

copy of checkout.php (sent as checkout.zip) associated ...

Attached Files
checkout.zip
Sign in to reply to this post

Jason ByrnesWebAssist

try adding the following code at line 1 to force php to find the session:

php:
<?php @session_start(); ?>




if it is still not working, change that to

php:
<?php @session_start(); var_dump($_SESSION); ?>




that will write the session contents to the screen, make sure you have the right session name "UserID"

Sign in to reply to this post

rob.parkin390637

Hmmm ...

The first didn't make any difference and the second just produced a page with a footer and an header but no body - see screen shot.

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