VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: StefanSTS on March 07, 2014, 18:36:48 PM

Title: input box for terms of service should be inside of if
Post by: StefanSTS on March 07, 2014, 18:36:48 PM
File with the issue. vm 2.5.1, but also in earlier versions.

com_virtuemart\components\com_virtuemart\views\cart\tmpl\default.php

Line 163: The checkbox for terms of service is given

Line 165: IF starts to show the link for terms of service

If the terms of service are not required according to the config:
COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_LEGALINFO
then the checkbox is still shown, because it is before the IF.

The checkbox should be inside the IF, so it is not shown, when TOS are not required.

So long
Stefan