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

Shipping information tickbox

Thread began 5/11/2012 4:23 pm by bill3786 | Last modified 5/24/2012 2:45 pm by Jason Byrnes | 937 views | 7 replies |

bill3786

Shipping information tickbox

Is it possible to have the shipping information automatically populated with the billing information on the checkout page rather than using the tickbox.

Then add a comment to amend the shipping information if necessary.

Sign in to reply to this post

Jason ByrnesWebAssist

this would require hand coding of the checkout form. you would need to add an onblur event to each of the billing fields to update the corresponding shipping field using javascript.


for example, the first name would use this code:

<input type="text" name="firstname" id="firstname" value="" onBlur="document.ecart_checkout_form.shipping_firstname.value=this.value"/>



select lists are a little different, for example the state list would look like this:

<select name="state_province" id="state_province" onChange="document.ecart_checkout_form.shipping_state_province.selectedIndex = this.selectedIndex">
Sign in to reply to this post

bill3786

After checking with the client I tried the following method first.

Added spry validation to the shipping fields on the checkout page.

This prevents a customer moving to the confirm page until the shipping fields have been completed.

All was working well with a completed successful test purchase.

However during testing when submitting the checkout page and moving to the confirm page and then aborting the test I found that the order details were being stored in the orders table.

I've not noticed this orders table update happening before I added the spry validation to the shipping fields on the checkout page. This page doesn't have the "store summary in database" behaviour like the confirm page.

Should this be happening or is it as a result of the addition of the spry validation?

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

Jason ByrnesWebAssist

What gateway are you using?

this will happen with paypal standard as a result of the way paypal standard works.

Sign in to reply to this post

bill3786

Ok, its Worldpay.

Sign in to reply to this post

Jason ByrnesWebAssist

Like paypal standard, worldpay is a remote payment gateway.

using a remote system the confirm page posts to the gateway server, so the order information is stored when the checkout posts to the confirm page instead.

Sign in to reply to this post

bill3786

Ok thanks, I presume there is no simple alternative to this.

Not sure how big a problem this is going to be for the client, it obviously depends on how many customers abort a payment after submitting the checkout page.

Is there a workaround or is it a case of this is the only way the system can function?

So that I can explain to the client can you give some more information about how different payment gateways operate with the extensions.

I'm also curious to know how the checkout page does the database update.

Sign in to reply to this post

Jason ByrnesWebAssist

this is the way that remote checkout systems function. With a remote checkout system, the checkout page sends data to the confirm page, and the confirm page sends the data directly to the gateway for the customer to place the order.


In a local payment system, the customer never leaves your site, the checkout page post to the confirm page, when the confirm page submits, it runs code to process the transaction, then if it is successfull stores it in the database and sends a confirmation email, if it fails, it directs to the failure page instead.

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