Skip to main content

Terms and conditions in new window for checkout

13 years 1 week ago #129753 by Jeffq
Hello,

During checkout, can I get the terms and conditions article to show up on another window, instead of a iframe?

Thanks for your help
Regards,
PS: I'm using hikashop 2.2.2 with joomla 2.5

Please Log in or Create an account to join the conversation.

13 years 1 week ago #129824 by Mohamed Thelji
Hi,
You'll probably be able to do that by editing the file terms of the checkout view of your front-end template, and replace the terms popup by just a link which will redirect your customer to a new page.

Please Log in or Create an account to join the conversation.

13 years 1 week ago #129961 by Jeffq
Hello,

Thanks for your answer.

I did take a look at it, but couldn't quite figure out what to change, as I only have basic knowledge of joomla's inner workings.

This is what's inside that view, could you please point out what shoud be replaced by a link to the desired page?

Thanks in advance.

Regards
Code:
<?php /** * @package HikaShop for Joomla! * @version 2.2.2 * @author hikashop.com * @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><div id="hikashop_checkout_terms" class="hikashop_checkout_terms"> <input class="hikashop_checkout_terms_checkbox" id="hikashop_checkout_terms_checkbox" type="checkbox" name="hikashop_checkout_terms" value="1" <?php echo $this->terms_checked; ?> /> <?php $text = JText::_('PLEASE_ACCEPT_TERMS'); $terms_article = $this->config->get('checkout_terms'); if(!empty($terms_article)){ $popupHelper = hikashop_get('helper.popup'); $text = $popupHelper->display( $text, 'HIKASHOP_CHECKOUT_TERMS', JRoute::_('index.php?option=com_content&view=article&id='.$terms_article.'&tmpl=component'), 'shop_terms_and_cond', 960, 480, '', '', 'link' ); } ?> <label for="hikashop_checkout_terms_checkbox"><?php echo $text; ?></label> </div>

Please Log in or Create an account to join the conversation.

13 years 1 week ago #130022 by Xavier
Hi,

You have to replace:
Code:
$popupHelper = hikashop_get('helper.popup'); $text = $popupHelper->display( $text, 'HIKASHOP_CHECKOUT_TERMS', JRoute::_('index.php?option=com_content&view=article&id='.$terms_article.'&tmpl=component'), 'shop_terms_and_cond', $terms_width, $terms_height, '', '', 'link' );
By:
Code:
$text = '<a target="_blank" href="'.JRoute::_('index.php?option=com_content&view=article&id='.$terms_article).'">'.JText::_('PLEASE_ACCEPT_TERMS').'</a>';

Please Log in or Create an account to join the conversation.

13 years 1 week ago #130122 by Jeffq
Hi,

Perfect!

Thanks a lot for your efficient and fast response!

Regards.

Please Log in or Create an account to join the conversation.

12 years 9 months ago #139145 by hamsel
Did the trick for me, too. Pop-up didn't work - the terms & conditions page showed up to the lower left on the page instead...

/Per Hertz

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum