- Posts: 16
- Thank you received: 3
Terms popup display trouble
12 years 6 months ago #146724
by cembos
Terms popup display trouble was created by cembos
-- 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.
-- 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.
Please Log in or Create an account to join the conversation.
12 years 6 months ago #146758
by Xavier
Replied by Xavier on topic Terms popup display trouble
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.
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.
12 years 6 months ago - 12 years 6 months ago #146806
by cembos
Replied by cembos on topic Terms popup display trouble
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.
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: 12 years 6 months ago by cembos.
Please Log in or Create an account to join the conversation.
12 years 6 months ago #146825
by Eliot
Replied by Eliot on topic Terms popup display trouble
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.162 seconds