ZangZang Posted February 11, 2015 Share Posted February 11, 2015 Which file contains the function or sql query that saves the shipping price when customer has paid the order? I have an issue where the shipping price saved is not correct. However it displays correct in the payment step. Thanks! Link to comment Share on other sites More sharing options...
NemoPS Posted February 11, 2015 Share Posted February 11, 2015 It's calculated with Cart::getTotalShippingCost Link to comment Share on other sites More sharing options...
ZangZang Posted February 11, 2015 Author Share Posted February 11, 2015 Hi I can see that the value returned in that function is correct, but another value is saved. I assumed that the shipping price displayed on the checkout cart was saved, however its seems like it is taking the underlying value in the weight range instead. This would be correct in the normal case, but I have modified it a bit. When weight is > 20kg, the value of that weight range is taken and multiplied with the items weight. Everything looks good and correct and the correct amount is paid into my paypal account, but in prestashop the value of the weight range is saved instead. So the question really is where this piece of code is located so I can pass on the multiplied value instead, have been searching like hell and debugging in my environment is really hard. Any tips are appreciated! Thanks! Link to comment Share on other sites More sharing options...
ZangZang Posted February 12, 2015 Author Share Posted February 12, 2015 Problem solved! I had to add the changes in getPackageShippingCost, Link to comment Share on other sites More sharing options...
Recommended Posts