rhoenig Posted November 21, 2016 Share Posted November 21, 2016 (edited) I'd like to modify the total_shipping field in the orders table once the customer clicks confirm order (using paypalpro module). I've looked everywhere and can't figure out where the order is saved or where total_shipping is set. Any advice would be great. I would like to find this in the core files and then will move it to the overrides. Thank youRobert Edited November 21, 2016 by rhoenig (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted November 28, 2016 Share Posted November 28, 2016 It's the validateOrder function in classes/PaymentModule.php that creates the order. It's lines 315-317 in PrestaShop v1.6.1.9 that set the shipping: $order->total_shipping_tax_excl = (float)$this->context->cart->getPackageShippingCost((int)$id_carrier, false, null, $order->product_list); $order->total_shipping_tax_incl = (float)$this->context->cart->getPackageShippingCost((int)$id_carrier, true, null, $order->product_list); $order->total_shipping = $order->total_shipping_tax_incl; 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