Hardcoded message Maximum coupon usage limit reached

Started by enryfizz, October 30, 2024, 18:36:06 PM

Previous topic - Next topic

enryfizz

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