News:

Looking for documentation? Take a look on our wiki

Main Menu

path to css wrong in confirm page

Started by atragene_gabriel, December 03, 2013, 16:46:26 PM

Previous topic - Next topic

atragene_gabriel

Hello,

I'm working on a paiement module and when I load confirm page, some js/css files can't be loaded because path is wrong.



GET http://localhost/templates/beez_20/css/general.css 404 (Not Found) confirm:16
GET http://localhost/media/system/js/mootools-core.js 404 (Not Found) confirm:22
GET http://localhost/media/system/js/core.js 404 (Not Found) confirm:23
GET http://localhost/media/system/js/mootools-more.js 404 (Not Found) confirm:24
GET http://components/com_virtuemart/assets/css/chosen.css 404 (Not Found) confirm:18
Uncaught ReferenceError: Browser is not defined md_stylechanger.js:13
Uncaught ReferenceError: Browser is not defined hide.js:5
GET http://components/com_virtuemart/assets/js/chosen.jquery.min.js 404 (Not Found) confirm:27
Uncaught TypeError: Object [object Object] has no method 'chosen'


Good url should be bye example : http://localhost/myjoomla/templates/beez_20/css/general.css
It happens only for those page : component/virtuemart/cart/confirm?Itemid=0

Thanks for your help


WebStuff

If you have based your plugin on the paypal one then there is a bug which I have reported that affects installations in sub-folders

If you are using a return url then don't use :
substr(JURI::root(false,''),0,-1) . JROUTE::_( 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived..............
This has the affect of resetting the base path of your installation for the session to site root instead of sub-folder.
Instead use:
JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived

alatak

Hello
The correct link is
JURI::root() . JROUTE::_('index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived');


but it has nothing to do with the css path problem imho.

alatak

Hello
QuoteThis has the affect of resetting the base path of your installation for the session to site root instead of sub-folder.

Yes you are rigth
please have a look
http://forum.virtuemart.net/index.php?topic=117405.msg411718#msg411718

I am fixing this problem for the next version.
txs

atragene_gabriel

Hello,

Thank a lot for your answer.

I 'll test it tonight and I 'll be answer your back tomorow.

Gabriel

atragene_gabriel

Hello,

I try on our server.
Updateurl created with your code is OK to run  the javascript on the  confirm page.  :)
However this url doesn't work with the paiement system we use. The system we use need an update url with only one parameter.

* http://testdomaine.com/joomla25/index.php/component/virtuemart/pluginresponse/pluginresponsereceived?on=55fc0111_1
With this Url confirm page doesn't work but it's okay with our paiement system

* http://testdomaine.com/joomla25/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=49d00112_1
With this Url confirm page is working but it's  KO with our paiement system (only one "get" parameter can be used in the url)

Thanks for your help

Gabriel

atragene_gabriel

Hello,

I found a solution. I use simple javascript to submit my form paiement. JQuery isn't used. So that's not a problem if it can't be loaded

Thanks.

This ticket can be closed