Vmod "Hide excluding tax" failed after update to 2.6.1

Merchant
Nuo Netherlands
Narys nuo birž. 2024

After updating to 2.6.1 I get a warning in every product screen:

Warning: Modification "Hide Excluding tax" failed during operation #1 in includes/templates/default.catalog/views/box_product.inc.php: Search not found in ~/includes/library/lib_vmod.inc.php (Line 215)

Checking the Vmod settings, it also report "failed" . The Vmod version is 2024-07-25

What can be done to fix this? I do not want to disable the Vmod

Maarten

LiteCart Fan
Nuo Netherlands
Narys nuo gruod. 2022

show us your Vmod "hide excluding tax". There is no match, thats why it failed

tim
Founder
Nuo Sweden
Narys nuo geg. 2013
tim

The first matching directive (find) for box_product.inc.php does not match the lines in the file. Simply edit the vMod and change this part

Merchant
Nuo Netherlands
Narys nuo birž. 2024

It is not "my" Vmod. I got it from here. I mean from the LiteCart system.
I have no clue what is in it. I am not a web-coder. I run a shop.

Merchant
Nuo Netherlands
Narys nuo birž. 2024

"The first matching directive (find) for box_product.inc.php does not match the lines in the file. Simply edit the vMod and change this part"

I have absolutely no clue what this means.

Merchant
Nuo Netherlands
Narys nuo birž. 2024

I have looked at it and if I understand it, it needs to find a specific piece of code and replace it with an other piece of code.

The piece of code it needs to find is:

<?php if ($tax_rates) { ?>
<?php echo $including_tax ? language::translate('title_including_tax', 'Including Tax') : language::translate('title_excluding_tax', 'Excluding Tax'); ?>: <span class="total-tax"><?php echo currency::format($total_tax); ?></span>
<?php } else { ?>
<?php echo language::translate('title_excluding_tax', 'Excluding Tax'); ?>
<?php } ?>

And it needs to be replaced by this:

<?php if ($tax_rates) { ?>
<?php echo $including_tax ? language::translate('title_including_tax', 'Including Tax') : language::translate('title_excluding_tax', 'Excluding Tax'); ?>: <span class="total-tax"><?php echo currency::format($total_tax); ?></span>
<?php } ?>

But, if I manually search though the code, it seem that it already has changed and that is why it can not find the original code.

I tried to disable the Vmod, but that does not seem to work. The circle remains green.

So, logic dictates I should just delete it as it already did its job.

Jūs
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.