- Posts: 137
- Thank you received: 2
continue shopping button forwards to wrong page
- emergentec
-
Topic Author
- Offline
I already changed the value in the field "Continue shopping button's URL" in Hikashops Backend configuration, but if you click on the button you are forwarded to a weird page with the URL "http:/.../home/checkout/notice/index.php?option=com_hikashop&view=product&layout=listing&Itemid=111" and the content of the popup is displayed on the website (see attached screenshot).
Best regards
Please Log in or Create an account to join the conversation.
What's happening is that you have a javascript error on the page and when you click on the link, it can't close the popup and just display the notice view.
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
- Posts: 137
- Thank you received: 2
Please Log in or Create an account to join the conversation.
echo $this->cartClass->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,'','try{ window.top.document.getElementById(\'sbox-window\').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id="hikashop_add_to_cart_continue_button"');
to:
echo $this->cartClass->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,'','window.top.location=\' mywebsite.com/mylink\';return false;','id="hikashop_add_to_cart_continue_button"');
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
- Posts: 137
- Thank you received: 2
Please Log in or Create an account to join the conversation.
echo $this->cartClass->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,'','window.top.location=\'mywebsite.com/mylink\';return false;','id="hikashop_add_to_cart_continue_button"');
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
- Posts: 137
- Thank you received: 2
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
- Posts: 137
- Thank you received: 2
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
- Posts: 137
- Thank you received: 2
Is there another solution? It's a bit of an issue if a user accesses our website with https and is suddenly forwarded to http when clicking the "continue shopping"-button.You need to add http:// at the beginning of your link, otherwise the SEF system of joomla prepends the url of your page to your link.
Best regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
- Posts: 137
- Thank you received: 2
We would like to have a solution which DOESN'T change the protocolWell, you can add https:// at the beginning then.
Please Log in or Create an account to join the conversation.
echo $this->cartClass->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,'','window.top.location=\'http'.(hikashop_isSSL()? 's' : '').'
/mywebsite.com/mylink\';return false;','id="hikashop_add_to_cart_continue_button"'); Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
- Posts: 137
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
- Posts: 137
- Thank you received: 2
Best regards
Please Log in or Create an account to join the conversation.
You can try that:
echo $this->cartClass->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,'','window.top.location=\''.JRoute::_('index.php?option=com_content').'\';return false;','id="hikashop_add_to_cart_continue_button"');
where index.php?option=com_content is your URL without the website URL.
But if that doesn't work, then it's not possible.
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
- Posts: 137
- Thank you received: 2
I used
and it works.
I do have the same problem with the "continue shopping" button in the checkout view "step". How can I solve the problem there?
Best regards
Please Log in or Create an account to join the conversation.
You can set it to index.php for example and it will work on any domain name.
Please Log in or Create an account to join the conversation.
- emergentec
-
Topic Author
- Offline
- Posts: 137
- Thank you received: 2
Please Log in or Create an account to join the conversation.