News:

Support the VirtueMart project and become a member

Main Menu

input box for terms of service should be inside of if

Started by StefanSTS, March 07, 2014, 18:36:48 PM

Previous topic - Next topic

StefanSTS

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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.