public function setAvailablePostage($country, $code)
    {
        $postage_areas = new ShippingCalculator($code, $country);
        
        $postage_areas
            ->setCost($this->SubTotalCost)
            ->setWeight($this->TotalWeight)
            ->setItems($this->TotalItems);
            
        $postage_areas = $postage_areas->getPostageAreas();
        
        Session::set("Checkout.AvailablePostage", $postage_areas);

        return $this;
    }
public function setAvailablePostage($country, $code)
    {
        $postage_areas = new ShippingCalculator($code, $country);
        
        $postage_areas
            ->setCost($this->SubTotalCost)
            ->setWeight($this->TotalWeight)
            ->setItems($this->TotalItems);
            
        $postage_areas = $postage_areas->getPostageAreas();
        
        Session::set("Checkout.AvailablePostage", $postage_areas);

        return $this;
    }
public function setAvailablePostage ( $ country , $ code ) { $ postage_areas = new ShippingCalculator ( $ code , $ country ) ; $ postage_areas -> setCost ( $ this -> SubTotalCost ) -> setWeight ( $ this -> TotalWeight ) -> setItems ( $ this -> TotalItems ) ; $ postage_areas = $ postage_areas -> getPostageAreas ( ) ; Session :: set ( "Checkout.AvailablePostage" , $ postage_areas ) ; return $ this ; }
Set postage that is available to the shopping cart based on the
country and zip code submitted

@param $country 2 character country code
@param $code Zip or Postal code
@return ShoppingCart
Set postage that is available to the shopping cart based on the country and zip code submitted