- Posts: 21
- Thank you received: 1
resize "add to cart" popup
- geeksonthebeach
-
Topic Author
- Offline
Less
More
11 years 10 months ago #179032
by geeksonthebeach
resize "add to cart" popup was created by geeksonthebeach
-- 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>configuration>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 '<div style="display:none;"><a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice'.$url_itemid,true).'"></a></div>';
4 editing display>views> checkout / cart.php line 29:
<a title="<?php echo JText::_('HIKA_PRINT');?>" class="modal" rel="{handler: 'iframe', size: {x: 480, y: 140}" href="<?php echo hikashop_completeLink('checkout&task=printcart',true); ?>">
5 clearing cache between each,
6 trying someone else's mobile phone
None of these had ANY effect! Please advise, thanks.
-- 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>configuration>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 '<div style="display:none;"><a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice'.$url_itemid,true).'"></a></div>';
4 editing display>views> checkout / cart.php line 29:
<a title="<?php echo JText::_('HIKA_PRINT');?>" class="modal" rel="{handler: 'iframe', size: {x: 480, y: 140}" href="<?php echo hikashop_completeLink('checkout&task=printcart',true); ?>">
5 clearing cache between each,
6 trying someone else's mobile phone
None of these had ANY effect! Please advise, thanks.
Please Log in or Create an account to join the conversation.
11 years 10 months ago #179038
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic resize "add to cart" popup
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
In HikaShop 2.3.4 ; we got
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,
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 '<div style="display:none;"><a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice'.$url_itemid,true).'"></a></div>';
Code:
$config =& hikashop_config();
$popupWidth = $config->get('add_to_cart_popup_width','480');
$popupHeight = $config->get('add_to_cart_popup_height','140');
echo '<div style="display:none;">'.
'<a rel="{handler: \'iframe\',size: {x: '.$popupWidth.', y: '.$popupHeight.'}}" id="hikashop_notice_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice&cart_type=cart'.$url_itemid,true).'"></a>'.
'<a rel="{handler: \'iframe\',size: {x: '.$popupWidth.', y: '.$popupHeight.'}}" id="hikashop_notice_wishlist_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice&cart_type=wishlist'.$url_itemid,true).'"></a>'.
'</div>';
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: b_sz
Please Log in or Create an account to join the conversation.
11 years 10 months ago #180836
by cbadmin
Replied by cbadmin on topic resize "add to cart" popup
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.
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 or Create an account to join the conversation.
11 years 10 months ago #180839
by nicolas
Replied by nicolas on topic resize "add to cart" popup
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 ?
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 or Create an account to join the conversation.
Time to create page: 0.207 seconds