close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

adding fields to checkout page?

Thread began 12/01/2010 11:05 am by elewis93815 | Last modified 12/03/2010 1:03 pm by Jason Byrnes | 1816 views | 3 replies |

elewis93815

adding fields to checkout page?

I need to add a new section to my checkout page that allows the user to

1 select pickup or delivery including a preset time selection also need a date entry field

2 enter their delivery info see example at delivery.php

3 delivery fee calculated based upon location of delivery we have established five location fees based on our delivery area's

Thanks

Erick

Sign in to reply to this post

Jason ByrnesWebAssist

1) You could use a check box to select delivery, if unchecked it would be pickup. You can use the new form toolkit extension to add a date picker form field to your form for delivery date.


2) The eCart checkout form already includes a shipping section, couldn't you just use that as the delivery info?


3) how are you establishing location? based on City? Zip Code? you will need to determine this first.

Sign in to reply to this post

elewis93815

Checkout page calculations of newly added fields????

Originally Said By: Jason Byrnes
  1) You could use a check box to select delivery, if unchecked it would be pickup. You can use the new form toolkit extension to add a date picker form field to your form for delivery date.

2) The eCart checkout form already includes a shipping section, couldn't you just use that as the delivery info?

3) how are you establishing location? based on City? Zip Code? you will need to determine this first.  



1-EL: We took your advice and purchased the form toolkit extension (last night) and have added the calendar element to our form.

2-EL: The portion that we're trying to incorporate is a (client) add on feature and wasn't built when we ran the wizard, so we're really not sure of how to manipulate the established cart elements.

3-EL: The client wants to use the city, we've built a drop down menu with all of the cites and the delivery fees listed as the value i.e. Hopkins 25.00. We are not sure of how to add the dropdown menu value to the calculation and subtotal of the confirm page??? we've attached the built form and WA files to this post.

Attached Files
Cupcake Delivery City.zip
Sign in to reply to this post

Jason ByrnesWebAssist

for every form element that you add to the checkout page, you will need to add 2 things to the confirm page:

1) the confimr page has a collection of hidden form elements to capture the values posted from the checkout page, you need to add a new hidden form element with the same name as the one from the checkout page:

php:
<input name="DeliveryName" type="hidden" id="DeliveryName" value="<?php echo((isset($_POST["DeliveryTime"]))?$_POST["DeliveryTime"]:""?>" />




2) Each form element has a corespondin set session value behavior on the confirm page.
on the sever behaviors panel, click the plus button and select eCart -> General -> Set Session Value.

Set the trigger to any form post.

set the name to the same as the form element.

click the lightning bolt next to value and select the corresponding form element from the form collection.


for the delivery charge:

dont pass the charge amount in the city drop down list, pass the city name instead.

you have 5 different charges, so create 5 different shipping charge rules

Set the triggers to be based on session variable value, and add a trigger for each possible city using the OR separator

15 dollar delivery:
Triggers:
Based On session variable Value - If the Session Variable 'DeliveryCity' has a value of 'Downtown Mpls'

OR
Based On session variable Value - If the Session Variable 'DeliveryCity' has a value of 'Downtown Saint Paul'

OR
Based On session variable Value - If the Session Variable 'DeliveryCity' has a value of 'Roseville'

OR
Based On session variable Value - If the Session Variable 'DeliveryCity' has a value of 'Falcon Heights'

Calculation:
Flat rate charge of 15

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