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

#   Popup not displaying for some items

##

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 5 months ago [\#159343](#159343) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  *[Popup not displaying for some items](/forum/27-checkout/868838-popup-not-displaying-for-some-items#159343 "-- url of the page with the problem -- :   www.inkacollective.com/testing/consilium/  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 -- PHP version -- : 5.x  I have &quot;stay and display popup&quot; selected in configuration of &quot;After a product is added to the cart&quot;, on products pages/articles that use the product TAG insertion method (  www.inkacollective.com/testing/consilium...f-probe-station.html ) the popup does not display but it does stay on the page. How can I fix this behaviour?  Also, for other pages I have custom coded the cart insertion code in order to support more than 1 TAG inserted product on the page using the code(  www.inkacollective.com/testing/consilium...ions/rf-probing.html ) What would be the best way to make the popup display using this code? If you could direct me or show me the code that displays the popup for other pages that would be beneficial.  Thanks.")* was created by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")*

-- url of the page with the problem -- : [ www.inkacollective.com/testing/consilium/](http://www.inkacollective.com/testing/consilium/)
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3
-- PHP version -- : 5.x

I have "stay and display popup" selected in configuration of "After a product is added to the cart", on products pages/articles that use the product TAG insertion method ([ www.inkacollective.com/testing/consilium...f-probe-station.html](http://www.inkacollective.com/testing/consilium/index.php/Probe-systems/ps400-rf-probe-station.html)) the popup does not display but it does stay on the page. How can I fix this behaviour?

Also, for other pages I have custom coded the cart insertion code in order to support more than 1 TAG inserted product on the page using the code Code:

http://www.demo.hikashop.com/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;data[ZZ]=YY&amp;data[AA]=BB&amp;checkout=1

([ www.inkacollective.com/testing/consilium...ions/rf-probing.html](http://www.inkacollective.com/testing/consilium/index.php/Applications/rf-probing.html)) What would be the best way to make the popup display using this code? If you could direct me or show me the code that displays the popup for other pages that would be beneficial.

Thanks.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 5 months ago [\#159494](#159494) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Popup not displaying for some items](/forum/27-checkout/868838-popup-not-displaying-for-some-items#159494 "-- url of the page with the problem -- :   www.inkacollective.com/testing/consilium/  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 -- PHP version -- : 5.x  I have &quot;stay and display popup&quot; selected in configuration of &quot;After a product is added to the cart&quot;, on products pages/articles that use the product TAG insertion method (  www.inkacollective.com/testing/consilium...f-probe-station.html ) the popup does not display but it does stay on the page. How can I fix this behaviour?  Also, for other pages I have custom coded the cart insertion code in order to support more than 1 TAG inserted product on the page using the code(  www.inkacollective.com/testing/consilium...ions/rf-probing.html ) What would be the best way to make the popup display using this code? If you could direct me or show me the code that displays the popup for other pages that would be beneficial.  Thanks.")*

Hi,

1. From what I can see, the issue here is that the hikashop.js file is missing from the page header. That should however never happen since the hikashop.js file is added to the page by the main helper.php file of HikaShop which is called by the tag insertion plugin in order to be able to load the add to cart button system in order to display it.
Try to add the code: Code:

if(!strpos($body,'/media/com_hikashop/js/hikashop.js')){ $body=str_replace('&lt;/head&gt;','&lt;script src="/media/com_hikashop/js/hikashop.js" type="text/javascript"&gt;&lt;/script&gt;&lt;/head&gt;',$body); JResponse::setBody($body); }

after the code: Code:

if(!strpos($body,'function hikashopModifyQuantity(')){ $body=str_replace('&lt;/head&gt;','&lt;script type="text/javascript"&gt;'.$this-&gt;addToCartJs.'&lt;/script&gt;&lt;/head&gt;',$body); JResponse::setBody($body); }

in the file components/com_hikashop/views/product/view.html.php and try again. That shoudl inject the file in the HTML source of the page if missing.

2. It's not impossible to have popups for custom made buttons but it's clearly not easy. Instead of a link, you need to have a form going to [ www.demo.hikashop.com/index.php?option=c...duct&amp;task=updatecart](http://www.demo.hikashop.com/index.php?option=com_hikashop&ctrl=product&task=updatecart) with hidden input fields for the parameters and a submit button type field to click on it. However, that button should not use the normal form submit system of HTML but instead call the javascript hikashopModifyQuantity function with the correct parameters to submit the form via this function. And this function needs to be loaded in the headers of the page by calling the getJS function of the administrator/components/com_hikashop/helpers/cart.php file.
Basically, if you're not a developer, you would need a developer to help you with such development as it's not a few lines of code that you can just plug in there.

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 5 months ago [\#159565](#159565) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Popup not displaying for some items](/forum/27-checkout/868838-popup-not-displaying-for-some-items#159565 "-- url of the page with the problem -- :   www.inkacollective.com/testing/consilium/  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 -- PHP version -- : 5.x  I have &quot;stay and display popup&quot; selected in configuration of &quot;After a product is added to the cart&quot;, on products pages/articles that use the product TAG insertion method (  www.inkacollective.com/testing/consilium...f-probe-station.html ) the popup does not display but it does stay on the page. How can I fix this behaviour?  Also, for other pages I have custom coded the cart insertion code in order to support more than 1 TAG inserted product on the page using the code(  www.inkacollective.com/testing/consilium...ions/rf-probing.html ) What would be the best way to make the popup display using this code? If you could direct me or show me the code that displays the popup for other pages that would be beneficial.  Thanks.")*

Nicolas,
Thanks for your reply. I changed the code like you suggested but the problem still persists.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 5 months ago [\#159654](#159654) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Popup not displaying for some items](/forum/27-checkout/868838-popup-not-displaying-for-some-items#159654 "-- url of the page with the problem -- :   www.inkacollective.com/testing/consilium/  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 -- PHP version -- : 5.x  I have &quot;stay and display popup&quot; selected in configuration of &quot;After a product is added to the cart&quot;, on products pages/articles that use the product TAG insertion method (  www.inkacollective.com/testing/consilium...f-probe-station.html ) the popup does not display but it does stay on the page. How can I fix this behaviour?  Also, for other pages I have custom coded the cart insertion code in order to support more than 1 TAG inserted product on the page using the code(  www.inkacollective.com/testing/consilium...ions/rf-probing.html ) What would be the best way to make the popup display using this code? If you could direct me or show me the code that displays the popup for other pages that would be beneficial.  Thanks.")*

Hi,

Can you provide a FTP access to your website via our contact form so that we can look at the code ?
Please include a link to this thread.
[ www.hikashop.com/contact-us.html](http://www.hikashop.com/contact-us.html)

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 5 months ago [\#159810](#159810) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Popup not displaying for some items](/forum/27-checkout/868838-popup-not-displaying-for-some-items#159810 "-- url of the page with the problem -- :   www.inkacollective.com/testing/consilium/  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 -- PHP version -- : 5.x  I have &quot;stay and display popup&quot; selected in configuration of &quot;After a product is added to the cart&quot;, on products pages/articles that use the product TAG insertion method (  www.inkacollective.com/testing/consilium...f-probe-station.html ) the popup does not display but it does stay on the page. How can I fix this behaviour?  Also, for other pages I have custom coded the cart insertion code in order to support more than 1 TAG inserted product on the page using the code(  www.inkacollective.com/testing/consilium...ions/rf-probing.html ) What would be the best way to make the popup display using this code? If you could direct me or show me the code that displays the popup for other pages that would be beneficial.  Thanks.")*

Nicolas,
I have sent an email a few days ago and still not seen a reply.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 5 months ago [\#159827](#159827) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Popup not displaying for some items](/forum/27-checkout/868838-popup-not-displaying-for-some-items#159827 "-- url of the page with the problem -- :   www.inkacollective.com/testing/consilium/  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 -- PHP version -- : 5.x  I have &quot;stay and display popup&quot; selected in configuration of &quot;After a product is added to the cart&quot;, on products pages/articles that use the product TAG insertion method (  www.inkacollective.com/testing/consilium...f-probe-station.html ) the popup does not display but it does stay on the page. How can I fix this behaviour?  Also, for other pages I have custom coded the cart insertion code in order to support more than 1 TAG inserted product on the page using the code(  www.inkacollective.com/testing/consilium...ions/rf-probing.html ) What would be the best way to make the popup display using this code? If you could direct me or show me the code that displays the popup for other pages that would be beneficial.  Thanks.")*

Several other issues were present in order to make the popup work for your configuration.
First, first the mootools-more library was not loading.
Second the jquery library was loaded twice.
I've had to add a few changes in the code of the same file (near the code change you already made), and also install the plugin jquery easy to fix the jquery library problem between your template and another extension.

The popup is working now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODgzOC1wb3B1cC1ub3QtZGlzcGxheWluZy1mb3Itc29tZS1pdGVtcz90bXBsPW1hcmtkb3du) 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.054 seconds

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