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

#   resize "add to cart" popup

##

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

Less More

- Posts: 21
- Thank you received: 1
-
-

12 years 18 hours ago [\#179032](#179032) by [geeksonthebeach](/forum/user/33110-geeksonthebeach "View geeksonthebeach's Profile")  *[resize "add to cart" popup](/forum/27-checkout/872913-resize-add-to-cart-popup#179032 "-- url of the page with the problem -- :   wildeandsparrow.gotbdev.com/  -- HikaShop version -- : 2.3.4 Nov 5 2014 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : none  Greetings, This popup is too big for mobile and extends past the viewing window, so I'm trying to make is smaller generally. Here's what Ive tried, based on other threads: 1 hikashop&gt;configuration&gt;cart, setting &quot;add to cart&quot; to a smaller size 2 setting the mobile size in the template to 400 3 editing this: administrator/components/com&#95;hikashop/helper/cart.php and change the line: echo ''; 4 editing display&gt;views&gt; checkout / cart.php line 29: a title=&quot;&amp;lt;?php echo JText::&#95;('HIKA&#95;PRINT');?&amp;gt;&quot; clas=&quot;modal&quot; rel=&quot;{handler: 'iframe', size: {x: 480, y: 140}&quot; href=&quot;&quot;&gt; 5 clearing cache between each, 6 trying someone else's mobile phone  None of these had ANY effect! Please advise, thanks.")* was created by *[geeksonthebeach](/forum/user/33110-geeksonthebeach "View geeksonthebeach's Profile")*

-- url of the page with the problem -- : [ wildeandsparrow.gotbdev.com/](http://wildeandsparrow.gotbdev.com/)
-- HikaShop version -- : 2.3.4 Nov 5 2014
-- Joomla version -- : 3.3.6
-- Error-message(debug-mod must be tuned on) -- : none

Greetings,
This popup is too big for mobile and extends past the viewing window, so I'm trying to make is smaller generally.
Here's what Ive tried, based on other threads:
1 hikashop&gt;configuration&gt;cart, setting "add to cart" to a smaller size
2 setting the mobile size in the template to 400
3 editing this: *administrator/components/com\_hikashop/helper/cart.php and change the line:
echo '&lt;div style="display:none;"&gt;&lt;a rel="{handler: \\'iframe\\',size: {x: 480, y: 140}}" id="hikashop\_notice\_box\_trigger\_link" href="'.hikashop\_completeLink('checkout&amp;task=notice'.$url\_itemid,true).'"&gt;&lt;/a&gt;&lt;/div&gt;';*
4 editing display&gt;views&gt; checkout / cart.php line 29:
&lt;a title="&lt;?php echo JText::_('HIKA_PRINT');?&gt;" class="modal" rel="{handler: 'iframe', size: {x: 480, y: 140}" href="&lt;?php echo hikashop_completeLink('checkout&amp;task=printcart',true); ?&gt;"&gt;
5 clearing cache between each,
6 trying someone else's mobile phone

None of these had ANY effect! Please advise, thanks.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26395
- Thank you received: 4077
-
- [](http://obsi.dev)
-

12 years 5 hours ago [\#179038](#179038) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[resize "add to cart" popup](/forum/27-checkout/872913-resize-add-to-cart-popup#179038 "-- url of the page with the problem -- :   wildeandsparrow.gotbdev.com/  -- HikaShop version -- : 2.3.4 Nov 5 2014 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : none  Greetings, This popup is too big for mobile and extends past the viewing window, so I'm trying to make is smaller generally. Here's what Ive tried, based on other threads: 1 hikashop&gt;configuration&gt;cart, setting &quot;add to cart&quot; to a smaller size 2 setting the mobile size in the template to 400 3 editing this: administrator/components/com&#95;hikashop/helper/cart.php and change the line: echo ''; 4 editing display&gt;views&gt; checkout / cart.php line 29: a title=&quot;&amp;lt;?php echo JText::&#95;('HIKA&#95;PRINT');?&amp;gt;&quot; clas=&quot;modal&quot; rel=&quot;{handler: 'iframe', size: {x: 480, y: 140}&quot; href=&quot;&quot;&gt; 5 clearing cache between each, 6 trying someone else's mobile phone  None of these had ANY effect! Please advise, thanks.")*

Hi,

In HikaShop 2.3.4 ; the option "Add to cart popup size" allow you to change the popup size of the "add to cart notice message".
So there is no more line Code:

echo '&lt;div style="display:none;"&gt;&lt;a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_box_trigger_link" href="'.hikashop_completeLink('checkout&amp;task=notice'.$url_itemid,true).'"&gt;&lt;/a&gt;&lt;/div&gt;';

In HikaShop 2.3.4 ; we got Code:

$config =&amp; hikashop_config(); $popupWidth = $config-&gt;get('add_to_cart_popup_width','480'); $popupHeight = $config-&gt;get('add_to_cart_popup_height','140'); echo '&lt;div style="display:none;"&gt;'. '&lt;a rel="{handler: \'iframe\',size: {x: '.$popupWidth.', y: '.$popupHeight.'}}" id="hikashop_notice_box_trigger_link" href="'.hikashop_completeLink('checkout&amp;task=notice&amp;cart_type=cart'.$url_itemid,true).'"&gt;&lt;/a&gt;'. '&lt;a rel="{handler: \'iframe\',size: {x: '.$popupWidth.', y: '.$popupHeight.'}}" id="hikashop_notice_wishlist_box_trigger_link" href="'.hikashop_completeLink('checkout&amp;task=notice&amp;cart_type=wishlist'.$url_itemid,true).'"&gt;&lt;/a&gt;'. '&lt;/div&gt;';

But, if you got a plugin which make an override for the function "hikashop_popup_render" (around 3 lines above in the cart helper) ; you won't process the code in the cart helper but in the plugin itself.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [b\_sz](/forum/user/12026-b-sz "View b&#95;sz's Profile")

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

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

Less More

- Posts: 68
- Thank you received: 6
-
-

11 years 11 months ago [\#180836](#180836) by [cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")  Replied by *[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")* on topic *[resize "add to cart" popup](/forum/27-checkout/872913-resize-add-to-cart-popup#180836 "-- url of the page with the problem -- :   wildeandsparrow.gotbdev.com/  -- HikaShop version -- : 2.3.4 Nov 5 2014 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : none  Greetings, This popup is too big for mobile and extends past the viewing window, so I'm trying to make is smaller generally. Here's what Ive tried, based on other threads: 1 hikashop&gt;configuration&gt;cart, setting &quot;add to cart&quot; to a smaller size 2 setting the mobile size in the template to 400 3 editing this: administrator/components/com&#95;hikashop/helper/cart.php and change the line: echo ''; 4 editing display&gt;views&gt; checkout / cart.php line 29: a title=&quot;&amp;lt;?php echo JText::&#95;('HIKA&#95;PRINT');?&amp;gt;&quot; clas=&quot;modal&quot; rel=&quot;{handler: 'iframe', size: {x: 480, y: 140}&quot; href=&quot;&quot;&gt; 5 clearing cache between each, 6 trying someone else's mobile phone  None of these had ANY effect! Please advise, thanks.")*

I have the same problem and using Hikashop 2.3.4
Any value in the config option 'Add to cart popup size' works well in the desktop version of the site but does not work in the mobile version of the site. In the mobile version always cover the whole screen whatever the config option values.
We are using a responsive template from JoomlaShine. In the mobile version of

I remember the bug appeared after an upgrade to a new version of Joomla. Not the latest one but 2 or 3 versions ago.
Additionnaly when on a mobile we switch specifically to the desktop version, then the popup works with the right size from the config option.

So it is quite sure, at least in my case that it is not an Hikashop problem.
But if anyone has an idea on where the problem comes from, that would be really appreciated.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MjkxMy1yZXNpemUtYWRkLXRvLWNhcnQtcG9wdXA/dG1wbD1tYXJrZG93bg==) 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: 86359
- Thank you received: 14296
-
-

11 years 11 months ago [\#180839](#180839) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[resize "add to cart" popup](/forum/27-checkout/872913-resize-add-to-cart-popup#180839 "-- url of the page with the problem -- :   wildeandsparrow.gotbdev.com/  -- HikaShop version -- : 2.3.4 Nov 5 2014 -- Joomla version -- : 3.3.6 -- Error-message(debug-mod must be tuned on) -- : none  Greetings, This popup is too big for mobile and extends past the viewing window, so I'm trying to make is smaller generally. Here's what Ive tried, based on other threads: 1 hikashop&gt;configuration&gt;cart, setting &quot;add to cart&quot; to a smaller size 2 setting the mobile size in the template to 400 3 editing this: administrator/components/com&#95;hikashop/helper/cart.php and change the line: echo ''; 4 editing display&gt;views&gt; checkout / cart.php line 29: a title=&quot;&amp;lt;?php echo JText::&#95;('HIKA&#95;PRINT');?&amp;gt;&quot; clas=&quot;modal&quot; rel=&quot;{handler: 'iframe', size: {x: 480, y: 140}&quot; href=&quot;&quot;&gt; 5 clearing cache between each, 6 trying someone else's mobile phone  None of these had ANY effect! Please advise, thanks.")*

Hi,

I don't see why the popup size would be ignored since HikaShop specifically tells the joomla popup library to use that size.
Maybe your template overrides that with its own CSS. Could you switch your template temporarily and see if you still have the same behavior ?

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

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