it's stopped when redirect to alipay

  • Posts: 7
  • Thank you received: 0
9 years 9 months ago #191540

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.1
-- PHP version -- : 5.3.26
-- Browser(s) name and version -- : firefox. 35.0.1

Dear Sirs,
I have a problem, it's always stop on this page when redirect to alipay, and only after click on the The button below, It will continue to work.
please check herewith attached screenshot of stopped page.
we appreciate to any idea for this problem.
Thank you all!

Attachments:

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

  • Posts: 2143
  • Thank you received: 747
9 years 9 months ago #191553

Hello,

I'm pretty sure it would help if you provided a translation of what the button says, and eventually also the 2 lines above... ;)


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
9 years 9 months ago #191558

Hi,

It's probably a javascript conflict between Mootools and your template's javascript.
Try to remove the code:

$doc = JFactory::getDocument();
			$doc->addScriptDeclaration("do_nothing( function() {document.getElementById('hikashop_alipay_form').submit();});");
from the file plugins/hikashoppayment/alipay/alipay_end.php and add at that code:
<script type="text/javascript">
		<!--
		document.getElementById('hikashop_alipay_form').submit();
		//-->
	</script>
	<!--[if IE]>
	<script type="text/javascript">
			document.getElementById('hikashop_alipay_button').style.display = 'none';
			document.getElementById('hikashop_alipay_button_message').innerHTML = '';
	</script>
	<![endif]-->
at the end of that file.

Last edit: 9 years 9 months ago by nicolas.

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

  • Posts: 7
  • Thank you received: 0
9 years 9 months ago #191632

Thank you for your reply, nicolas and lousyfool. please check attached picture.

after removing the code:

$doc = JFactory::getDocument();
			$doc->addScriptDeclaration("do_nothing( function() {document.getElementById('hikashop_alipay_form').submit();});");
the problem is continue, should i use other code replace it?
looking forward to you reply,
Thank you!

Attachments:

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

  • Posts: 7
  • Thank you received: 0
9 years 9 months ago #191658

Hi, Nicolas,
this problem is resolved, Thank you very much. :)

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

Time to create page: 0.091 seconds
Powered by Kunena Forum