- Posts: 154
- Thank you received: 4
remove mootools modal.js squeezebx,except checkout
- olivnewton
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- olivnewton
-
Topic Author
- Offline
- Posts: 154
- Thank you received: 4
Please Log in or Create an account to join the conversation.
- olivnewton
-
Topic Author
- Offline
- Posts: 154
- Thank you received: 4
ReferenceError: hikashopToggleFields is not defined
and after each step, before loading the new step i get:
ReferenceError: hikashopCheckMethods is not defined
does this have to do with those changes?
Please Log in or Create an account to join the conversation.
hikashopToggleFields and hikashopCheckMethods are javascript function added by HikaShop in the page header.
But I don't see any of this javascript in the page ; I'm afraid that you have a plugin (or you modified HikaShop ?) which removes the javascript from the page header.
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.
- olivnewton
-
Topic Author
- Offline
- Posts: 154
- Thank you received: 4
could this be the reason?
Please Log in or Create an account to join the conversation.
I checked the previous messages in this thread and I don't see a specific content which could explain the problem.
But I see in your page that you got
Depending how you added it, it could explained with the default headings are not added by 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.
- olivnewton
-
Topic Author
- Offline
- Posts: 154
- Thank you received: 4
BUT: i just found out that one of the last changes we did was adding the following line to index.php in order to remove the "SqueezeBox is not defined" JSerror:
$document =& JFactory::getDocument();
$document->_script = preg_replace('hasTip', '', $document->_script);
...after uncommenting it the other errors do not appear anymore
you can reproduce the squeezebox error this way all the time:
the funny thing about this "SqueezeBox is not defined"-error is, that it only appears in checkout step-1 when adding a product to the cart and immediately redirecting to cart. after this first time it never appears again if you proceed to after entering your address details. if you dont do this and do not click to next step (in our case shipping method), then by going back to CART, the SB-error appears again. if you proceed to next step once, then you have to clean the browser cookies in order for the error to appear again...
so there must be another bit / part we have to uncomment somewhere, or there is maybe a bug somewhere?
just to sum-up, so far we changed:
in components/com_hikashop/views/checkout/view.html.php
removed
removed
Please Log in or Create an account to join the conversation.
In the product page, the function "hikashopToggleFields" is added by the call of the function jsToggle by the lines
In the checkout page, the function "hikashopToggleFields" is added by the call of the function jsToggle by the lines
The function "hikashopCheckMethods" is added directly by the view "components/com_hikashop/views/checkout/view.html.php", in the function "step".
So if the javascript is not present in the final page and the code is still present in your HikaShop code ; it means that you have some kind of system plugin (or maybe a feature of the template) which remove 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.
Please Log in or Create an account to join the conversation.
- olivnewton
-
Topic Author
- Offline
- Posts: 154
- Thank you received: 4
we are not using any system plugin or template settings that remove any JS...
but, after carefully reading what you wrote, and if i understand this correct, then "hikashopToggleFields" is needed for SquezeBox and because it is missing, we get the SquezeBox error. is this correct?
those lines are definitally present in the file "components/com_hikashop/views/checkout/view.html.php":
$fieldsClass->addJS($null,$null,$null);
$fieldsClass->jsToggle($this->extraFields,$user,0);
$fieldsClass->jsToggle($this->extraFields,$address,0);
...but the function login() in which they are present does not get called after adding a product to cart and redirecting to cart... maybe because we are using the guest login option???
were is login() function called from?
Please Log in or Create an account to join the conversation.
No, the fields does not require the SqueezeBox.
Would it be possible to have a screenshot of your Checkout workflow ?
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.
- olivnewton
-
Topic Author
- Offline
- Posts: 154
- Thank you received: 4
Please Log in or Create an account to join the conversation.
I am not able to reproduce your problem in my local website and I re-made a test in yours and it's working find.
Did you change something ?
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.
- olivnewton
-
Topic Author
- Offline
- Posts: 154
- Thank you received: 4
Please Log in or Create an account to join the conversation.
I think that
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.
- olivnewton
-
Topic Author
- Offline
- Posts: 154
- Thank you received: 4
Please Log in or Create an account to join the conversation.