jgriff89 Posted February 7, 2019 Share Posted February 7, 2019 Hi, I have recently just bought Minimal Order by Manufacturer module by mypresta.eu. The module allows you to specify a minimum order value by manufacturer. Everything on our shop is displayed as excluding tax, however the module only shows the below minimum order error message at checkout as including tax, which is very confusing for customers. The attached image shows the issue, both of the prices shown are actually including tax (even though the last price says tax excl. next to it). The code that pulls the prices through and displays the message is the following from override/controllers/front/OrderController.php: if ($restriction[0]['value'] > $val) { $manufacturer = new Manufacturer($restriction[0]['id_manufacturer'], $this->context->language->id); $this->step = 0; $this->errors[] = sprintf(Tools::displayError('A minimum purchase total of %1s from manufacturer %2s is required to validate your order, current purchase total from this manufacturer is %3s (tax excl.).'), Tools::displayPrice(Tools::convertPriceFull($restriction[0]['value'], $currency_to, $currency_from), $currency_from), $manufacturer->name, Tools::displayPrice(Tools::convertPriceFull($val, $currency_to, $currency_from), $currency_from)); Specifically this line: Tools::displayPrice(Tools::convertPriceFull($restriction[0]['value'], $currency_to, $currency_from), $currency_from), $manufacturer->name, Tools::displayPrice(Tools::convertPriceFull($val, $currency_to, $currency_from), $currency_from)); I have contacted mypresta.eu and no response so far and it is kind of urgent. Does anyone have any pointers or ideas how I can get the price to pull through into the message as tax excl.? Appreciate any pointers or help anyone may be able to give Cheers! Link to comment Share on other sites More sharing options...
Presta Bucket Posted February 9, 2019 Share Posted February 9, 2019 Hello, You can search for the variable that shows the price in the tpl. The price displayed might be not based on customer group tax option (excl. or incl.) Best regards, PrestaBucket Team Link to comment Share on other sites More sharing options...
jgriff89 Posted February 11, 2019 Author Share Posted February 11, 2019 Hi thanks for the reply! Is the issue not with the module controller not pulling the correct price through though? Should I look in the checkout .tpl file of the template then? 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