Popup Window Size

  • Posts: 120
  • Thank you received: 1
11 years 5 months ago #115906

Hi,

I have configured Hikashop to push a popup window when customer presses button "Add to Cart". However, the window itself is too small, therefore a scrolldown bar appears on the right side. Then you need to scroll down to see buttons "Continue Shopping" and "Place an Order".

Please see enclosed screenshot for details.

Is it possible to resize the window?

I see widnow size is controlled by the below piece of code, but cant understand where it comes from: Hikashop or my template?

<div id="sbox-window" role="dialog" aria-hidden="true" class="shadow" style="z-index: 65557; left: 433px; top: 625px; width: 480px; height: 140px;"><div id="sbox-content" style="opacity: 1;" class="sbox-content-iframe"></div><a id="sbox-btn-close" href="#" role="button" aria-controls="sbox-window"></a></div>

Screenshot:

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #116125

Please Log in or Create an account to join the conversation.

  • Posts: 120
  • Thank you received: 1
11 years 4 months ago #116147

Hi Nicolas,

I need to improve my search skills! :)

The provided solution works for me.
However, it is a hack of a core Hikashop file. I will need to keep it in mind every time I upgrade Hikashop. This is not really good. I understand it is not on todo list of Hikashop features?

You can edit the file 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>';

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #116159

Hi there,

You solution looks good even if, as you said, it's not very convenient when updating.
We'll think about adding something in the main configuration to change this.

The following user(s) said Thank You: watashi

Please Log in or Create an account to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum