- Posts: 97
- Thank you received: 0
JavaScript error on product page
12 years 1 month ago #170006
by shpuser
JavaScript error on product page was created by shpuser
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.3
-- Browser(s) name and version -- : Firefox 32.0
-- Error-message(debug-mod must be tuned on) -- : TypeError: hkjQuery(...).removeClass(...).removeClass(...).chosen is not a function
hkjQuery( ".tochosen:not(.chzn-done)" ).removeClass('chzn-done').removeClass('to...
If i click in my product page on "add to cart" then i see in firefox this error: prntscr.com/4jk7ci , and in chrome: prntscr.com/4jk7kg , after adding new product to cart my other scripts don't works, please for help...
-- Joomla version -- : 3.3.3
-- Browser(s) name and version -- : Firefox 32.0
-- Error-message(debug-mod must be tuned on) -- : TypeError: hkjQuery(...).removeClass(...).removeClass(...).chosen is not a function
hkjQuery( ".tochosen:not(.chzn-done)" ).removeClass('chzn-done').removeClass('to...
If i click in my product page on "add to cart" then i see in firefox this error: prntscr.com/4jk7ci , and in chrome: prntscr.com/4jk7kg , after adding new product to cart my other scripts don't works, please for help...
Please Log in or Create an account to join the conversation.
12 years 1 month ago #170016
by Xavier
Replied by Xavier on topic JavaScript error on product page
Hi,
Thanks to check the source code of the page (Ctrl + U) and check if jQuery is loaded.
If it is, you have maybe a lightweight version without all the functions.
Thanks to check the source code of the page (Ctrl + U) and check if jQuery is loaded.
If it is, you have maybe a lightweight version without all the functions.
Please Log in or Create an account to join the conversation.
12 years 4 weeks ago #170108
by shpuser
Replied by shpuser on topic JavaScript error on product page
I tried already, but without success, you have also the same problem on demo page:
demo.hikashop.com/index.php?option=com_h...ry_pathway=2&lang=en
, enable console and click on "add to cart", i installed also a hikashop on a test installation and the same... can provide a bugfix for this problem please?
prntscr.com/4jtwv5
Please Log in or Create an account to join the conversation.
12 years 4 weeks ago #170112
by Xavier
Replied by Xavier on topic JavaScript error on product page
Hi,
There was indeed an error, thanks to edit the file "administrator/components/com_hikashop/helpers/cart.php" function "getJS()" replace (two times):
By:
There was indeed an error, thanks to edit the file "administrator/components/com_hikashop/helpers/cart.php" function "getJS()" replace (two times):
Code:
hkjQuery( ".tochosen:not(.chzn-done)" ).removeClass(\'chzn-done\').removeClass(\'tochosen\').chosen();
Code:
if(typeof(hkjQuery().chosen) == "function") {
hkjQuery( ".tochosen:not(.chzn-done)" ).removeClass(\'chzn-done\').removeClass(\'tochosen\').chosen();
}
Please Log in or Create an account to join the conversation.
Time to create page: 0.170 seconds