adrian24a Posted November 3, 2015 Share Posted November 3, 2015 (edited) Hi Sorry for my English, How can I change the value of the shipping in order confirmation and order paymants? I have to change the price of shipping for all producers called Elfa when the value of order will be above 1000 dolars. How can I do it and in which file I can do it? Or how can I insert the shipping price from shopping cart? Thanks for any help Edited November 3, 2015 by adrian24a (see edit history) Link to comment Share on other sites More sharing options...
adrian24a Posted November 4, 2015 Author Share Posted November 4, 2015 I solved this problem. In file classes/Cart.php in function getTotalShippingCost I add this code: $products = $this->getProducts(); $nbTotalProducts = 0; $nbTotElfaPrice = $this->getOrderTotal(true, Cart::ONLY_PHYSICAL_PRODUCTS_WITHOUT_SHIPPING, $product_list);//getOrderTotal($use_tax); getOrderTotal foreach($products as $product) { if(strstr($products['name'], "Elfa")) { $nbTotalElfaPrice = $nbTotElfaPrice; } } if(strstr($product['name'], "Elfa")&&($nbTotElfaPrice<1000)) { return $total_shipping=30; } else return $total_shipping; Greetings 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