close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

submit additional form on confirm page

Thread began 12/07/2010 4:26 am by CraigR | Last modified 12/07/2010 10:08 am by Jason Byrnes | 2517 views | 9 replies |

CraigRBeta Tester

submit additional form on confirm page

i have a client, for whom I have created some complex shipping calculations, based on a combination of cart weight and shipping zip code.

this all works well, but now the client wants to display the shipping prices in a form, during the checkout process.

I don't think its a good idea to add another page to the checkout process, so the most logical place to put this form is at the top of the confirm.php page.

At this point, I know the cart weight and the shipping destination, the customer having already completed their shipping and billing details.

By default, the shipping method is ground, and i have the form displaying the shipping prices and expected delivery dates for all methods of shipping.

i would like the customer to be able to choose another method of shipping (if desired), - the option is stored as a session variable - and reload the page, which will update the shipping line in the eCart object.

the problem I have, is that when the form is submitted, it redirects to the checkout_success page, as if the confirm order button was pressend

Sign in to reply to this post

Jason ByrnesWebAssist

by default the trigger for the Local Checkout , store order summary, store order details and the Universal Email behaviors are set to use the Currant Page submit.


You will need to change the triggers for those behaviors to happen only when the confirm button is clicked.

Sign in to reply to this post

CraigRBeta Tester

thanks Jason.

just to make sure i read this correctly...

i opened up the server behaviors panel and edited the behavior for

store order summary

store order details

universal email

and set the trigger to 'submit order button pressed' for each of the three server behaviors.

is that it ?

Sign in to reply to this post

Jason ByrnesWebAssist

you will also need to change the trigger for the local checkout behavior.

Sign in to reply to this post

CraigRBeta Tester

cLocal checkout server behavior i not in my list.

i think this is because the site is not yet transactional, but simply places an order, updates the database, and then redirects to the order confirmation page.

one other thing - the modify information button on the confirm page no longer takes me back to the checkout page, which has all of the shipping and billing addresses.

can you tell me the onclick behavior i need to use to do this ?

i tried "goToURL('plugins/checkout.php')" but the confirm.php page reloads.

Sign in to reply to this post

Jason ByrnesWebAssist

<input type="submit" alt="Modify information" id="modify_information" value="Modify information" onclick="document.location.href='plugins/checkout.php';return false;"/>

Sign in to reply to this post

CraigRBeta Tester

thanks jason

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

CraigRBeta Tester

sorry, one last thing

the billing and shipping addresses displayed on the confirm page 'disappear' if I update my shipping form, as they are populated from the checkout form post values.

The session variables are still there, so...

is the best way to overcome this just to replace

<?php echo((isset($_POST["firstname"]))?$_POST["firstname"]:"") ?>



with

<?php echo((isset($_SESSION["eCartCheckoutForm_firstname"]))?$_SESSION["eCartCheckoutForm_firstname"]:"") ?>



throughout all the fields ?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that would be a good way to fix the problem.

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