Terms and conditions in new window for checkout

  • Posts: 20
  • Thank you received: 0
11 years 7 months ago #129753

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #129824

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.

  • Posts: 20
  • Thank you received: 0
11 years 7 months ago #129961

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

<?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.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #130022

Hi,

You have to replace:

		$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:
$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.

  • Posts: 20
  • Thank you received: 0
11 years 7 months ago #130122

Hi,

Perfect!

Thanks a lot for your efficient and fast response!

Regards.

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

  • Posts: 12
  • Thank you received: 0
11 years 4 months ago #139145

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.090 seconds
Powered by Kunena Forum