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.