[Skip to main content](#vessel-content)

#   Continue Shopping Pop-Up

##

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 2 months ago [\#125006](#125006) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Continue Shopping Pop-Up](/forum/4-how-to/16632-continue-shopping-pop-up?start=40#125006 "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 &quot;continue shopping/checkout&quot; pop when users click on the buy button? Here is a link to help   daydreamercreative.cloudaccess.net/compo...lery/category/1.html")*

Thanks to update to the latest version, the 2.2.1.
This should solve the problem.

The following user(s) said Thank You: [aleks59](/forum/user/19049-aleks59 "View aleks59's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE2NjMyLWNvbnRpbnVlLXNob3BwaW5nLXBvcC11cD9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yannickv](/forum/user/28156-yannickv "View yannickv's Profile")**
- [![yannickv's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28156-yannickv "View yannickv's Profile")
- [ Offline](/forum/user/28156-yannickv)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 1 month ago -  13 years 1 month ago [\#127617](#127617) by [yannickv](/forum/user/28156-yannickv "View yannickv's Profile")  Replied by *[yannickv](/forum/user/28156-yannickv "View yannickv's Profile")* on topic *[Continue Shopping Pop-Up](/forum/4-how-to/16632-continue-shopping-pop-up?start=40#127617 "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 &quot;continue shopping/checkout&quot; pop when users click on the buy button? Here is a link to help   daydreamercreative.cloudaccess.net/compo...lery/category/1.html")*

I am having the same issue with ?popup=1 staying in the URL after I add a product to the cart. So when I leave the page and navigate back using the back button of the browser, the popup is showing again.

I'm using Hikashop Essential 2.2.2

Shop in development: [ www.kvcv.be/index.php/webshop](http://www.kvcv.be/index.php/webshop)

Last edit: 13 years 1 month ago by [yannickv](/forum/user/28156-yannickv "View yannickv's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE2NjMyLWNvbnRpbnVlLXNob3BwaW5nLXBvcC11cD9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago -  13 years 1 month ago [\#127820](#127820) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Continue Shopping Pop-Up](/forum/4-how-to/16632-continue-shopping-pop-up?start=40#127820 "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 &quot;continue shopping/checkout&quot; pop when users click on the buy button? Here is a link to help   daydreamercreative.cloudaccess.net/compo...lery/category/1.html")*

Hi,

Thanks for the report, I have corrected that and it will be available in the next release.
You can edit the file: "component/com_hikashop/controllers/product.php" function "display()" and add the code: Code:

$app-&gt;setUserState( HIKASHOP_COMPONENT.'.popup','1');

after: Code:

$url.='popup=1';

(code present twice)

And edit the file: "components/com_hikashop/views/product/view.html.php" and replace: Code:

$js = $this-&gt;getJS();

By: Code:

if($app-&gt;getUserState( HIKASHOP_COMPONENT.'.popup','0')){ $js = $this-&gt;getJS(); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.popup','0'); }else{ $js = ''; }

Last edit: 13 years 1 month ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE2NjMyLWNvbnRpbnVlLXNob3BwaW5nLXBvcC11cD9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yannickv](/forum/user/28156-yannickv "View yannickv's Profile")**
- [![yannickv's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28156-yannickv "View yannickv's Profile")
- [ Offline](/forum/user/28156-yannickv)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 1 month ago -  13 years 1 month ago [\#127902](#127902) by [yannickv](/forum/user/28156-yannickv "View yannickv's Profile")  Replied by *[yannickv](/forum/user/28156-yannickv "View yannickv's Profile")* on topic *[Continue Shopping Pop-Up](/forum/4-how-to/16632-continue-shopping-pop-up?start=40#127902 "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 &quot;continue shopping/checkout&quot; pop when users click on the buy button? Here is a link to help   daydreamercreative.cloudaccess.net/compo...lery/category/1.html")*

Hi

In the file components/com_hikashop/views/product/view.html.php the code Code:

$js = $this-&gt;getJS();

is present twice.

Should I replace both of them?

Last edit: 13 years 1 month ago by [yannickv](/forum/user/28156-yannickv "View yannickv's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE2NjMyLWNvbnRpbnVlLXNob3BwaW5nLXBvcC11cD9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#127936](#127936) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Continue Shopping Pop-Up](/forum/4-how-to/16632-continue-shopping-pop-up?start=40#127936 "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 &quot;continue shopping/checkout&quot; pop when users click on the buy button? Here is a link to help   daydreamercreative.cloudaccess.net/compo...lery/category/1.html")*

Hi,

The first one should be enough. The on in the display() function.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE2NjMyLWNvbnRpbnVlLXNob3BwaW5nLXBvcC11cD9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yannickv](/forum/user/28156-yannickv "View yannickv's Profile")**
- [![yannickv's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28156-yannickv "View yannickv's Profile")
- [ Offline](/forum/user/28156-yannickv)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 1 month ago [\#127958](#127958) by [yannickv](/forum/user/28156-yannickv "View yannickv's Profile")  Replied by *[yannickv](/forum/user/28156-yannickv "View yannickv's Profile")* on topic *[Continue Shopping Pop-Up](/forum/4-how-to/16632-continue-shopping-pop-up?start=40#127958 "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 &quot;continue shopping/checkout&quot; pop when users click on the buy button? Here is a link to help   daydreamercreative.cloudaccess.net/compo...lery/category/1.html")*

When I change that, adding a product to the shopping cart results in the following error: Code:

Fatal error: Call to a member function getUserState() on a non-object in /home/kvcv/public_html/components/com_hikashop/views/product/view.html.php on line 25

Line 25 refers to the line Code:

if($app-&gt;getUserState( HIKASHOP_COMPONENT.'.popup','0')){

that I added.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE2NjMyLWNvbnRpbnVlLXNob3BwaW5nLXBvcC11cD9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#127960](#127960) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Continue Shopping Pop-Up](/forum/4-how-to/16632-continue-shopping-pop-up?start=40#127960 "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 &quot;continue shopping/checkout&quot; pop when users click on the buy button? Here is a link to help   daydreamercreative.cloudaccess.net/compo...lery/category/1.html")*

Oups..
You have to add: Code:

$app = JFactory::getApplication();

before that code.

The following user(s) said Thank You: [yannickv](/forum/user/28156-yannickv "View yannickv's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE2NjMyLWNvbnRpbnVlLXNob3BwaW5nLXBvcC11cD9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yannickv](/forum/user/28156-yannickv "View yannickv's Profile")**
- [![yannickv's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28156-yannickv "View yannickv's Profile")
- [ Offline](/forum/user/28156-yannickv)

Less More

- Posts: 13
- Thank you received: 0
-
-

13 years 1 month ago [\#127970](#127970) by [yannickv](/forum/user/28156-yannickv "View yannickv's Profile")  Replied by *[yannickv](/forum/user/28156-yannickv "View yannickv's Profile")* on topic *[Continue Shopping Pop-Up](/forum/4-how-to/16632-continue-shopping-pop-up?start=40#127970 "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 &quot;continue shopping/checkout&quot; pop when users click on the buy button? Here is a link to help   daydreamercreative.cloudaccess.net/compo...lery/category/1.html")*

Thanks, now it's working fine ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE2NjMyLWNvbnRpbnVlLXNob3BwaW5nLXBvcC11cD9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.083 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
