Hi all,
I have SS 2.3.5 with the ecommerce module on.
The module is heavily customised so upgrading will be extremly time consuming.
What I have is, in the admin section there is a shipping costs field where the admin can assign different costs for shipping on a product by product basis.
I have added an extra field for the international costs but can't implement it to work as required.
The code i have from code > products > Product.php;
function UnitShipping_Cost() {
global $country;
if ($country == "GB" )
{
if ($this->Product()->Shipping_Cost) return $this->Product()->Shipping_Cost;
}
else
{
if ($this->Product()->Int_Shipping_Cost) return $this->Product()->Int_Shipping_Cost;
}
}
Currently what happens is the $country is being ignored and the international shipping rate is being applied.
How do I find the $country first to add teh relevant shipping amount?
Hanx in advance
Nels