Hi Virtuemart,
I hope you can help me, on the very last step, as I click confirm order and get redirected to paypal, there is a page on my site which loads incorrectly, no template or css by the looks of things, I dont know why, I have just about managed to get a screen shot, because the page redirects to paypal, and only flashes for 2 or 3 seconds.
I have attached an image, I can pm a link, but dont want a public link for my dev site, have a look at the image, has anyone seen this problem before as your redirected to paypal gateway?
Everything but this very brief redirect is working and looking great, its just this last page of virtuemart on the way to paypal gateway.
Thanks for any help
Tobes
Sorry I forgot to mention:
Joomla 2.5.11
Virtuemart 2.0.20a
I have tested both Virtuemart default theme, and shoplicious theme and same problem with both.
[attachment cleanup by admin]
I can see the problem now, its because my joomla installation is in a subdirectory and for some reason Virtuemart is calling half the urls in the code from the root folder and not the sub directory,
anyone know where I could find the culprit code which is pointing half the urls to the wrong folder.
Thanks
It was case in my practice.
I copied VM assets (with all css/images/js stuff) folder from standard place in VM to another place. And adjusted place of assets in VM configuration.
Such trick could allow for example to have VM js overrides particularly.
Or for example to have only one alone jquery.js for all web site areas. And it doesn't VM area or not. So it was possible to load at proper row in web page jquery.js. And without 3rd part plugins that could control behavior of jquery script.
Hi Max,
Thanks for your help, I tried to move assets but didnt see what to change in configuration?
To be honest, I think the problem is more simple than that, but so far I can not find it, do you know what file deals with javascript:document.checkoutForm.submit();
Because i think somewhere in this file there is a url not defined properly, probably with a / in front of a url pushing everything back to the root folder.
Thanks
Check 3rd tab in VM settings - "General Assets URL"
I believe that VM js scripts are responsible for a lot of things in VM. Something like vmprice.js and Company.
Why you can't find in what is a problem?
Quote from: Tobes on July 25, 2013, 17:00:40 PM
the page ... flashes for 2 or 3 seconds.
You have 2-3 seconds to press Ctrl-U (Firefox) to see page source before page starts to reload.
Page source is a very bold evidence of what is happened with VM assets.
The page giving me these issues is this one: http://www.mywebsite.com/V5/index.php?option=com_virtuemart&view=cart&task=confirm
I dont see how moving the assets will help because the problem with this page when I check the code, is the urls to the template and css are incorrect.
The urls in the code look like this: <link rel="stylesheet" href="/templates/yoo_venture/css/base.css" />
Instead of looking like this which is correct <link rel="stylesheet" href="V5/templates/yoo_venture/css/base.css" />
I would be very happy if you have any ideas Max.
Thanks
It's not VM assets issue as I was thinking. This's a Joomla template issue.
Time to ask for some support from your (lolz yoojoomla i.e.) Joomla template author.
Hi Max, thanks for your reply, but no its not as I have tested it with other templates and still the same issue, its definitely VM payment issue.
I had the other problem with PayPal which was also related to the url and subdirectory, I think this is a similar issue and is related some how, but Im not sure how yet.
Damn, again this subfolder issue at the end.
Do you have problems if you use standard VM payment?
If not, then use the latest version of Paypal plugin. Or latest version of this plugin download from VM SVN.
If problem still exists post here rows from your paypal.php with the "JURI::root" command.
this looks like a php error ending the parsing early
try without template overrides
Hi Max and Pro,
Ive already removed the overrides, and tried different templates, every time I get the same issue, I have a funny feeling its something to do with the paypal.php but I could be wrong.
I would really appreciate any more advise.
Thanks
Quote from: Maxim Pishnyak on July 27, 2013, 16:13:57 PM
Damn, again this subfolder issue at the end.
Do you have problems if you use standard VM payment?
If not, then use the latest version of Paypal plugin. Or latest version of this plugin download from VM SVN.
If problem still exists post here rows from your paypal.php with the "JURI::root" command.
Follow my instructions pls.
Hi Max,
I must apologise I missed that part of your post, thanks for reminding me.
Heres the lines of code you request, starting on line 208:
//"return" => JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . JRequest::getInt('Itemid')),
"return" => substr(JURI::root(false,''),0,-1) . JROUTE::_( 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . JRequest::getInt('Itemid')),
// Keep this line, needed when testing
//"return" => JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component'),
"notify_url" => JROUTE::_ (JURI::root () . '/V5/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component'),
"cancel_return" =>substr(JURI::root(false,''),0,-1). JROUTE::_( 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginUserPaymentCancel&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . JRequest::getInt('Itemid')),
//"undefined_quantity" => "0",
"ipn_test" => $method->debug,
"rm" => '2', // the buyer's browser is redirected to the return URL by using the POST method, and all payment variables are included
"bn" => "VirtueMart_Cart_PPA",
"image_url" => JURI::root() . $vendor->images[0]->file_url,
"no_shipping" => isset($method->no_shipping) ? $method->no_shipping : 0,
"no_note" => "1");
/*
Thank you kindly for your time Max :)
Toby
p.s you can see the line where I added /V5/ to the url which fixed the return path for the IPN, maybe I should implement Alatak's hack she posted here http://forum.virtuemart.net/index.php?topic=101478.msg396870#msg396870
Interesting
Quote from: Maxim Pishnyak on July 27, 2013, 16:13:57 PM
Do you have problems if you use standard VM payment?
Hi Max,
No the standard payment is working fine, I am sent to the confirmation/order page and all css is perfectly intact, so now we know 100% its the paypal.php right.
So Im assuming its something to do with JURI::root
Im only saying this from what you said before and looking up what JURI::root is on google :)
TIA
Could you post here page source of bugged web page? As forum attachment or with the help of code tags pls.
Hi Max,
Im going to pm you the code as I dont want the url to my site public on a forum right now, pm'ing you now.
Thanks
Tobes
Try this
"return" => JROUTE::_ (substr(JURI::root(false,''),0,-1) . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . JRequest::getInt('Itemid')),
or this dirty variant
"return" => JROUTE::_ (JURI::root () . '/V5/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . JRequest::getInt('Itemid')),
still you could copy css and js folders of your joomla template to your web site root folder
Hi Max,
Neither of those worked for me.
In the end I have duplicated my template folder into my root folder, this is not what I wanted to do, because Virtumart links should be relative and its a but messy to have to duplicate a template, but its working, so I suppose thats better than it not working :)
Thanks for all your help Max, I really appreciate it.
Heh, you're welcome, Tobes.
We need some civilized workaround for this issue in paypal plugin.
Hello
Quotep.s you can see the line where I added /V5/ to the url which fixed the return path for the IPN, maybe I should implement Alatak's hack she posted here http://forum.virtuemart.net/index.php?topic=101478.msg396870#msg396870
Modify message
Yes you should. It is not a hack. It was a bug :)
Hello Tobes,
Strange indeed.
Can you please PM me, i will have a look.
Hi there. Did this issue get resolved? I am facing the same exact issue and can't find a solution.
I hope to hear back from you soon.
Thanks.
Quote from: romatvirtue on August 23, 2013, 04:00:36 AM
Hi there. Did this issue get resolved? I am facing the same exact issue and can't find a solution.
I hope to hear back from you soon.
Thanks.
my issue was the website was not stored in the root directory and so on checkout the payment gateway was looking for files that were not in the root folder, if you stop the automatic redirect page during checkout you will see the page that is messed up (blank, no css) you can then view source, check the urls in the code and you will see some pointing to folders in your root directory that wont be there if your default joomla site is outside the root folder (for example www.mysite.com/shop/) my solution was to copy the folders it was trying to link to from my joomla install folder and copied them in to the root folder, then on checkout as you are redirected to paypal you will now see the correct redirect page on the way out, its a messy fix but it worked for me.
I have the same problem. The 'cart/confirm' page only partially opens ( see cart-confirm.jpg ). Anybody have any ideas. The header files loading are in cart-confirm-head.jpg. I noticed some inline styles loading last.
To see page html go to: http://hewlynnhomeandgardencenter.com/cart-confirm.txt
http://hewlynnhomeandgardencenter.com/hewlynn-online-store
Thanks
j 2.5.16
v 2.0.26d
php 5.3.24
[attachment cleanup by admin]
Hello Everybody on this forum!
Same problem here too with PayPal plugin using the following setup:
Joomla! 2.5.22 Stable
VirtueMart 2.6.6 (of course with AIO)
Apache version: 2.2.26
PHP version: 5.3.28
Standard payment works fine with no problems.
PayPal plugin generally works (data fetching and so on), but on the redirecting page, the template falls to pieces.
The template is my own work, but I have the same errors with Joomla's default templates: atomic, beez_20, beez5.
Problem is the same with all PayPal products, but I would like to set up the PayPal Express Checkout
I have tried the ways mentioned before but in my case nothing solved the problems...
It looks like we found a big bug :o
PS
my site look very similar what doak-vm posted before this post!
Some css elements are loading but most are missing...
Quote from: retizotyo on July 16, 2014, 14:37:28 PM
Hello Everybody on this forum!
Same problem here too with PayPal plugin using the following setup:
Joomla! 2.5.22 Stable
VirtueMart 2.6.6 (of course with AIO)
Apache version: 2.2.26
PHP version: 5.3.28
Standard payment works fine with no problems.
PayPal plugin generally works (data fetching and so on), but on the redirecting page, the template falls to pieces.
The template is my own work, but I have the same errors with Joomla's default templates: atomic, beez_20, beez5.
Problem is the same with all PayPal products, but I would like to set up the PayPal Express Checkout
I have tried the ways mentioned before but in my case nothing solved the problems...
It looks like we found a big bug :o
PS
my site look very similar what doak-vm posted before this post!
Some css elements are loading but most are missing...
Is your website in a subfolder ?
I realized the problem first on my local machine (WAMP) - in this case, the website is/was in the root folder.
Then I uploaded it to a live server, in this case,the site is/was in a subfolder.
I guess it's not different, but I tested my site in Sandbox mode...
Any suggestions?
Still having this failure...
Can somebody help?
I checked the URLs of the css files I want to load. The URLs are fine, but it seems that somthing is blocking them...
I tried also enabling/disabling the jQuery loading in the VM config, but nothing happens.
BIG BUG :-\