- Posts: 6
- Thank you received: 0
PAYPAL redirect
- alphascorpii
-
Topic Author
- Offline
Less
More
14 years 10 months ago #29872
by alphascorpii
PAYPAL redirect was created by alphascorpii
Hi at all,
So... my problem is as follows.
I set up as a payment method Paypal.
I configured the module by entering the email address in the required field.
The steps of e-commerce to work regularly until last, where I must confirm what type of paypal as payment for the purchase.
I click next and the page that appears as text "Please wait to be redirected to the PayPal website.
Should you not be redirected automatically after 10 seconds, click the button below "
My problem is that the page is never redirected automatically. To go to complete the payment on paypal you must always click on the button.
How can I fix so that the redirect page on paypal or automatic?
Thank you
So... my problem is as follows.
I set up as a payment method Paypal.
I configured the module by entering the email address in the required field.
The steps of e-commerce to work regularly until last, where I must confirm what type of paypal as payment for the purchase.
I click next and the page that appears as text "Please wait to be redirected to the PayPal website.
Should you not be redirected automatically after 10 seconds, click the button below "
My problem is that the page is never redirected automatically. To go to complete the payment on paypal you must always click on the button.
How can I fix so that the redirect page on paypal or automatic?
Thank you
Please Log in or Create an account to join the conversation.
14 years 10 months ago #29879
by nicolas
Replied by nicolas on topic Re: PAYPAL redirect
Hi,
That means that you have a javascript error on your pages. You can see the error if you open your browser's javascript error console while on that page.
Having a look at your shop would help too.
That means that you have a javascript error on your pages. You can see the error if you open your browser's javascript error console while on that page.
Having a look at your shop would help too.
Please Log in or Create an account to join the conversation.
- alphascorpii
-
Topic Author
- Offline
Less
More
- Posts: 6
- Thank you received: 0
14 years 10 months ago #29918
by alphascorpii
Replied by alphascorpii on topic Re: PAYPAL redirect
Please Log in or Create an account to join the conversation.
- alphascorpii
-
Topic Author
- Offline
Less
More
- Posts: 6
- Thank you received: 0
14 years 10 months ago #29919
by alphascorpii
Replied by alphascorpii on topic Re: PAYPAL redirect
to check the steps, select SELLERIA and SELLE AMERICANE after
www.worldhorses.it/index.php?option=com_...americane&Itemid=110
www.worldhorses.it/index.php?option=com_...americane&Itemid=110
Please Log in or Create an account to join the conversation.
14 years 10 months ago #29935
by nicolas
Replied by nicolas on topic Re: PAYPAL redirect
Could you try to change the code:
$doc =& JFactory::getDocument();
$doc->addScriptDeclaration("window.addEvent('domready', function() {document.getElementById('hikashop_paypal_form').submit();});");
JRequest::setVar('noform',1);
?>
</form>
to:
JRequest::setVar('noform',1); ?>
</form>
<script type="text/javascript">
document.getElementById('hikashop_paypal_form').submit();
</script>
That should avoid the problem (apparently an incompatibility on your website between mootools domready event and jquery).
$doc =& JFactory::getDocument();
$doc->addScriptDeclaration("window.addEvent('domready', function() {document.getElementById('hikashop_paypal_form').submit();});");
JRequest::setVar('noform',1);
?>
</form>
to:
JRequest::setVar('noform',1); ?>
</form>
<script type="text/javascript">
document.getElementById('hikashop_paypal_form').submit();
</script>
That should avoid the problem (apparently an incompatibility on your website between mootools domready event and jquery).
Please Log in or Create an account to join the conversation.
- alphascorpii
-
Topic Author
- Offline
Less
More
- Posts: 6
- Thank you received: 0
14 years 10 months ago - 14 years 10 months ago #29938
by alphascorpii
Replied by alphascorpii on topic Re: PAYPAL redirect
fantastic. it works!!!
Thank you!
Thank you!
Last edit: 14 years 10 months ago by alphascorpii.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 78
- Thank you received: 1
14 years 2 months ago #57183
by adeptdesigns
Replied by adeptdesigns on topic Re: PAYPAL redirect
Which file requires this edit?
Please Log in or Create an account to join the conversation.
14 years 2 months ago #57262
by nicolas
Replied by nicolas on topic Re: PAYPAL redirect
It's the file plugins/hikashoppayment/paypal/paypal_end.php
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 78
- Thank you received: 1
14 years 2 months ago #57386
by adeptdesigns
Replied by adeptdesigns on topic Re: PAYPAL redirect
Pardon the confusion, my file doesn't have the described code... Mine is:
Code:
<?php
/**
* @package HikaShop for Joomla!
* @version 1.5.8
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<div class="hikashop_paypal_end" id="hikashop_paypal_end">
<span id="hikashop_paypal_end_message" class="hikashop_paypal_end_message">
<?php echo JText::sprintf('PLEASE_WAIT_BEFORE_REDIRECTION_TO_X',$method->payment_name).'<br/>'. JText::_('CLICK_ON_BUTTON_IF_NOT_REDIRECTED');?>
</span>
<span id="hikashop_paypal_end_spinner" class="hikashop_paypal_end_spinner hikashop_checkout_end_spinner">
</span>
<br/>
<form id="hikashop_paypal_form" name="hikashop_paypal_form" action="<?php echo $method->payment_params->url;?>" method="post">
<div id="hikashop_paypal_end_image" class="hikashop_paypal_end_image">
<input id="hikashop_paypal_button" type="submit" value="<?php echo JText::_('PAY_NOW');?>" name="" alt="<?php echo JText::_('PAY_NOW');?>" />
</div>
<?php
foreach( $vars as $name => $value ) {
echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars((string)$value).'" />';
}
JRequest::setVar('noform',1); ?>
</form>
<script type="text/javascript">
document.getElementById('hikashop_paypal_form').submit();
</script>
</div>
Please Log in or Create an account to join the conversation.
14 years 2 months ago #57430
by nicolas
Replied by nicolas on topic Re: PAYPAL redirect
Yes. That modification was added several months ago to HikaShop.
You don't have to do it anymore.
Note that in another thread, in order to solve another problem, I told you to do the reverse modification of this thread. So you need to put it back to as it was before.
You don't have to do it anymore.
Note that in another thread, in order to solve another problem, I told you to do the reverse modification of this thread. So you need to put it back to as it was before.
Please Log in or Create an account to join the conversation.
Time to create page: 0.220 seconds