close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Remote checkout - can't log in so can't checkout

Thread began 2/10/2010 4:45 am by ant.knott394719 | Last modified 2/11/2010 4:55 pm by Eric Mittman | 1455 views | 7 replies |

ant.knott394719

Remote checkout - can't log in so can't checkout

Hi i need a bit of help as i spent all day yesterday trying to set up checkout on ecart. All the pages are in place but i was a bit confused with the store summary and details behaviour setup particularly with regards to ids. The data was going into the database but it the id numbers didn't look right, i figured one of the numbers from the orders table should match one of the numbers from the order details table but they were all different.
Anyway, after spending a few hours researching forum and pdfs i found the ecommerce solution recipe for remote checkout. Its the last recipe of the 6. I decided it would be a good idea to restrict access to 'users only' in the checkout process as described in this recipe so i followed the first few steps, i've created a restrict access server behaviour, a recordset and a session variable (MM_UserGroup) (i'm using paypal and php by the way). i've also added the session variable in the server behaviour store summary. i've tried checking out and then logging in with my name and password but nothing happens. Any ideas. I think its best i get the login working before i read any more of the recipe. pls help.

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

ant.knott394719

Restricting Access

Should i be using security assist to create the access restriction as it was SA that was used to create the visitor login page or am i correct in using the 'user authentication restrict access to page' as specified in the solution recipe. maybe this is why its not working??

Also, on my shopping cart page i can't access the ecart checkout server behaviour, i get the message 'please ensure your selection is inside the body tag before using this object'. I don't particularly need to access this, not at the moment anyway but i was worried that it might not be working correctly or that the code is in the wrong place as i can access all the other server behaviours ok. Perhaps it is normal. Let me know if you think there might be a problem here. thanks.

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

Eric Mittman

You should make sure to get the login part worked out first. If you are using Security Assist on your site for user authentication then you will want to apply a Security Assist access rule to the page and not the standard DW one.

You can do this from the Modify > Security Assist > Access Page Manager.

The error you are getting about the selection and the body just means that you need your cursor to be within the <body> and </body> tags on the page when you are trying to add in this server behavior.

Sign in to reply to this post

ant.knott394719

So far so good

Thanks i've done that, i now need to work on the bindings in the store summary and details behaviours but i'll post a new thread for this as its a separate question. Its a shame there isn't an up to date recipe solution for setting up the remote access as theres quite a bit to it and i'll probably run into a few problems before i get it all to work.

Sign in to reply to this post

Eric Mittman

I know that the documentation team has been hard at work on some more eCart documentation but currently there is no guide specific to implementing a remote checkout.

You should be able to get it most of the way implemented by using the checkout wizard in eCart. It should prompt you for the values that are needed to submit the transaction to your gateway and then create all the pages for the checkout.

Once you have done that you may need to make use of the response bindings for the checkout to get back details about the order and store them in your db or send them in an email with Universal Email.

Sign in to reply to this post

ant.knott394719

do i need to start again?

In that case do you suggest that i delete all the checkout pages that were created by the wizard and then run the wizard again or is this not advisable. At the moment i'm going back into the behaviours such as store summary and just fiddling with them. Perhaps there is a way of re-accessing the wizard. If it is the ecart checkout server behaviour i need to click on, it won't let me, it says i need to place my cursor within the body tag but this doesn't work, probably because this area of code is greyed out.

Sign in to reply to this post

ant.knott394719

is it ok to change the orderrefID after the session variable is created?

I deleted the confirm.php and checkout.php page so i could redo the wizard in order to create the session variable for the orderRefiID but the shopping cart stopped working completely so i ditched the shopping cart, did a new shopping cart with display manager then proceeded with the checkout wizard. i then realised how to get the session variable to go onto the correct column. Everything now works perfectly. All the database fields are getting inserted correctly.

My only concern is with the long orderreferenceID that is produced. If i go into the summary behaviour and change the OrderRefID to the date plus random number code 'will this affect the session variable automatically created on the details behaviour?'. Now that i've got everything working i don't want to mess it up so i thought i best check with you guys first before i went ahead and did anything. If you think its best i leave it then i'll leave it but the date + random number will look a lot better. let me know.

Sign in to reply to this post

Eric Mittman

One reason that the session id is used for the order reference id is because it is a value that should be unique and you should be able to refer to the value anytime during the session and get back the same value.

If you want to use the time plus random string that is ok, but you should first store this in a session variable, then use that session variable in place of the code for the time and random characters within the server behaviors.

If you used the same time and random string code for both server behaviors you would end up with values that do not match.

Sign in to reply to this post

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