Javascript error when compare mode is enabled

  • Posts: 14
  • Thank you received: 0
8 years 3 months ago #263693

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- Error-message(debug-mod must be tuned on) -- : Uncaught ReferenceError: $$ is not defined
at HTMLDocument. (list-of-products:185)
at fire (jquery.js:3232)
at Object.fireWith [as resolveWith] (jquery.js:3362)
at Function.ready (jquery.js:3582)
at HTMLDocument.completed (jquery.js:3617)
(anonymous) @ list-of-products:185
fire @ jquery.js:3232
fireWith @ jquery.js:3362
ready @ jquery.js:3582
completed @ jquery.js:3617

Hi,

A javascript error apperas on products listing and categories listing when products compare mode is enabled. when compare mode is disabled no such an error appears.

Uncaught ReferenceError: $$ is not defined
at HTMLDocument.<anonymous> (list-of-products:185)
at fire (jquery.js:3232)
at Object.fireWith [as resolveWith] (jquery.js:3362)
at Function.ready (jquery.js:3582)
at HTMLDocument.completed (jquery.js:3617)
(anonymous) @ list-of-products:185
fire @ jquery.js:3232
fireWith @ jquery.js:3362
ready @ jquery.js:3582
completed @ jquery.js:3617

"list-of-products" is my alias for products listing page.

Could anyone please help me?

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 3 months ago #263701

Hi,

The error is related to the fact that you do not have mootools in your website.
I already submitted improvements for the compare system which would be included in HikaShop 3.0.1.

Before that, you can edit the file "components/com_hikashop/views/product/tmpl/listing.php" and replace the code

	$$('input.hikashop_compare_checkbox').each(function(el){
		el.checked = false;
	});
By
try{
	document.querySelectorAll('input.hikashop_compare_checkbox').forEach(function(el){
		el.checked = false;
	});
}catch(e){}

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

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

  • Posts: 14
  • Thank you received: 0
8 years 3 months ago #263775

Thanks. like your products, your support is also great and admirable.

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
8 years 3 months ago #263776

Hi,

Thanks ! If you want, you can post a comment on the Joomla Extensions Directory for HikaShop:
extensions.joomla.org/extensions/extensi...pping-cart/hikashop/
That would be terrific :)

The following user(s) said Thank You: goleyaas

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

Time to create page: 0.058 seconds
Powered by Kunena Forum