News:

Looking for documentation? Take a look on our wiki

Main Menu

please wait while you are redirected to paypal

Started by antonino78, October 25, 2014, 12:29:14 PM

Previous topic - Next topic

antonino78

hello,
I upgraded VirtueMart 2.6.12
Now I no longer see (please wait while you are redirected to paypal) in the thank you page
Someone in my same problem?

John2400

Ok I agree that I don't get "please wait" - but I only have to wait about two seconds. Infact it looks a little faster.


Is it really a Problem or just an opinion of difference?








antonino78

Unfortunately I did not notice the speed difference.
I think this brings the customer to leave the page because there is no reference that leads to paypal.
So I'd like to see the text of pending

GJC Web Design

seems the form should submit as soon as the window is loaded
there is a message but this also doesn't show until the window is loaded which in theory is then immediately submitted
maybe add a delay to the submit?

JFactory::getDocument()->addScriptDeclaration ('

//<![CDATA[
   jQuery(document).ready(function($) {
       jQuery(window).load(function(){
         if(jQuery("#vmPaymentForm")) {
            jQuery("#vmPaymentForm").vm2front("startVmLoading","'.vmText::_('VMPAYMENT_PAYPAL_REDIRECT_MESSAGE', true).'" );
            jQuery("#vmPaymentForm").submit();
         }
      });
   });
//]]>
');
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

antonino78


GJC Web Design

that code is already there (it is what changed for 2.6.12) - file plugins\vmpayment\paypal\paypal\helpers\paypalstd.php ~ line 177
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

antonino78

I understand,
I hope you find a solution for this bug  :'(

jenkinhill

I don't think it is a bug, but maybe just personal preference. Also seems quicker to me also without waiting for the wait page.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

antonino78

As already mentioned above, for me it seems faster.
The wait time without notice may send away customers

GJC Web Design

It isn't a bug - it is just coded that way - you could try and show the
jQuery("#vmPaymentForm").vm2front("startVmLoading","'.vmText::_('VMPAYMENT_PAYPAL_REDIRECT_MESSAGE', true).'" );

immediately after the ready function - see if that shows the message

or just add the text to the returned  html so they aren't looking at a blank page (if this is what happens - haven't tried the new .12 Paypal)
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

maxlatino74

I too have the same problem, to solve it just overwrite the folder plugins / vmpayment / paypal with the previous version   ;-)

alatak

Hello

Please give me the URL of your website. I will check why.
Do you have that option
configuration > template > Activate Css Styles & Javascripts >Using the VirtueMart CSS
checked ?

if you have unchecked that box, please add this css
.vmLoadingDiv {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .8 )
    url('../images/vm-preloader.gif')
    50% 50%
    no-repeat;
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
.vmLoading {
    overflow: hidden;
}

/* Anytime the body has the loading class, our
   modal element will be visible */
.vmLoading .vmLoadingDiv {
    display: block;
}


this will display a preloader image that replaces the "please wait while redirecting"

antonino78

I do not have active Using the VirtueMart CSS
how do I fix it?
VIEW SCREEN

[attachment cleanup by admin]

John2400

I presume it is the second top one on your list.

maxlatino74

hi, i have try to checked "Using the VirtueMart CSS" but "please wait while redirecting"  no work , only solutions for me is overwrite the folder plugins / vmpayment / paypal with the previous version  2.6.10