This commit is contained in:
Kevin Adametz 2019-02-22 18:41:06 +01:00
parent 1953c97cd0
commit d1dae9b736
9 changed files with 687 additions and 242 deletions

View file

@ -23,11 +23,18 @@ class Yard extends Cart
if($this->getShippingExtra('shipping_price')){
$this->shipping = floatval($this->getShippingExtra('shipping_price'));
}
if($this->getShippingExtra('shipping_country_id')){
$this->shipping_country_id = $this->getShippingExtra('shipping_country_id');
}
parent::__construct($session, $events);
if($this->shipping == 0){
self::instance('shopping')->setShippingCountryWithPrice($this->shipping_country_id);
}
}
public static function getTaxRate()