Continue Shopping Pop-Up

  • Posts: 138
  • Thank you received: 0
13 years 7 months ago #16841

<a class="hikashop_html_add_to_cart_link" href="index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&popup=1&return=aW5kZXgucGhwP29wdGlvbj1jb21fcGhvY2FnYWxsZXJ5JnZpZXc9Y2F0ZWdvcnkmaWQ9MSZJdGVt%0d%0aaWQ9NTM%3d%0d%0a"> <img src="images/stories/buybutton.png" border="0" /></a>

This is the code i'm using after base64ing and urlencoding it and its still sending me to the checkout page. Did i miss a step?

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
13 years 7 months ago #16842

I just checked hte code and it's &url= and not &return= the base64/encode part is good now.

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

  • Posts: 138
  • Thank you received: 0
13 years 7 months ago #16843

Still no luck Nicholas

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

  • Posts: 138
  • Thank you received: 0
13 years 7 months ago #16864

So what are the next steps Nicholas? I have added the base64ed appendage both to the link that sends you to the phocagallery page daydreamercreative.cloudaccess.net/blog/...D%0AaWQ9NTM%3D%0D%0A and to the add to cart html of the buy button <a class="hikashop_html_add_to_cart_link" href="index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&popup=1&url=aW5kZXgucGhwP29wdGlvbj1jb21fcGhvY2FnYWxsZXJ5JnZpZXc9Y2F0ZWdvcnkmaWQ9MSZJdGVt%0d%0aaWQ9NTM%3d%0d%0a">

What could the problem be?

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
13 years 7 months ago #16867

I see that you're missing the product_id parameter in the url. You need to have it, otherwise the system cannot add the product to the cart.
The URL daydreamercreative.cloudaccess.net/blog.html is aHR0cDovL2RheWRyZWFtZXJjcmVhdGl2ZS5jbG91ZGFjY2Vzcy5uZXQvYmxvZy5odG1s when it's base64 encoded and urlencoded.
That is will add the product with the id 1 to the cart and redirect you to the blog URL:
daydreamercreative.cloudaccess.net/index...cy5uZXQvYmxvZy5odG1s

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

  • Posts: 138
  • Thank you received: 0
13 years 7 months ago #16871

Ok. Now the cart is updated and I stay on the phoca page but the pop-up does not appear.

Check this out: daydreamercreative.cloudaccess.net/blog.html

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
13 years 7 months ago #16873

Yes, the popup won't appear because it's not a hikashop page. If you want to have the popup, you should display the hikashop cart module on that page.


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 138
  • Thank you received: 0
13 years 7 months ago #16880

I have added the shopping cart to the page but the pop still does not appear. What can we do to nip this issue in the bud?

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
13 years 7 months ago #16893

Mmm. I had a closer look but we actually had to remove the popup with the cart previously as it wasn't working properly in some cases with other things and was never used once yet.
So that's why the popup is not showing.
It's still possible but it requires PHP to be inserted in the page. Since the cart is no displayed on the page, you could add the code below at the beginning of the cart file of the view product via the menu Display->Views:

if(JRequest::getInt('popup')){
			$class = hikashop::get('helper.cart');
			$class->getJS(urlencode(hikashop::currentURL()));
			$doc =& JFactory::getDocument();
			$js = '
			do_nothing( function() {
				SqueezeBox.fromElement(\'hikashop_notice_box_trigger_link\',{parse: \'rel\'});
			});
			';
			$doc->addScriptDeclaration("<!--\n".$js."\n//-->");
}
That will add the popup code in the cart module so that it can be displayed when necessary.

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

  • Posts: 138
  • Thank you received: 0
13 years 7 months ago #16951

Amen. What css line would I have to edit to change the font color of the title text for the shopping cart? Also, not the pop up occurs when the buy button is not clicked (i.e emptying the cart and refreshing the page after emptying the cart)? I know...its always something. Thanks in advance.

Last edit: 13 years 7 months ago by rsarpong.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
13 years 7 months ago #16955

The title of modules is displayed by your template with your template's CSS.
On your website, it's:
.moduletable h3{
//your CSS
}

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

  • Posts: 138
  • Thank you received: 0
13 years 7 months ago #16993

So what about the pop-up appearing on occurrences other than the buy button being activated?

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
13 years 7 months ago #17002

I'm not following you. Could you explain a bit more your problem ?

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

  • Posts: 138
  • Thank you received: 0
13 years 6 months ago #17077

Sure. The popup appears as it is suppose when the "Buy" button is activated but it also appears when the item is deleted from the shopping cart(which is fine by me) and if you refresh the page without navigating to another page first the popup appears again. I hope this helps.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
13 years 6 months ago #17079

Yes, that popup will appear when you refresh the page but there is nothing we can do to stop that

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

  • Posts: 11
  • Thank you received: 0
12 years 2 months ago #69516

Is this technique still a valid way to integrate the latest HikaShop cart into all photos within the latest PhocaGallery release?

Since I am producing a site that hosts thousands of products using HikaShop and also producing thousands of photos each month that I would like to sell, I would prefer to have one source for ecommerce transactions, HikaWhop.

Thank you,

Fidel

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
12 years 2 months ago #69725

Yes, it's still valid.

The following user(s) said Thank You: FidelGonzales

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

  • Posts: 25
  • Thank you received: 0
11 years 3 months ago #124901

i also have a problem with the popup. It appears after deleting a product with the same message "Product successfully added to the cart". Obviously its because the ?popup=1 does not disappear in the url after adding a product into the cart. In your demo site the popup=1 does not even appear in the url. How can i make it the same way?

Thanks in advance
Aleks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #124924

Hi,

Which version do you have ? The latest one ? (thanks to give the version number)
As I remember the changes has been made in a controller, so you should have the modification too.

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

  • Posts: 25
  • Thank you received: 0
11 years 3 months ago #124929

i have HikaShop Essential 2.1.3

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

Time to create page: 0.121 seconds
Powered by Kunena Forum