Continue Shopping Pop-Up

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16632

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.

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
12 years 11 months ago #16650

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.

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16708

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.

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
12 years 11 months ago #16716

Do you have the latest version of HikaShop ?

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

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16721

I am now.

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

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16722

Still having the same issue.

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

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
12 years 11 months ago #16729

Could you try to add the code:

if(JRequest::getInt('popup') && JRequest::getVar('tmpl')!='component'){
			$class = hikashop::get('helper.cart');
			$class->getJS($this->init());
			$doc =& JFactory::getDocument();
			$js = '
			do_nothing( function() {
				SqueezeBox.fromElement(\'hikashop_notice_box_trigger_link\',{parse: \'rel\'});
			});
			';
			$doc->addScriptDeclaration("<!--\n".$js."\n//-->");
		}
after the lines:
$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.

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16736

I receive a server error now. Here is the link.

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

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16737

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.

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16738

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.

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16739

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.

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
12 years 11 months ago #16742

Could you remove that modification and try instead to add the 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 = '
			do_nothing( function() {
				SqueezeBox.fromElement(\'hikashop_notice_box_trigger_link\',{parse: \'rel\'});
			});
			';
			$doc->addScriptDeclaration("<!--\n".$js."\n//-->");
		}
after the line:
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.

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16744

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.

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
12 years 11 months ago #16748

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.

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16831

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.

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
12 years 11 months ago #16835

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.

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16836

I should add the urlencode after the base64 appendage? If so, still no dice.

daydreamercreative.cloudaccess.net/compo...%3D%2Furlencode.aspx

Last edit: 12 years 11 months ago by rsarpong.

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

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
12 years 11 months ago #16838

No, instead of the base64

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

  • Posts: 138
  • Thank you received: 0
12 years 11 months ago #16839

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.

  • Posts: 81563
  • Thank you received: 13071
  • MODERATOR
12 years 11 months ago #16840

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.061 seconds
Powered by Kunena Forum