VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Coding Central => Topic started by: enryfizz on October 30, 2024, 18:36:06 PM

Title: Hardcoded message Maximum coupon usage limit reached
Post by: enryfizz on October 30, 2024, 18:36:06 PM
Hello! I would like to suggest a change to the developer team.
In the file components\com_virtuemart\helpers\cart.php at line 1405 (VirtueMart 4.2.18 11050) there is an hardcoded message

return 'Maximum coupon usage limit reached, please try different code.';
which I would change to something like

return vmText::_ ('VM_MAX_COUPON_USAGE_LIMIT_REACHED');
plus the creation of the respective variable in the language files, to improve the user experience on multilingual sites.

Thanks,
Regards