keitaro Posted March 14, 2014 Share Posted March 14, 2014 can anyone please tell me where the code for calculating shipping is in the checkout area? I have found references to it but not the exact code. thanks for any help Link to comment Share on other sites More sharing options...
math_php Posted March 14, 2014 Share Posted March 14, 2014 Hi, In carrier module you have methods : - getOrderShippingCost() - getOrderShippingCostExternal() Or perhaps you are looking for getCarriersForOrder from Carrier class Link to comment Share on other sites More sharing options...
keitaro Posted March 14, 2014 Author Share Posted March 14, 2014 hello and thanks for your reply. i am looking for where - getOrderShippingCost() is i want to make some modifications to it to account for box sizes i use. based on size etc Link to comment Share on other sites More sharing options...
math_php Posted March 14, 2014 Share Posted March 14, 2014 Try getOrderShippingCost in classes/Cart.php Deprecated in 1.5, rather use getPackageShippingCost Link to comment Share on other sites More sharing options...
keitaro Posted March 15, 2014 Author Share Posted March 15, 2014 hello and thanks for your reply. I have looked through here still looking but if i have more questions i wil post. Thanks Link to comment Share on other sites More sharing options...
keitaro Posted March 15, 2014 Author Share Posted March 15, 2014 hello, I am unsure if thats exactly what i am looking for. in carrier and cart there is "get $total_weight " I was wondering where I can find the actual code for this. As i was thinking if icould some how modify this i could add the weight there in the calculation. Link to comment Share on other sites More sharing options...
math_php Posted March 18, 2014 Share Posted March 18, 2014 Hi Weight is not in each product ? Same question for size. If you want to change shipping amount, I don't think changing weight of cart is the good way to do. Can you show us the sort of calculation you want to apply ? 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