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

#   product page in pop up... add to cart display

##

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

Less More

- Posts: 32
- Thank you received: 1
-
-

13 years 8 months ago -  13 years 8 months ago [\#92688](#92688) by [Tracy](/forum/user/12641-tracy "View Tracy's Profile")  *[product page in pop up... add to cart display](/forum/4-how-to/78885-product-page-in-pop-up-add-to-cart-display#92688 "Hi  I have my product page set up as a pop up by editing the listing&#95;img&#95;title view with the below code. This works fine. However i have the add to cart button set to &quot;stay on page and display pop up&quot; The continue shopping pop up appears but instead of the correct content it says an error has occured. Any ideas how to fix this  Thanks  Here is a link to a listing so you can see what i mean    66.147.244.93/~therebe5/joomla1/gk&#95;resta...ory/12-boiled-sweets")* was created by *[Tracy](/forum/user/12641-tracy "View Tracy's Profile")*

Hi

I have my product page set up as a pop up by editing the listing_img_title view with the below code. This works fine. However i have the add to cart button set to "stay on page and display pop up" The continue shopping pop up appears but instead of the correct content it says an error has occured. Any ideas how to fix this
Code:

&lt;a class="modal" rel="{handler: 'iframe', size: {x: 800, y: 500}}" href="&lt;?php echo $link;?&gt;" title="&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;product_name); ?&gt;"&gt;

Code:

$link = hikashop_completeLink('product&amp;task=show&amp;cid='.$this-&gt;row-&gt;product_id.'&amp;tmpl=component&amp;name='.$this-&gt;row-&gt;alias.$this-&gt;itemid.$this-&gt;category_pathway);

Thanks

Here is a link to a listing so you can see what i mean

[ 66.147.244.93/~therebe5/joomla1/gk\_resta...ory/12-boiled-sweets](http://66.147.244.93/~therebe5/joomla1/gk_restaurant_quickstart_J25/index.php/candy-shop1/category/12-boiled-sweets)

Last edit: 13 years 8 months ago by [Tracy](/forum/user/12641-tracy "View Tracy's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4ODg1LXByb2R1Y3QtcGFnZS1pbi1wb3AtdXAtYWRkLXRvLWNhcnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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 7 months ago [\#92823](#92823) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[product page in pop up... add to cart display](/forum/4-how-to/78885-product-page-in-pop-up-add-to-cart-display#92823 "Hi  I have my product page set up as a pop up by editing the listing&#95;img&#95;title view with the below code. This works fine. However i have the add to cart button set to &quot;stay on page and display pop up&quot; The continue shopping pop up appears but instead of the correct content it says an error has occured. Any ideas how to fix this  Thanks  Here is a link to a listing so you can see what i mean    66.147.244.93/~therebe5/joomla1/gk&#95;resta...ory/12-boiled-sweets")*

Hi,

Because the product is in a popup, the popup notice can not take the element from the page. I think that some JavaScript need to be edited the use of "parent." is probably required.
Try to use another option instead of "stay on page and display pop up" and see if the product is correctly added to the cart.

You can set the error report to maximum (joomla options) to see if errors are returned.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4ODg1LXByb2R1Y3QtcGFnZS1pbi1wb3AtdXAtYWRkLXRvLWNhcnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 32
- Thank you received: 1
-
-

13 years 7 months ago [\#92881](#92881) by [Tracy](/forum/user/12641-tracy "View Tracy's Profile")  Replied by *[Tracy](/forum/user/12641-tracy "View Tracy's Profile")* on topic *[product page in pop up... add to cart display](/forum/4-how-to/78885-product-page-in-pop-up-add-to-cart-display#92881 "Hi  I have my product page set up as a pop up by editing the listing&#95;img&#95;title view with the below code. This works fine. However i have the add to cart button set to &quot;stay on page and display pop up&quot; The continue shopping pop up appears but instead of the correct content it says an error has occured. Any ideas how to fix this  Thanks  Here is a link to a listing so you can see what i mean    66.147.244.93/~therebe5/joomla1/gk&#95;resta...ory/12-boiled-sweets")*

Thanks xavier

I'm afraid my javascript skills are not very good. alternatively would there be a way to get the add to cart button to close the pop up on clicking it. or even possibly closing the product pop up and then opening the notice pop up.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4ODg1LXByb2R1Y3QtcGFnZS1pbi1wb3AtdXAtYWRkLXRvLWNhcnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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 7 months ago [\#92934](#92934) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[product page in pop up... add to cart display](/forum/4-how-to/78885-product-page-in-pop-up-add-to-cart-display#92934 "Hi  I have my product page set up as a pop up by editing the listing&#95;img&#95;title view with the below code. This works fine. However i have the add to cart button set to &quot;stay on page and display pop up&quot; The continue shopping pop up appears but instead of the correct content it says an error has occured. Any ideas how to fix this  Thanks  Here is a link to a listing so you can see what i mean    66.147.244.93/~therebe5/joomla1/gk&#95;resta...ory/12-boiled-sweets")*

The JavaScript function is "self.close()" but you have to add it in the product button in the "onClick" event.
And to do that, you have to edit a core php file.

It require good php skills in this case.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc4ODg1LXByb2R1Y3QtcGFnZS1pbi1wb3AtdXAtYWRkLXRvLWNhcnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.077 seconds

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