Cnic Posted March 21, 2019 Share Posted March 21, 2019 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 More sharing options...
Geo Burlibasa Posted April 7, 2019 Share Posted April 7, 2019 Buna ziua, Daca $order e variabila care contine obiectul Order, $order->total_shipping_tax_incl va returna costul de transport. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now