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

rating

Additional field record doesn't get inserted in CheckOut Page

Thread began 8/16/2011 7:29 pm by welcomcat385026 | Last modified 8/20/2011 7:13 am by welcomcat385026 | 681 views | 2 replies |

welcomcat385026

Additional field record doesn't get inserted in CheckOut Page

I added the following fields in the checkout page:
<tr>
<th><label for="" >Promotional Code</label></th><td align="left"><input name="OrderPromotionalCode" type="text" id="OrderPromotionalCode" size="20" /></td>
</tr>
<tr>
<th align="right"><label for="OrderPurchaseDate">Date</label></th><td align="left"><input name="OrderPurchaseDate" type="text" id="OrderPurchaseDate" value="<?php echo date("Y/m/d")?>" /></td>
</tr>

Is that true: in the following section of php code in confirm.php page, the above field variables are missing?
= "OrderAmount|OrderFirstname|OrderSurname|OrderShipAddressSt|OrderShipSuburbCity|OrderState|OrderPostcode|OrderPhone|OrderShipping|OrderTax|OrderEmail|OrderPromotionalCode|OrderPurchaseDate";
$WA_fieldValuesStr = WA_eCDB_ConvertNumber("".$publicShopping->GrandTotal() ."") . "|" . "".((isset($_POST["firstname"]))?$_POST["firstname"]:"") ."" . "|" . "".((isset($_POST["lastname"]))?$_POST["lastname"]:"") ."" . "|" . "".((isset($_POST["street1"]))?$_POST["street1"]:"") ."" . "|" . "".((isset($_POST["city"]))?$_POST["city"]:"") ."" . "|" . "".(isset($_SESSION['eCartCheckoutForm_shipping_state_province'])?$_SESSION['eCartCheckoutForm_shipping_state_province']:$_SESSION['eCartCheckoutForm_state_province']) ."" . "|" . WA_eCDB_ConvertNumber("".((isset($_POST["postcode"]))?$_POST["postcode"]:"") ."") . "|" . "".(isset($_SESSION['eCartCheckoutForm_shipping_phone'])?$_SESSION['eCartCheckoutForm_shipping_phone']:$_SESSION['eCartCheckoutForm_phone']) ."" . "|" . WA_eCDB_ConvertNumber("".$publicShopping->GetShipping() ."") . "|" . WA_eCDB_ConvertNumber("".$publicShopping->GetTax() ."") . "|" . "".(isset($_SESSION['eCartCheckoutForm_shipping_email'])?$_SESSION['eCartCheckoutForm_shipping_email']:$_SESSION['eCartCheckoutForm_email']) ."" . "|" . "".$_SESSION[''] ."" . "|" . "".$_SESSION[''] ."";

Sign in to reply to this post

Jason ByrnesWebAssist

you have both those column set to an empty session :
$_SESSION['']


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="OrderPromotionalCode" type="hidden" id="OrderPromotionalCode" value="<?php echo((isset($_POST["OrderPromotionalCode"]))?$_POST["OrderPromotionalCode"]:""?>" />




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.

no in the store order summary behavior, you will need to bind the new database columns to the corresponding form element.

Sign in to reply to this post

welcomcat385026

Thank you

I was busy with other issues and I'll work on this right now. Thank you always,

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