How could i remove TOS in clean theme

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

How could i remove TOS in clean theme

Postby VisualFortran » Thu Nov 13, 2014 3:53 pm

Hello!

Help me to remove this line!
Attachments
1.gif
1.gif (18.69 KiB) Viewed 10487 times
VisualFortran
 
Posts: 5
Joined: Wed May 07, 2014 11:34 am

Re: How could i remove TOS in clean theme

Postby admin » Thu Nov 13, 2014 9:06 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: How could i remove TOS in clean theme

Postby VisualFortran » Fri Nov 14, 2014 8:30 am

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.
VisualFortran
 
Posts: 5
Joined: Wed May 07, 2014 11:34 am

Re: How could i remove TOS in clean theme

Postby admin » Fri Nov 14, 2014 9:08 pm

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
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 2

cron