Jump to content

Obtinere cost transport


Cnic

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?

Link to comment
Share on other sites

  • 3 weeks later...

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...