SigPlus failing after HikaShop update

  • Posts: 39
  • Thank you received: 1
11 years 2 months ago #154910

-- url of the page with the problem -- : www.destroyallguitars.com/DAG-35/new-arr...es-gtm6-tobaccoburst
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.0.3
-- PHP version -- : 5.3.24
-- SigPlus version -- 1.4.2.17 (current)
Just updated HikaShop from version 2.1.1 to 2.3.0 and SigPlus, which we have always used successfully to display product photos, is now failing in our product listings. SigPlus is able to generate the thumbnails properly but the lightbox effect for the product photos (scroll to bottom of page - under 'photos') no longer works. An intensive exploration into SigPlus settings and possible javascript conflicts has yielded no results. We updated SigPlus before updating Hikashop and had confirmed that everything was working so the only change was the HikaShop update. Any ideas about how to repair this?

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

  • Posts: 26261
  • Thank you received: 4042
  • MODERATOR
11 years 2 months ago #154935

Hi,

Which HikaShop version number are you using before the update ?
It will be difficult to understand something without this precious information.

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: 39
  • Thank you received: 1
11 years 2 months ago #155005

Hi - I stated that in the first sentence of my original post. We were using HikaShop version 2.1.1 before the update.

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

  • Posts: 26261
  • Thank you received: 4042
  • MODERATOR
11 years 2 months ago #155010

Hi,

Sorry, I missed it.

In HikaShop 2.2.2 we added a new way to display images in the product page.

The product page images display has been improved to use a new display method

This new way to display the images comes with a new popup system for the images, it is why HikaShop is now compatible with Shadowbox (there is a new option in the HikaShop backend).
So the way that images are display is now different and it is possible that SigPlus does not handle the images in that new mode.

I do not know SigPlus and I do not know how it works.
But is it possible to re-activate the old mode in the product page, by editing the view "product | show_block_img", you can use the old mode which will be more compatible with SigPlus in your case.

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: 39
  • Thank you received: 1
11 years 2 months ago #155044

Thank you.

First, can you let me know HOW to re-activate the old mode in the product page? I have scanned the view "product | show_block_img" and do not see how to accomplish this. I tried pasting the code from the relevant view from HikaShop version 2.1.1 into the new one and this did not correct the problem so I'm not sure this is the right approach.

Second, SigPlus is a plug in that creates thumbnails from a folder of photos and displays them full-size in lightbox format. It is activated simply by using a shortcode in HikaShop's description field. After updating HikaShop the SigPlus lightbox effect no longer worked so I am assuming something in the new version of HikaShop is now blocking the SigPlus lightbox effect. I suspect some sort of javascript conflict, but I can't locate the issue in this instance (SignPlus should be using jquery and jquery IS being loaded).

I understand you added the new way of displaying photos in HikaShop version 2.2.2 but to convert our site to use this would be a monumental job considering that there are close to 1000 product pages. This is just to say we really need SigPlus to work and be able to stay current with new versions of HikaShop.

EXAMPLE ONE: Here is an example page from our LIVE site, running version 2.1.1 of HikaShop: www.destroyallguitars.com/models/item/54.../category_pathway-70

EXAMPLE TWO: And here is that same page on the TEST site, running the latest version of HikaShop: www.destroyallguitars.com/DAG-35/models/.../category_pathway-70

If you scroll down to the photos section and click on a photo you will see the lightbox effect work in example one and not work in example two (it instead opens a new page for the photo).

Thank you for any help you can offer through considering this issue further.

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

  • Posts: 39
  • Thank you received: 1
11 years 2 months ago #155066

I have now explored this further. Firebug is showing a number of jQuery not defined errors. Looks like jQuery, which is necessary to SigPlus is loading AFTER the various SigPlus scripts whereas before the HikaShop update this was not the case:

Before HikaShop 2.3.0:
<script src="/media/com_hikashop/js/hikashop.js?v=211" type="text/javascript"></script>
<script src="/media/jui/js/jquery.min.js" type="text/javascript"></script>
<script src="/media/jui/js/jquery-noconflict.js" type="text/javascript"></script>
<script src="/media/jui/js/chosen.jquery.min.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/media/system/js/modal.js" type="text/javascript"></script>
<script src="/plugins/content/sigplus/js/jquery.easing.min.js" type="text/javascript"></script>
<script src="/plugins/content/sigplus/engines/sexylightbox/js/sexylightbox.min.js" type="text/javascript"></script>
<script src="/media/jui/js/bootstrap.min.js" type="text/javascript"></script>

After HikaShop 2.3.0:
<script src="/DAG-35/media/com_hikashop/js/hikashop.js?v=230" type="text/javascript"></script>
<script src="/DAG-35/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/DAG-35/media/system/js/core.js" type="text/javascript"></script>
<script src="/DAG-35/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/DAG-35/media/system/js/modal.js" type="text/javascript"></script>
<script src="/DAG-35/plugins/content/sigplus/js/jquery.easing.min.js" type="text/javascript"></script>
<script src="/DAG-35/plugins/content/sigplus/engines/sexylightbox/js/sexylightbox.min.js" type="text/javascript"></script>
<script src="/DAG-35/plugins/content/sigplus/engines/boxplus/popup/js/boxplus.min.js" type="text/javascript"></script>
<script src="/DAG-35/plugins/content/sigplus/engines/boxplus/lang/boxplus.lang.min.js" type="text/javascript"></script>
<script src="/DAG-35/media/jui/js/jquery.min.js" type="text/javascript"></script>
<script src="/DAG-35/media/jui/js/jquery-noconflict.js" type="text/javascript"></script>
<script src="/DAG-35/media/jui/js/bootstrap.min.js" type="text/javascript"></script>

The above snippets are from the same page of two different versions of the site. The only difference in the two versions of the site is one is running HikaShop 2.1.1 and the other is running HikaShop 2.3.0

How do I change the order of loading for these scripts?

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

  • Posts: 26261
  • Thank you received: 4042
  • MODERATOR
11 years 2 months ago #155069

Hi,

It is just speculations but regarding the calls, we can suppose that something does not require jQuery anymore so it does not include it.
We have to suppose that it is HikaShop because you said it is the single elements which changed but the problem is that HikaShop never include the jquery of Joomla, it has his own jquery lib.
Well..

The other problem I see is that, sigplus include jquery.easing without including jquery before.
To load jquery before, you have to make the inclusion of jquery before sigplus made his inclusion.
1 - in sigplus directly
2 - in HikaShop / an HikaShop view
For Joomla 3 :

JHtml::_('jquery.framework');

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: 39
  • Thank you received: 1
11 years 2 months ago #155179

I'm sorry - it isn't clear to me what you are suggesting I do. Here is a statement by the author of SigPlus:

"SigPlus uses the standard mechanism in Joomla 3.x to request jQuery to be pulled in by core Joomla. Under regular circumstances, this should always work. It appears that something is interfering with this process, and puts the jQuery inclusion last. Many extensions may pull in their own versions of jQuery or shuffle the script inclusion order, which will lead to the symptoms you experience."

Clearly, the load order of the calls is shuffled after the update to HikaShop 2.3.0. Is there a way to fix this in HikaShop?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #156589

Hi,

We don't do anything with jQuery ;)
We have our own library, and don't touch the order of the jQuery calls.

So it's not related on HikaShop. You have maybe another plugin which is creating this issue.
What can be done is installing jQuery easy, that could potentially solve a conflict.

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

  • Posts: 2143
  • Thank you received: 747
11 years 2 months ago #156664

arinehart,

Changing the ordering of plugin scripts loading is a basic Joomla operation:

Go to -> Extensions -> Plugin Manager, click on the plugin in question, e.g. SigPlus.
On the right side, below "Status" and "Access", you find "Ordering". Move the plugin to an earlier or later point, just as you see fit, then save and try.

If it doesn't improve anything, you still have the option of disabling plugins one by one and try each time to find the culprit.
Also, many plugins - the smarter ones - allow to disable 'only' their loading of jQuery, e.g. to prevent from such and similar conflicts.

And yes, there is the valid option of jQuery Easy, though IMHO that should come last as you probably want to know what the cause is. It's coming in handy when you figure it's plugins none of which you want to live without, and neither can be easily convinced to not load the conflicting script.

Not wanting to point at anyone, but watch out with some modal aka lightbox plugins. They sometimes use fairly 'dominant' scripts. I've just been through some hassle with a very well known and established one after they included the latest Colorbox script, even though it allowed disabling loading jQuery. Downgrading to a previous version helped.

Good luck.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: Xavier

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

  • Posts: 39
  • Thank you received: 1
11 years 2 months ago #156808

Thanks for the responses! Unfortunately, the HikaShop folks have not been too helpful on this, though that IS understandable.I repeated the process of updating all plugins on a test site, made sure everything was working fine, then updated HikaShop last and this produced the problem again (script load order gets shuffled and SigPlus fails). Changing plugin ordering had no effect.

It turns out that with the new version of HikaShop, SigPlus needs to have its Ajax loading enabled whereas with the older version of HikaShop it did not. I suppose I would have found the fix sooner if SigPlus had labeled their jQuery loading setting as "jQuery" rather than as "Ajax." (Duh, on my part.)

Thanks to the HikaShop folks for at least trying to suggest a few things. For folks who are running current versions of HikaShop and SigPlus - make sure SigPlus has its load Ajax setting enabled!

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

Time to create page: 0.105 seconds
Powered by Kunena Forum