close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

2 Basic Shipping Options required

Thread began 1/03/2011 7:16 pm by craig158722 | Last modified 2/07/2011 8:32 am by craig158722 | 2953 views | 10 replies

craig158722

Thanks for leaving your reply.

I have created a dropdown in the checkout page with the values adding to a session variable and I can get the value to display on the confirm page but for some reason the cart isn't picking it up and adding the value to the shipping cost.

Can't seem to figure out how to get the value to add to the order total.

The site that I am trying to get this working with is shop.php

Not sure where to go with this to make it work.

Below is the snippet of code which I have taken from the ELShop_PHP.php file which is the eCart for this site:

//eCart Rule
function WAEC_ELShop_Collectfromstore() {
$totalShipping = 0;
if (true && (((isset($_SESSION['Shipping_cost'])?$_SESSION['Shipping_cost']:"") != "1"))) {
$totalShipping += 0.00;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_ELShop_Shippinghandling() {
$totalShipping = 0;
if (true && (((isset($_SESSION['Shipping_cost'])?$_SESSION['Shipping_cost']:"") != "3"))) {
$totalShipping += 8.00;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//end node


I have tried various options with no success.

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