Page 1 of 1

How could i remove TOS in clean theme

PostPosted: Thu Nov 13, 2014 3:53 pm
by VisualFortran
Hello!

Help me to remove this line!

Re: How could i remove TOS in clean theme

PostPosted: Thu Nov 13, 2014 9:06 pm
by admin
hello, you can check our guide for "terms of service checkbox" as shown here:
http://www.rupostel.com/one-page-checko ... t-checkout
or here:
http://www.rupostel.com/one-page-checko ... le-options

if it still does not work, you may just comment the section in your onepage.unlogged.tpl.php and onepage.logged.tpl.php

best regards, stan

Re: How could i remove TOS in clean theme

PostPosted: Fri Nov 14, 2014 8:30 am
by VisualFortran
Hello!

Everything is disabled, but the line still appears. Also I've tried to delete necessary code, but it doesn't help.

In other templates TOS doesn't appear? this happens only in clean simple.

Re: How could i remove TOS in clean theme

PostPosted: Fri Nov 14, 2014 9:08 pm
by admin
hello, once reading your post, i openeed this file:

\components\com_onepage\themes\clean_simple\onepage.unlogged.tpl.php

and updated the code that shows the checkbox here:
from:
Code: Select all

<div id="agreed_div" class=" ">
   <input type="checkbox" id="agreed_field" name="agreed" value="1" class="inputbox" <?php if (!empty($agree_checked)) echo ' checked="checked" '; ?> class="terms-of-service"  required="required" autocomplete="off" />
            <label for="agreed_field"><?php echo OPCLang::_('COM_VIRTUEMART_I_AGREE_TO_TOS'); ?></label>
            <a target="_blank" href="<?php echo $tos_link; ?>" title="<?php  echo JText::_('COM_VIRTUEMART_I_AGREE_TO_TOS'); ?>" onclick="javascript: return op_openlink(this); ">
             (<?php echo JText::_('COM_VIRTUEMART_CART_TOS'); ?>)
            </a>
   <strong>* </strong>
</div>



to:
Code: Select all
<?php if ($tos_required) { ?>
<div id="agreed_div" class=" ">
   <input type="checkbox" id="agreed_field" name="agreed" value="1" class="inputbox" <?php if (!empty($agree_checked)) echo ' checked="checked" '; ?> class="terms-of-service"  required="required" autocomplete="off" />
            <label for="agreed_field"><?php echo OPCLang::_('COM_VIRTUEMART_I_AGREE_TO_TOS'); ?></label>
            <a target="_blank" href="<?php echo $tos_link; ?>" title="<?php  echo JText::_('COM_VIRTUEMART_I_AGREE_TO_TOS'); ?>" onclick="javascript: return op_openlink(this); ">
             (<?php echo JText::_('COM_VIRTUEMART_CART_TOS'); ?>)
            </a>
   <strong>* </strong>
</div>
<?php }
echo $italian_checkbox;
?>


you can update this within the theme file yourself, or i will release this within the next opc update.

best regards, stan