triggering rokbox instead of squeezebox for notice

  • Posts: 73
  • Thank you received: 1
11 years 1 month ago #126684

I'm running hikashop 1.6 business on joomla 2.5. I'm trying to replace squeezebox with rokbox.
I got the trigger links all set up, but I don't know how to actually trigger them. If i run the following in firebug console it works fine:

$("#hikashop_notice_box_trigger_link").find("a").get(0).click();
However when triggered through ?popup=1 the sbox overlay appears but the popupbox doesn't.

I already added
hikashop_popup_js_render($url)
to the override and replaced two lines with the line above. However the sbox overlay still appears. Where is that event fired? I looked in the JS file in the media folder but I can't find it there.

Help would be greatly appreciated

EDIT:
Somewhat offtopic,

but in the popup the background color is gray. That's because of the template i'm using. It's using the body background color. However I want the entire popup to be white. I can't just change the body color in the CSS, and I can't do "iframe body {}" since that violates the same-origin policy.. Any ideas?

Last edit: 11 years 1 month ago by Ortix.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 1 month ago #126734

Hi,

HikaShop 1.6 does not have the same improvements for the popup than HikaShop 2.2 have.

I don't know how you want to integrate rokbox but for most I know, you would have to touch at the HikaShop core in order to change how the popup are displayed in HikaShop.
With HikaShop 2.0 we externalize the popups in a helper, it allow us to have a single entry for all popup and change how they are made (so can use mootools popup or jquery bootstrap modals).

Squeebox uses the class "modal" in order to find which link it has to "listen" for opening his popups.

It will be difficult to help you on HikaShop 1.6.0, this version has more than one year old and HikaShop changed a lot. So we can know how to do it in HikaShop 2.2 but it won't work with HikaShop 1.6.

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

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

  • Posts: 73
  • Thank you received: 1
11 years 1 month ago #126849

thank you for your answer. We will look into upgrading hikashop in the near future.

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

  • Posts: 9
  • Thank you received: 0
11 years 3 weeks ago #130038

And how does it work in Hika Shop 2.2.2, I want to use rokbox for all popups, so I have the same style of popups on the whole site.

Best regards

Christian

Last edit: 11 years 3 weeks ago by teubernet. Reason: Additional Informations

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 3 weeks ago #130058

Hi,

In HikaShop 2.2.2, we centralized the popups in the helper popup.
So by modifying/overriding one single file it is possible to change (nearly) all popups in HikaShop.

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: 9
  • Thank you received: 0
11 years 3 weeks ago #130062

And which file is it?

best regards

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 weeks ago #130085

Hi,

The file is as Jerome said the helper popup.
"administrator/components/com_hikashop/helpers/popup.php"

Be careful if you edit directly the popup.php file, the changes will be lost when updating.

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

Time to create page: 0.086 seconds
Powered by Kunena Forum