checkout popup, there is a square icon

  • Posts: 64
  • Thank you received: 4
11 years 9 months ago #120899

-- url of the page with the problem -- : test.ertmania.dk
-- HikaShop version -- : 2.2.1x
-- Joomla version -- : 3.1x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message




In the continue shopping or checkout popup, there is a square icon. What is it and how do I edit it?


ertmania.dk - Elektronik-produkter - gaver til børn
Attachments:

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 9 months ago #120966

Hi,

HikaShop uses the default Joomla messaging style for this message.
It's like when you have a success or an error message.

You have to edit your template if you want to customize it.

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: ertmania

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

  • Posts: 4
  • Thank you received: 0
11 years 9 months ago #122783

Hello,

Anyone know how to change the width and height of the box?

I'm a little newbie with that and i can't identify which file modify.

Thanks,

Last edit: 11 years 9 months ago by Alvarovale.

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

  • Posts: 2334
  • Thank you received: 403
11 years 9 months ago #122822

Hi there,

You should take a look at our documentation: www.hikashop.com/support/2013-08-08-00-1...ize-the-display.html
It's giving some keys to customize the display so you should be able to change the size of the popup ;).
The interesting css property for you in this case is the width and the height of the popup.

Last edit: 11 years 9 months ago by Eliot.

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

  • Posts: 4
  • Thank you received: 0
11 years 9 months ago #122925

Hi Eliot, thanks for your fast reply.

I've been looking at the documentation and I searched through the CSS and can not find where to change the dimensions of the box.

The code:

<div id="sbox-window" role="dialog" aria-hidden="false" class="shadow" style="z-index: 65557; left: 470px; top: 117px; width: 480px; height: 140px;">
<div id="sbox-content" class="sbox-content-iframe" style="opacity: 1;">
<iframe src="/tienda-hika/checkout/notice/tmpl-component" frameborder="0" width="480" height="140"/>
</div>


"sbox-window" is not in the CSS and Iframe also has the dimensions specified.

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 9 months ago #122986

Hi,

You can do it by overriding the "hikashop_popup_render" function.
www.hikashop.com/support/documentation/6...tation.html#override

Like the other function override, this "hikashop_popup_render" return the code for the notice popup.
By default his code is:

function hikashop_popup_render() {
	return '<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>'.
		'<a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_wishlist_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice&cart_type=wishlist'.$url_itemid,true).'"></a>'.
		'</div>';
}
In this code you will find the size of this popup.
It is a system that we want to improve in the future but for the moment, you have to use the same technique than the other overrides explained in the developer documentation.

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.

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

  • Posts: 73
  • Thank you received: 2
11 years 9 months ago #123912

Hi, Can't find the file you are referring to to add this override on your documentation page. Would yo mind providing the location and file name to add this override.

Thanks

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

  • Posts: 4
  • Thank you received: 0
11 years 9 months ago #124184

I have done several tests and i haven't been able to achieve this.

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

  • Posts: 64
  • Thank you received: 4
11 years 9 months ago #124205

Me too. I would like the box to be smaller, you can't see both ends at once, especially on a mobile phone. :(


ertmania.dk - Elektronik-produkter - gaver til børn

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
11 years 9 months ago #124208

You need to create the file templates/YOUR_TEMPLATE/html/hikashop_button.php and add the PHP code that Jerome gave you in it.

The following user(s) said Thank You: Alvarovale

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

  • Posts: 4
  • Thank you received: 0
11 years 8 months ago #124337

It worked for me, thank you..!

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

  • Posts: 73
  • Thank you received: 2
11 years 8 months ago #124414

I believe this all stems from the template being used and not Hikashop. I use Artisteer.

This was my solution:

1. remove component.php from your template folder
2. added this to frontend css file:
#system-message-container, #hikashop_notice_box_content {width: 450px;overflow:hidden;}

My scroll bars disappeared as well as the bullet icon.

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

  • Posts: 64
  • Thank you received: 4
11 years 8 months ago #124430

My pop up message disappears, when using the hikashop_button.php.

When I insert the code in wordpad hte formatting is removed when saved. Does that mean anything?


ertmania.dk - Elektronik-produkter - gaver til børn

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 8 months ago #124486

Hi,

Please use an editor which will be more appropriate for editing PHP files.
Like "Notepad++" for example (but there are a lot of different editors).

If your message disappears with your hikashop_button.php, I think that your file is empty or does not contains the right data.

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.

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

  • Posts: 64
  • Thank you received: 4
11 years 8 months ago #124623

I used Notepadd++ to create a file named hikashop_button.php
The code:

return '<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>'.
'<a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_wishlist_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice&cart_type=wishlist'.$url_itemid,true).'"></a>'.
'</div>';
}
I uploaded the file to the template I use/html and the popup message is gone and this is shown: function hikashop_popup_render() {
function hikashop_popup_render() { return ''; }

:unsure:


ertmania.dk - Elektronik-produkter - gaver til børn

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
11 years 8 months ago #124628

Did you add the <?php openning tag at the beginning of the file before the php code ? Otherwise, the PHP code won't be interpreted by the PHP engine and the code will display as text on the page instead of being executed.

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

  • Posts: 64
  • Thank you received: 4
11 years 8 months ago #124689

Yes, that helped.
But, now the popup box just show a part of the message container?


ertmania.dk - Elektronik-produkter - gaver til børn

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
11 years 8 months ago #124725

I'm not sure what you mean. Could you do a screenshot ?

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

Time to create page: 0.118 seconds
Powered by Kunena Forum