Terms popup display trouble

  • Posts: 16
  • Thank you received: 3
10 years 8 months ago #146724

-- url of the page with the problem -- : www.mediabos.be
-- HikaShop version -- : HikaShop Starter: 2.2.3
-- Joomla version -- : 3.2.2
-- PHP version -- : 5.3.16
-- Browser(s) name and version -- : Firefox 27.0.1
Hi everybody,

I have a display trouble : when i want to read the terms, i have a popup wich displays not correctly the terms (see attachment)

Is it possible to redirect to a joomla article instead of a popup?

Thanks a lot.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #146758

Hi,

Yes it's possible, you have to edit the view "checkout / terms" via the menu Display > Views.
And replace the code generating the popup by your custom link to an article.

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

  • Posts: 16
  • Thank you received: 3
10 years 8 months ago #146806

Hi,

SOLVED by :
"Editing the view "checkout / terms" via the menu Display > Views.
And replace the code generating the popup by your custom link to an article" as Xavier said before (thanks to him)
So i have done some modifications and here is what i have : (the orange code was the original one, which was launching the popup, i have commented it) and add the line beginning with the "echo" command like above (in green, my code) ...

***************************************************************
<?php
$text = JText::_('PLEASE_ACCEPT_TERMS');
$terms_article = $this->config->get('checkout_terms');
$terms_width = $this->config->get('terms_and_conditions_width',450);
$terms_height = $this->config->get('terms_and_conditions_height',480);
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',
$terms_width, $terms_height, '', '', 'link'
);*/

/* HERE IS MY CODE* : target='_blank' makes the article appear in a new window */
echo "<a href='******THE LINK TO YOUR ARTICLE******' target='_blank'>Veuillez accepter les conditions générales de vente avant de continuer</a>";

}
?>
***************************************************************************************
I hope it'll help someone.
Thanks.

Last edit: 10 years 8 months ago by cembos.
The following user(s) said Thank You: Eliot, Jethro

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

  • Posts: 2334
  • Thank you received: 403
10 years 8 months ago #146825

Thank you for sharing your solution! It will definitely help other users.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum