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

#   add custom iframe to product page below wish list

##

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

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 5 months ago [\#242444](#242444) by [cajsoft](/forum/user/40970-cajsoft "View cajsoft's Profile")  *[add custom iframe to product page below wish list](/forum/26-product-category-display/884977-add-custom-iframe-to-product-page-below-wish-list#242444 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3 -- PHP version -- : 5 -- Browser(s) name and version -- : ie11  Hi, I've been struggling to figure out how to add a button or link below the &quot;Add to Wishlist&quot; button on the Product page that can contain an iframe?  is this possible?  Regards, Craig.")* was created by *[cajsoft](/forum/user/40970-cajsoft "View cajsoft's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3
-- PHP version -- : 5
-- Browser(s) name and version -- : ie11

Hi,
I've been struggling to figure out how to add a button or link below the "Add to Wishlist" button on the Product page that can contain an iframe?

is this possible?

Regards,
Craig.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ5NzctYWRkLWN1c3RvbS1pZnJhbWUtdG8tcHJvZHVjdC1wYWdlLWJlbG93LXdpc2gtbGlzdD90bXBsPW1hcmtkb3du) 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: 86576
- Thank you received: 14320
-
-

10 years 5 months ago [\#242448](#242448) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add custom iframe to product page below wish list](/forum/26-product-category-display/884977-add-custom-iframe-to-product-page-below-wish-list#242448 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3 -- PHP version -- : 5 -- Browser(s) name and version -- : ie11  Hi, I've been struggling to figure out how to add a button or link below the &quot;Add to Wishlist&quot; button on the Product page that can contain an iframe?  is this possible?  Regards, Craig.")*

Hi,

You would have to add such code: Code:

echo 'my iframe HTML code';

after the code: Code:

echo '&lt;div id="hikashop_add_wishlist"&gt;' . $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'), 'add', $this-&gt;params, $url, $wishlistAjax, '', @$this-&gt;row-&gt;product_max_per_order, 1, '', false) . '&lt;/div&gt;';

in the file "quantity" via the menu Display&gt;Views

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

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

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 4 months ago [\#244915](#244915) by [cajsoft](/forum/user/40970-cajsoft "View cajsoft's Profile")  Replied by *[cajsoft](/forum/user/40970-cajsoft "View cajsoft's Profile")* on topic *[add custom iframe to product page below wish list](/forum/26-product-category-display/884977-add-custom-iframe-to-product-page-below-wish-list#244915 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3 -- PHP version -- : 5 -- Browser(s) name and version -- : ie11  Hi, I've been struggling to figure out how to add a button or link below the &quot;Add to Wishlist&quot; button on the Product page that can contain an iframe?  is this possible?  Regards, Craig.")*

hi,
I've added the IFRAME code to the quantity view and the FRAME now shows below the Wishlist which is what I want, however, the JBUTTON you mentioned, once I add this it just shows another "Add to wishlist" button below the IFRAME.

What I require is that the IFRAME is hidden until the Button is clicked.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ5NzctYWRkLWN1c3RvbS1pZnJhbWUtdG8tcHJvZHVjdC1wYWdlLWJlbG93LXdpc2gtbGlzdD90bXBsPW1hcmtkb3du) 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: 86576
- Thank you received: 14320
-
-

10 years 4 months ago [\#244924](#244924) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add custom iframe to product page below wish list](/forum/26-product-category-display/884977-add-custom-iframe-to-product-page-below-wish-list#244924 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3 -- PHP version -- : 5 -- Browser(s) name and version -- : ie11  Hi, I've been struggling to figure out how to add a button or link below the &quot;Add to Wishlist&quot; button on the Product page that can contain an iframe?  is this possible?  Regards, Craig.")*

Hi,

I didn't say that you should add the code: Code:

echo '&lt;div id="hikashop_add_wishlist"&gt;' . $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_WISHLIST'), 'add', $this-&gt;params, $url, $wishlistAjax, '', @$this-&gt;row-&gt;product_max_per_order, 1, '', false) . '&lt;/div&gt;';

It was just an indication of where to put the code of your iframe.

If you want the iframe to be hidden until you click on the add to wishlist button, you need to add an id in your iframe and add CSS code to hide it by default: Code:

\#my_iframe_id{ display: none; }

Then, before the code of the add to wishlist button, you need to prepend to the variable $wishlistAjax some javascript code to display the iframe. Something like that: Code:

$wishlistAjax = 'document.getElementById(\'my_iframe_id\').style.display = \'block\''. $wishlistAjax;

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

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

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 4 months ago [\#244993](#244993) by [cajsoft](/forum/user/40970-cajsoft "View cajsoft's Profile")  Replied by *[cajsoft](/forum/user/40970-cajsoft "View cajsoft's Profile")* on topic *[add custom iframe to product page below wish list](/forum/26-product-category-display/884977-add-custom-iframe-to-product-page-below-wish-list#244993 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3 -- PHP version -- : 5 -- Browser(s) name and version -- : ie11  Hi, I've been struggling to figure out how to add a button or link below the &quot;Add to Wishlist&quot; button on the Product page that can contain an iframe?  is this possible?  Regards, Craig.")*

thanks.

I understand what you are saying, however I dont want ot use the WISHLIST button.. I want a NEW button that when clicked shows the frame.. What I found that is when I click the add to wishlist button, it shows the frame, however the button performs a POST on the page and redirects me to the CART. I dont want this to happen.. all that should happen is when the NEW button is clicked the frame is shown and the POST should not be completed. i.e user stays on same page.

regards,
Craig.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODQ5NzctYWRkLWN1c3RvbS1pZnJhbWUtdG8tcHJvZHVjdC1wYWdlLWJlbG93LXdpc2gtbGlzdD90bXBsPW1hcmtkb3du) 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: 86576
- Thank you received: 14320
-
-

10 years 4 months ago [\#245018](#245018) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add custom iframe to product page below wish list](/forum/26-product-category-display/884977-add-custom-iframe-to-product-page-below-wish-list#245018 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3 -- PHP version -- : 5 -- Browser(s) name and version -- : ie11  Hi, I've been struggling to figure out how to add a button or link below the &quot;Add to Wishlist&quot; button on the Product page that can contain an iframe?  is this possible?  Regards, Craig.")*

Hi,

Then, it's even easier.
Just add your own button like that: Code:

&lt;input type="button" onclick="document.getElementById('my_iframe_id').style.display = 'block';return false;" value="Display iframe" /&gt;

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

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