Hi, I'd need a second "TOS" checkebox and link for privaacy policy in order to comply with the new GDPR
How can I do this?
Thanks!
<?php
require(__DIR__.DIRECTORY_SEPARATOR.'onepage.unlogged.tpl.php');
<?php
if (!empty($privacy_link)) {
JHTMLOPC::_('behavior.modal', 'a.opcmodalprivacy');
?>
<a target="_blank" rel="{handler: 'iframe', size: {x: 500, y: 400}}" class="opcmodalprivacy" href="<?php echo $privacy_link; ?>" onclick="javascript: return Onepage.op_openlink(this); "><?php echo JText::_('COM_ONEPAGE_ITALIAN_AGREE_LABEL_LINK'); ?></a>
<?php
}
?>
<?php
/**
* Italian privacy checkbox support file
*
* @package One Page Checkout for VirtueMart
*
*/
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
?><!-- italian privacy checkbox -->
<div style="width: 100%;" class="opc_bottom_checkboxwrap">
<div class="checkbox_5">
<script type="text/javascript">
op_userfields.push('italianagreed');
custom_rendering_fields.push('italianagreed');
var italagreeerr = "<?php echo OPCloader::slash(OPCLang::_('COM_ONEPAGE_ITALIAN_AGREE_ERROR')); ?>";
function validateItalian()
{
d = document.getElementById('italianagreed_field');
if (d != null)
if (!d.checked)
{
alert(italagreeerr);
return false;
}
return true;
}
addOpcTriggerer('callSubmitFunct', 'validateItalian');
</script>
<input value="1" type="checkbox" id="italianagreed_field" name="italianagreed" <?php if (!empty($agree_checked)) echo ' checked="checked" '; ?> class="terms-of-service required" required="required" autocomplete="off" />
</div>
<div class="checkbox_95" ><label class="opc_bottom_labels" for="italianagreed_field" ><span class="checkbox_label_opc"><?php echo OPCLang::_('COM_ONEPAGE_ITALIAN_AGREE_LABEL'); ?>
<?php
if (!empty($privacy_link)) {
JHTMLOPC::_('behavior.modal', 'a.opcmodalprivacy');
?>
<a target="_blank" rel="{handler: 'iframe', size: {x: 500, y: 400}}" class="opcmodalprivacy" href="<?php echo $privacy_link; ?>" onclick="javascript: return Onepage.op_openlink(this); "><?php echo JText::_('COM_ONEPAGE_ITALIAN_AGREE_LABEL_LINK'); ?></a>
<?php
}
?>
</span><br />
<?php
echo OPCLang::_('COM_ONEPAGE_ITALIAN_AGREE_DESC');
?>
</label></div>
</div>
<!-- END italian privacy checkbox -->
<?php
/**
* Italian privacy checkbox support file
*
* @package One Page Checkout for VirtueMart 2
* @subpackage opc
* @author stAn
* @author RuposTel s.r.o.
* @copyright Copyright (C) 2007 - 2012 RuposTel - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* One Page checkout is free software released under GNU/GPL and uses some code from VirtueMart
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*
*/
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
?><!-- italian privacy checkbox -->
<div style="" class="fullwidth" id="italian_checkbox">
<div class="left_checkbox" style="">
<script type="text/javascript">
op_userfields.push('italianagreed');
custom_rendering_fields.push('italianagreed');
var italagreeerr = "<?php echo OPCloader::slash(JText::_('COM_ONEPAGE_ITALIAN_AGREE_ERROR')); ?>";
function validateItalian()
{
d = document.getElementById('italianagreed_field');
if (d != null)
if (!d.checked)
{
alert(italagreeerr);
return false;
}
return true;
}
addOpcTriggerer('callSubmitFunct', 'validateItalian');
</script>
<input value="1" type="checkbox" id="italianagreed_field" name="italianagreed" <?php if (!empty($agree_checked)) echo ' checked="checked" '; ?> class="terms-of-service required" required="required" autocomplete="off" />
<?php
if (!empty($privacy_link)) {
JHTMLOPC::_('behavior.modal', 'a.opcmodalprivacy');
?>
<a target="_blank" rel="{handler: 'iframe', size: {x: 500, y: 400}}" class="opcmodalprivacy" href="<?php echo $privacy_link; ?>" onclick="javascript: return Onepage.op_openlink(this); "><?php echo JText::_('COM_ONEPAGE_ITALIAN_AGREE_LABEL_LINK'); ?></a>
<?php
}
?>
</div>
<div class="right_label"><label for="italianagreed_field" style="float: none; white-space: normal;"><span style="font-weight:bold;"><?php echo OPCLang::_('COM_ONEPAGE_ITALIAN_AGREE_LABEL').'</span><br />';
echo OPCLang::_('COM_ONEPAGE_ITALIAN_AGREE_DESC');
?>
</label></div>
</div>
<!-- END italian privacy checkbox -->
<?php
/**
* Italian privacy checkbox support file
*
* @package One Page Checkout for VirtueMart 2
* @subpackage opc
* @author stAn
* @author RuposTel s.r.o.
* @copyright Copyright (C) 2007 - 2012 RuposTel - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* One Page checkout is free software released under GNU/GPL and uses some code from VirtueMart
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*
*/
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
?><!-- italian privacy checkbox -->
<div style="" class="fullwidth" id="italian_checkbox">
<div class="left_checkbox" style="">
<script>
op_userfields.push('italianagreed');
custom_rendering_fields.push('italianagreed');
var italagreeerr = "<?php echo OPCloader::slash(JText::_('COM_ONEPAGE_ITALIAN_AGREE_ERROR')); ?>";
function validateItalian()
{
d = document.getElementById('italianagreed_field');
if (d != null)
if (!d.checked)
{
alert(italagreeerr);
return false;
}
return true;
}
addOpcTriggerer('callSubmitFunct', 'validateItalian');
</script>
<input value="1" type="checkbox" id="italianagreed_field" name="italianagreed" <?php if (!empty($agree_checked)) echo ' checked="checked" '; ?> class="terms-of-service required" required="required" autocomplete="off" />
</div>
<div class="right_label"><label for="italianagreed_field" style="float: none; white-space: normal;"><span style="font-weight:bold;"><?php echo OPCLang::_('COM_ONEPAGE_ITALIAN_AGREE_LABEL'); ?></span>
<?php
if (!empty($privacy_link)) {
JHTMLOPC::_('behavior.modal', 'a.opcmodalprivacy');
?>
<a target="_blank" rel="{handler: 'iframe', size: {x: 500, y: 400}}" class="opcmodalprivacy" href="<?php echo $privacy_link; ?>" onclick="javascript: return Onepage.op_openlink(this); "><?php echo JText::_('COM_ONEPAGE_ITALIAN_AGREE_LABEL_LINK'); ?></a>
<?php
}
?>
<br /><?php
echo OPCLang::_('COM_ONEPAGE_ITALIAN_AGREE_DESC');
?>
</label></div>
</div>
<!-- END italian privacy checkbox -->