remove mootools modal.js squeezebx,except checkout

  • Posts: 154
  • Thank you received: 4
10 years 7 months ago #176480

thanks! that did the trick!

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

  • Posts: 154
  • Thank you received: 4
10 years 7 months ago #176633

thanks, that did the trick

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

  • Posts: 154
  • Thank you received: 4
10 years 6 months ago #177628

sorry, its me again. now suddenly i get in "step ADRESS" the folowing error when i try selecting the input fields by doubleclick:

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.

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 6 months ago #177669

Hi,

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.

  • Posts: 154
  • Thank you received: 4
10 years 6 months ago #177939

yes, as you can see in prior post of this thread nicolas suggested a few changes in the code.
could this be the reason?

Last edit: 10 years 6 months ago by olivnewton.

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

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 6 months ago #178172

Hi,

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

// custom headings for hikashop steps
How did you add you custom headings ?
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.

  • Posts: 154
  • Thank you received: 4
10 years 6 months ago #178298

it has nothing to do with the custom script for custom heading, all this script does, you can see in the sourcecode, there is not more to it.

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

JHTML::_('behavior.modal');
and in components/com_hikashop/views/product/view.html.php
removed
ob_start();
$cart->getJS($url,false);
$notice_html = ob_get_clean();
$this->assignRef('notice_html',$notice_html);

Last edit: 10 years 6 months ago by olivnewton.

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

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 6 months ago #178342

Hi,

In the product page, the function "hikashopToggleFields" is added by the call of the function jsToggle by the lines

$fieldsClass->jsToggle($itemFields,$element,0);
in the file "components/com_hikashop/views/product/view.html.php".

In the checkout page, the function "hikashopToggleFields" is added by the call of the function jsToggle by the lines
		$fieldsClass->addJS($null,$null,$null);
		$fieldsClass->jsToggle($this->extraFields['user'],$user,0);
		$fieldsClass->jsToggle($this->extraFields['address'],$address,0);
in the file "components/com_hikashop/views/checkout/view.html.php".

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.

  • Posts: 154
  • Thank you received: 4
10 years 6 months ago #178468

thanks for the effort so far!
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.

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 6 months ago #178557

Hi,

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.

  • Posts: 154
  • Thank you received: 4
10 years 6 months ago #178645

sure, there you go

Attachments:

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

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 6 months ago #178721

Hi,

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.

  • Posts: 154
  • Thank you received: 4
10 years 6 months ago #178946

hi jerome,
problem still persists, be careful to enable "persist" in firebug console, and also keep in mind that this only happens the first time adding something in cart. in order to reproduce this afterwards you need to clear your browsercache/cookies...
i attached you a screenshot

Attachments:

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

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 6 months ago #178961

Hi,

I think that

JHTML::_('behavior.modal');
is still call in the HikaShop cart helper.

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

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

  • Posts: 154
  • Thank you received: 4
10 years 6 months ago #179119

alas! that did the trick, thanks a lot, nobody pointed to this before...

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

Time to create page: 0.088 seconds
Powered by Kunena Forum