Skip to main content

continue shopping button forwards to wrong page

More
15 years 2 months ago #20377 by emergentec
Hi!

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.

More
15 years 2 months ago #20411 by nicolas
The option "Continue shopping button's URL" if only for the continue button on the checkout.Not for the one in the popup. The one in the popup should just close the popup.
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.

More
15 years 2 months ago #20483 by emergentec
So I used the original view and now the notice pop-up just closes when clicking on continue shopping. Is it possible, that this button forwards to a given URL?

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

More
15 years 2 months ago - 15 years 2 months ago #20520 by nicolas
Yes. Edit the file notice of the view checkout via the menu Display->Views and change the line:
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"');
Last edit: 15 years 2 months ago by nicolas.

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

More
15 years 2 months ago #20537 by emergentec
this code doesn't work!

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

More
15 years 2 months ago #20563 by nicolas
Try like that:
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.

More
15 years 2 months ago #20601 by emergentec
This code opens this URL: http://.../mybio/home/checkout/notice/mywebsite.com/mylink and looks exactly like the screenshot in my first post!

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

More
15 years 2 months ago #20626 by nicolas
Of course, you need to replace the text mywebsite.com/mylink by your link...

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

More
15 years 2 months ago #20676 by emergentec
This code doesn't open link mywebsite.com/mylink it opens http://..../mybio/home/checkout/notice/mywebsite.com/mylink and therefore doesn't work!

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

More
15 years 2 months ago #20693 by nicolas
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.

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

More
14 years 11 months ago #27511 by emergentec
nicolas wrote:

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.

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.

Best regards

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

More
14 years 11 months ago #27512 by nicolas
Well, you can add https:// at the beginning then.

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

More
14 years 11 months ago #27571 by emergentec
nicolas wrote:

Well, you can add https:// at the beginning then.

We would like to have a solution which DOESN'T change the protocol ;-)

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

More
14 years 11 months ago #27584 by nicolas
Then you should just change the code to use the current protocol...like that:
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.

More
14 years 11 months ago #27693 by emergentec
Thanks, works perfect!

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

More
14 years 10 months ago #30684 by emergentec
Is it possible to change the code, that it does not contain the URL? We have different servers for development, testing and production and the "continue shopping" button now always links to the production server.

Best regards

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

More
14 years 10 months ago #30726 by nicolas
Maybe.
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.

More
14 years 9 months ago #31192 by emergentec
Hi!

I used
Code:
echo $this->cartClass->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,'','window.top.location=\''.JRoute::_('index.php').'\';return false;','id="hikashop_add_to_cart_continue_button"');

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.

More
14 years 9 months ago #31220 by nicolas
The continue shopping button on the checkout uses the URL that you set in the option "Continue shopping button's URL" of the configuration.
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.

More
14 years 9 months ago #31971 by emergentec
After setting the option to "index.php", you will be forwarded to " site.com/component/hikashop/ " which is a blank site only with the navigation.

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

Time to create page: 0.299 seconds
Powered by Kunena Forum