close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

adding elements to orders/order_details

Thread began 3/14/2017 2:11 pm by Jamie | Last modified 3/16/2017 9:59 am by Ray Borduin | 912 views | 4 replies |

Jamie

adding elements to orders/order_details

Hey Ray
 
How do I go about getting this <?php echo WA_eCart_DisplayMoney($MotleyCart, $MotleyCart->TotalColumn("TotalPrice")); ?> to go into the WADAorders table column OrderValueBeforeDiscount?
 
Also, with the billing and shipping info, on the checkout page, the shipping data is being added to the db OrderShipAddress etc so am assumoing that to be able to add the billing details as well, would need to create relevant columns into the db but where wouold I set the details to be passed into the db?
 
Cheers
 
Jamie

Sign in to reply to this post

Ray BorduinWebAssist

Both would be set in the Store Cart Summary in Database server behavior on the confirm.php page.

You would bind the OrderValueBeforeDiscount to: <?php echo($MotleyCart->TotalColumn("TotalPrice")); ?>

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

got it thanks

re. the billing address aspect, I am trying to figure out which elements to use.

I have added the extra columns to the db and on the confirm page in the store summary window, the original address elements have these values which seem to me to include both the billing (eg FirstName) as well as the shipping (eg FirstName_2) so not sure what I need to do with the new columns and values to bind to them:

<?php echo (WA_coalesce(array(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','First_Name_2'),WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','First_Name')))); ?> 
<?php echo (WA_coalesce(array(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','Last_Name_2'),WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','Last_Name')))); ?>
<?php echo (WA_coalesce(array(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','Address_1_2'),WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','Address_1')))); ?>
<?php echo (WA_coalesce(array(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','Address_2_2'),WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','Address_2')))); ?>
<?php echo (WA_coalesce(array(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','City_2'),WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','City')))); ?>
<?php echo (WA_coalesce(array(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','State_2'),WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','State')))); ?>
<?php echo (WA_coalesce(array(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','Postal_Code_2'),WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','Postal_Code')))); ?>



Cheers

Sign in to reply to this post

Ray BorduinWebAssist

These are just there to account for forms without shipping. This code:

php:
<?php echo (WA_coalesce(array(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','First_Name_2'),WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','First_Name')))); ?>


says use the shipping first name if it exists, otherwise use the billing first name.

If you just want the billing first name all you need is:

php:
<?php echo (WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','First_Name')); ?>
Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

cool thanks its what I thought but wanted to check :)

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