Skip to main content

Continue Shopping Pop-Up

More
15 years 4 months ago #16841 by rsarpong
<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.

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

More
15 years 4 months ago #16843 by rsarpong
Still no luck Nicholas

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

More
15 years 4 months ago #16864 by rsarpong
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

What could the problem be?

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

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

More
15 years 4 months ago #16871 by rsarpong
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.

More
15 years 4 months ago #16873 by Jerome
Replied by Jerome on topic Re: Continue Shopping Pop-Up
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.

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

More
15 years 4 months ago #16880 by rsarpong
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.

More
15 years 4 months ago #16893 by nicolas
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:
Code:
if(JRequest::getInt('popup')){ $class = hikashop::get('helper.cart'); $class->getJS(urlencode(hikashop::currentURL())); $doc =& JFactory::getDocument(); $js = ' window.addEvent(\'domready\', 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.

More
15 years 4 months ago - 15 years 4 months ago #16951 by rsarpong
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: 15 years 4 months ago by rsarpong.

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

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

More
15 years 4 months ago #16993 by rsarpong
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.

More
15 years 4 months ago #17002 by nicolas
I'm not following you. Could you explain a bit more your problem ?

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

More
15 years 4 months ago #17077 by rsarpong
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.

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

More
13 years 11 months ago #69516 by FidelGonzales
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.

More
13 years 11 months ago #69725 by nicolas
Yes, it's still valid.
The following user(s) said Thank You: FidelGonzales

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

More
13 years 1 week ago #124901 by aleks59
Replied by aleks59 on topic Continue Shopping Pop-Up
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.

More
13 years 1 week ago #124924 by Xavier
Replied by Xavier on topic Continue Shopping Pop-Up
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.

More
13 years 1 week ago #124929 by aleks59
Replied by aleks59 on topic Continue Shopping Pop-Up
i have HikaShop Essential 2.1.3

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

Time to create page: 0.292 seconds
Powered by Kunena Forum