Jump to content
Cnic

Obtinere cost transport

Recommended Posts

Salutare, 

ma chinui cu modulul de FGO si pretul de transport, cum pot obtine pretul de transport pentru o comanda 

cu $cart->getPackageShippingCost(); obtin ceva balarii cred ca din fancourier

am incercat cu 

                $shippingCost = (int) Db::getInstance()->getValue('SELECT shipping_cost_tax_incl FROM `' . _DB_PREFIX_ . 'order_carrier` WHERE `id_order` = "' . (int) $cartId . '"');
DAR nu imi ia decimale si daca folosesc float sau orice altceva nu imi accepta mai departe API-ul

 

Cum rezolv problema?

Share this post


Link to post
Share on other sites

Buna ziua,

Daca $order e variabila care contine obiectul Order, $order->total_shipping_tax_incl va returna costul de transport.

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More