Checkout looping between Shipment and Payment

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #34802

I see that there is still a javascript error for another piece of code for the same reasons.
Could you do the same change in the file administrator/components/com_hikashop/helpers/cart.php and try again ?

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

  • Posts: 130
  • Thank you received: 2
  • Hikashop Business
12 years 10 months ago #34816

Hm, stil not working, I'm afraid...

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #34834

Now I see again the problem as if you didn't do the modifications in the components/com_hikashop/views/checkout/view.html.php file.
Are you sure that you didn't reverted the modifications there in some way ?

Here is the file with the modifications already applied. Please replace it and try again.

File Attachment:

File Name: view-20120108.zip
File Size:5 KB

Attachments:

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

  • Posts: 130
  • Thank you received: 2
  • Hikashop Business
12 years 10 months ago #34838

I'm pretty sure I did not revert them, but just to be sure I FTP-ed your file to the requested location, still the problem keeps occurring.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #34846

I don't see how that is possible. The source of the page indicates that the modification hasn't been applied.
Could you provide a FTP access so that we can directly check the code ?

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

  • Posts: 130
  • Thank you received: 2
  • Hikashop Business
12 years 10 months ago #34854

Hi Nicholas, just sent you a PM message with the details.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #34874

I don't know why but there is something triming the return lines on your website apparently.
I've changed the lines:
$doc->addScriptDeclaration("<!--\n".$js."\n//-->");

to:
$doc->addScriptDeclaration("\n".$js."\n");

and that has solved the problem.

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

  • Posts: 130
  • Thank you received: 2
  • Hikashop Business
12 years 10 months ago #34903

Perfect, thanks a lot for solving this.

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

  • Posts: 130
  • Thank you received: 2
  • Hikashop Business
12 years 10 months ago #34957

Thanks for the support again, I just posted a nice review on the Joomla extensions website.

Just a final question on this, just to be sure: Will the fix you applied be part of the next release?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #34975

That one won't be as it's not a fix.
Using "<!--\n".$js."\n//-->" is not a problem and in fact the recommended way of adding javascript in joomla in order to have a HTML valid page. If we had that last modification, it wouldn't be HTML valid and we would have complains about that.
Also, that works for everyone else. There is really something on your website messing with the javascript somewhere.

So make sure that you back up these two files on even better, that you redo these changes in the new version of these files if you still have the problem when you update.
The cart.php file should change much in the future. However, the other one will.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum