close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Saving Shipping choice when multiple options

Thread began 4/10/2012 4:53 pm by Steve | Last modified 6/27/2013 2:49 pm by Steve | 2034 views | 13 replies

Steve

Saving Shipping choice when multiple options

Hello,
When you have multiple shipping values is there a plan to then set the Shipping Type selected so the Admin can then make sure they use the chosen shipping type?

For instance:

php:
<form name="checkoutForm"  id="checkoutForm"  action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">


<select name="shipSelect" id="shipSelect" onchange="document.getElementById('checkoutForm').submit()" >
<option value="<?php echo($groundShip); ?><?php if (!(strcmp($groundShip$eCart1->GetShipping()))) {echo "selected=\"selected\"";} ?>>Ground $<?php echo($groundShip); ?></option>
<option value="<?php echo($twoDayAir); ?><?php if (!(strcmp($twoDayAir$eCart1->GetShipping()))) {echo "selected=\"selected\"";} ?>>2nd Day Air $<?php echo($twoDayAir); ?></option>
</select>



If there is not some pre-determined eCart procedures I will be taking the $groundShip and $twoDayAir vars, looking to see which is availble in the $_Post then setting that as a Session value.

Next it looks like the 'eCart Store Details in Database' and eCart Store Summary in Database" lack a field value for accepting the designation of the selected Shipping Type so one of these will need to be manually tweaked to accept the Insert or Update procedures.

Then the Database will need to be adjusted to have a table field that will accept these incoming values.

Is this the correct flow or is there something already in place I am missing?

Thanks in advance!

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