Skip to main content

Continue Shopping Pop-Up

More
15 years 4 months ago #16632 by rsarpong
Hello,

I am using Phoca Gallery to display artwork that will be sold through my website and have created a buy button for each painting. How can I call the "continue shopping/checkout" pop when users click on the buy button? Here is a link to help daydreamercreative.cloudaccess.net/compo...lery/category/1.html

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

More
15 years 4 months ago #16650 by nicolas
You can go in your product edition screen and copy the HTML from the "add to cart button HTML" button. In the link of the HMTL provided by HikaShop you can just replace the code: &checkout=1 by: &popup=1

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

More
15 years 4 months ago #16708 by rsarpong
The link sends me to the shopping cart.

<a class="hikashop_html_add_to_cart_link" href=" daydreamercreative.cloudaccess.net/index...pup=1&product_id=128 ">

This is the string that I'm using.

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

More
15 years 4 months ago #16716 by nicolas
Do you have the latest version of HikaShop ?

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

More
15 years 4 months ago #16721 by rsarpong
I am now.

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

More
15 years 4 months ago #16722 by rsarpong
Still having the same issue.

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

More
15 years 4 months ago #16729 by nicolas
Could you try to add the code:
Code:
if(JRequest::getInt('popup') && JRequest::getVar('tmpl')!='component'){ $class = hikashop::get('helper.cart'); $class->getJS($this->init()); $doc =& JFactory::getDocument(); $js = ' window.addEvent(\'domready\', function() { SqueezeBox.fromElement(\'hikashop_notice_box_trigger_link\',{parse: \'rel\'}); }); '; $doc->addScriptDeclaration("<!--\n".$js."\n//-->"); }
after the lines:
Code:
$this->paramBase = HIKASHOP_COMPONENT.'.'.$this->getName(); $function = $this->getLayout();
in the file components/com_hikashop/views/checkout/view.html.php and try again ?

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

More
15 years 4 months ago #16736 by rsarpong
I receive a server error now. Here is the link.

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

More
15 years 4 months ago #16737 by rsarpong
I receive a server error now. Here is the link. daydreamercreative.cloudaccess.net/compo...lery/category/1.html

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

More
15 years 4 months ago #16738 by rsarpong
I'm I supposed to put that code after each of the two lines?

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

More
15 years 4 months ago #16739 by rsarpong
Checkout how the add to cart button has change. daydreamercreative.cloudaccess.net/tees/...ow/product_id-4.html

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

More
15 years 4 months ago #16742 by nicolas
Could you remove that modification and try instead to add the code:
Code:
if(JRequest::getInt('popup') && JRequest::getVar('tmpl')!='component'){ $class = hikashop::get('helper.cart'); $this->init(); $class->getJS($this->params->get('url')); $doc =& JFactory::getDocument(); $js = ' window.addEvent(\'domready\', function() { SqueezeBox.fromElement(\'hikashop_notice_box_trigger_link\',{parse: \'rel\'}); }); '; $doc->addScriptDeclaration("<!--\n".$js."\n//-->"); }
after the line:
Code:
if(method_exists($this,$function)) $this->$function();
in that same file and try again ?

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

More
15 years 4 months ago #16744 by rsarpong
The pop up occurs but it still navigates to the checkout page.
daydreamercreative.cloudaccess.net/compo...lery/category/1.html

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

More
15 years 4 months ago #16748 by nicolas
If you want to stay on the same page you will have to specify an additional parameter in the URL.
You need to get the URL of the page and base64 it (for example, via this tool webnet77.com/cgi-bin/helpers/base-64.pl ) and append the code below to the URL:
&return=BASE64
where BASE64 is your base64ed URL.

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

More
15 years 4 months ago #16831 by rsarpong
I have created a base64 for the page that I would like to stay on and appended to that page url and the url that links to the buy button but I am still having the same issue. Also, the size of the add to cart button has been greatly reduced after adding that code that you gave me. Take a a look daydreamercreative.cloudaccess.net/tees/...ow/product_id-3.html

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

More
15 years 4 months ago #16835 by nicolas
After base64ing the URL, you should also urlencode it (for example: www.string-functions.com/urlencode.aspx ) so that special characters in the base64 string are not messed up by joomla.

For the add to cart button size, it's not related to that. It seems that you either:
changed the translation of the add to cart text in the language file of hikashop
or that you edited the view file directly and removed the translation display

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

More
15 years 4 months ago - 15 years 4 months ago #16836 by rsarpong
I should add the urlencode after the base64 appendage? If so, still no dice.

daydreamercreative.cloudaccess.net/compo...%3D%2Furlencode.aspx
Last edit: 15 years 4 months ago by rsarpong.

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

More
15 years 4 months ago #16838 by nicolas
No, instead of the base64

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

More
15 years 4 months ago #16839 by rsarpong
http%3a%2f%2fdaydreamercreative.cloudaccess.net%2fcomponent%2fphocagallery%2fcategory%2f1.html

Now I get the page not ready message...will this work itself out

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

More
15 years 4 months ago #16840 by nicolas
That URL is encodeed but not sefed.
You need to do both. First, base64 the url, then urlencode the base64ed url and finally add the result to the add to cart url by appending it to &return=

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

Time to create page: 0.306 seconds
Powered by Kunena Forum