Customer does not get forwarded to Paypal after confirm

Started by Peter Pillen, October 31, 2014, 13:22:00 PM

Previous topic - Next topic

Peter Pillen

#15
check the folder components/com_virtuemart/assets/js  and look if the date of the vmsite.js corresponds to your date of upgrading. Look if you have a compressed vmsite.js.gz from an old date and remove it. DO NOT REMOVE vmsite.js itself. Then also refresh your browsercache to be sure.

From alatak

actually the other (from Orthotes) problem is the following: if you have already customers that browsed your page, they still get the old version

to force the browser to load the new version, you have to change here
administrator/components/com_virtuemart/version.php
static $REVISION = 'Revision: 8515';
put
static $REVISION = 'Revision: 8516';
that should solve the issue

alatak

hello

Sorry Peter :) there was a misunderstanding.

Quoteto force the browser to load the new version, you have to change here
administrator/components/com_virtuemart/version.php
static $REVISION = 'Revision: 8515';
put
static $REVISION = 'Revision: 8516';
that should solve the issue
This is for you.

I am looking now at orthotes website

alatak

Hello

orthotes: Please try this
replace

jQuery(document).ready(function() {
    jQuery(window).load(function(){
if(jQuery("#vmPaymentForm")) {
jQuery("#vmPaymentForm").vm2front("startVmLoading","Si prega di attendere mentre si viene reindirizzati a PayPal" );
jQuery("#vmPaymentForm").submit();
}
});
});

by

jQuery(window).load(function(){
            if(jQuery('#vmPaymentForm')) {
                jQuery('#vmPaymentForm').submit();
            }
        });

orthotes


GJC Web Design

plugins\vmpayment\paypal\paypal\helpers\paypalstd.php  around line 179
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

orthotes

Ok the code is here: plugins\vmpayment\paypal\paypal\helpers\paypalstd.php

I've tried your solution and now the paypal page is loaded (and the button "Please wait..." disappeared). So, it seems to work and thank you for your help and patience.
However I test the site in the next days and report you if something goes wrong.

I've read this post too, where the same problem is discussed: http://forum.virtuemart.net/index.php?topic=126418.0 . According to GJC this is not a bug but I think this is exactly what a bug is meant to do.

All my best!

alatak

Hello

Quote(and the button "Please wait..." disappeared).
yes i forgot to ask you to add the submit button also.

Please replace
if ($this->_method->debug ) {

$html .= '<div style="background-color:red;color:white;padding:10px;">
<input type="submit"  value="The method is in debug mode. Click here to be redirected to PayPal" />
</div>';
$this->debugLog($post_variables, 'PayPal request:', 'debug');

}


with
if ($this->_method->debug ) {

$html .= '<div style="background-color:red;color:white;padding:10px;">
<input type="submit"  value="The method is in debug mode. Click here to be redirected to PayPal" />
</div>';
$this->debugLog($post_variables, 'PayPal request:', 'debug');

} else {
            $html .= '<input type="submit"  value="' . vmText::_('VMPAYMENT_PAYPAL_REDIRECT_MESSAGE') . '" />';

        }


orthotes

Dear alatak,

it works (but also the file taken from the old release worked).
I hope in future releases the job you've made here could be taken into consideration.
(However I've noticed the not-working plugin [at least for me] comes with the upgrading of aio component, that also uploads a quantity of plugins devoted to different payment methods).

Thanks for your help!

alatak

Hello

Please try the file i have provided here http://forum.virtuemart.net/index.php?topic=126418.msg433853#msg433853

I have tried the fix on orthotes website: http://www.orthotes.com/store/
but it will be great to test with the php version of the file.

orthotes

Dear alatak,

I've tried the fix prepared by you. Actually now it works only when the button ("Wait while redirecting... etc.") is pushed but, if not, there isn't any automatic forwarding to paypal page.
Please, let me ask a question: is this an issue that only afflicts my site? And if yes, why? Are not the files the same for everyone who upgrades VM?

Thanks!

alatak

Hello

Quotethere isn't any automatic forwarding to paypal page.
are you using the file i provided here http://www.orthotes.com/store/ ?

orthotes

Yes, I've used them. But since the issue wasn't resolved I've restored those of the old VM version, which correctly work.


alatak

Hello
I solved the issue using your website. I am surprise it does not work.

orthotes

Dear alatak,

I'm going to write you a private pm with access credentials.


alatak

Hello
Thank you very much. I used your test site to fix the problem.
Attached is the file that we are going to release. If someone could test it, that will be great.
Thank you

[attachment cleanup by admin]