MrBaseball34 Posted July 16, 2010 Share Posted July 16, 2010 We'd like to add a charge of $4.95 to customer's orders if they charge less than $25.Is there a module for that or what would need to be done to accomplish this? Link to comment Share on other sites More sharing options...
rocky Posted July 17, 2010 Share Posted July 17, 2010 You could try changing lines 864-866 of classes/Cart.php (in PrestaShop v1.3.1) from: // Adding handling charges if (isset($configuration['PS_SHIPPING_HANDLING']) AND $carrier->shipping_handling) $shipping_cost += floatval($configuration['PS_SHIPPING_HANDLING']); to: // Adding handling charges if (isset($configuration['PS_SHIPPING_HANDLING']) AND $carrier->shipping_handling) $shipping_cost += floatval($configuration['PS_SHIPPING_HANDLING']); if ($orderTotalwithDiscounts < 25) $shipping_cost += 4.95; This should add $4.95 to the shipping cost if the total order with discounts is less than $25. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 18, 2010 Author Share Posted July 18, 2010 Thanks, Rocky, I think the customers will like that better than having to have a minimum cart value.I may set that up to be configurable and possibly write a module for it. 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