Jump to content

Get postalcode on getDeliveryPriceByWeight() classes/Carrier.php


Recommended Posts


I would like to get shipping postalcode on getDeliveryPriceByWeight() function in classes/Carrier.php ?

I tried 

$cart=new Cart();
$delivery_new = new Address((int)$cart->id_address_delivery);
$shipping_postcode =  $delivery_new->postcode;


$cart = new Cart();
$id_address = $cart->id_address_delivery;
if ($id_address) $shipping_postcode=self::getPostcodeByAddress($id_address);

but none of them works

Could you please help me?

Sorry for my english

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...