Jump to content

Minimal Order by Manufacturer Tax problem


Recommended Posts

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!

mobm.PNG

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...