Suspended
- Join Date:
- Sep 2008
- Posts:
- 608
- Plugin Contributions:
- 3
WorldPay Module version 2.0 - Support thread
so to summarize, you didn't click "remove" and then "install". :clap:
Views: 215,936
Suspended
so to summarize, you didn't click "remove" and then "install". :clap:
Zen Follower
philip_clarke:
so to summarize, you didn't click "remove" and then "install". :clap:
Jumps out of window
Cripped on pavement 14 floors down - "Yeah that worked."
New Zenner
Uploaded the new 2.10 module.
Payments now work where they didn't before.
The only thing is that the module still says 2.09 in the zen cart back-end
Thanks!!!!!!!!!!!!!!!!!!!!
Zen Follower
I can't thank you enough Philip, you've turned what 1 year ago would have been a 2 day task into 1 and a half hours today!
I'm 5% closer to changing my avatar!
Suspended
oops I had a bit of a rush on to change those URL's because of the domain name update and was more concerned with the whole IE8 putting your client's off on August 18th when WorldPay will make the changes. I shall release a version 2.11 soely to change the version number later.
Philip.
Suspended
I'll take your avatar and double it then. I'm still at the "fuming because they won't give me a developer account stage", most of this programming is done with guesswork since I have absolutely no access whatsoever. Especially that work inspire by Khalil that added the possibility of selecting a method of payment from a drop down or radio buttons, so saving your customers one extra click over at worldpay.
I'd also like Dr Byte or whomever to submit the whole zen cart shopping cart with module to worldpay so that it appeared on that list of shopping carts, which I requested quite some time ago since only a team member can do it.
Philip.
New Zenner
Hello Philip. I am relatively new to all this.
I have 2 websites, one I started in March 09 and left alone with just a couple of demo products on and one that I recently created.
Both sites have the Worldpay module installed and used to work ok.
When I made a test purchase the "thank you" page displayed correctly. However recently (not sure when but must be in the last few weeks), the "thank you" page displays without any pictures or stylesheet information so looks dreadful.
The page will display ok if I save and edit the code on my pc and place <base href="http://www.mywebsite.co.uk/phpshop/" /> before the "link href" tags at the top of the page.
Both my sites do the same despite the later one having Wp module Version 2.10 and the latest Zencart security update installed so it is not anything to do with Zencart or Worldpay module updates. What could this be? as I have 2 sites on different servers both behaving the same and both used to work.:( Surely I can't be the only one:unsure: Peter
Suspended
I would suggest that you are using IE8 in the parlour with a candle stick.
Over at worldpay you would be at a "secure site",
worldpay sucks the thank you page into your browser,
the browser excludes any "insecure content" like your style sheets
Your page becomes a mess.
That's just a wild guess but I'm pretty sure it's correct. You browser would have auto-updated one night. So you've debugged it too, congratulations. You have already solved the mystery. My email is listed openly if you clikc on my name, send me one ot the templates you've altered and I'll see what $_SERVER['PHP_SCRIPT'] and $_SERVER['HOST_NAME'] does in the places (plus https etc...) to see if I can construct base href like your in code so that people don't have to edit it manually.
Thanks
Philip.
New Zenner
Hi Philip, thanks for your quick response.
Yes I am using IE8 HOWEVER I just tried Firefox V2.0.0.2 and Opera V9.64 and I get the same result. Is this a clue to where the problem is?
The original site I started in March and have not updated, just uses the standard Zencart template.
The only other module I had installed on it was the URI mapping module by CEON. Is it possible the .htaccess file needed for the URI mapping in the root on the php site could be causing a problem?... but I have not changed anything since March when it all worked ok. I will try my sites at work tomorrow where we have been instructed not to upgrade to IE8. I do not know where the **base ref **tag comes from but if it is needed for pages to display on my site, surely it would be needed on the RBS Worldpay page? :smile:
Suspended
Well you see my "theory" sort ouf popped into my head a couple of days back when I released 2.10 and noticed the IE8 cross site scripting warning.
The module has always displayed "your" shop page under the domain https://something.worldpay.com so the page is pulled in and then displayed, and I thought, well that's a problem because the img tags for examples would be looking on worldpay because of th domain name, or if your site was not SSL then there would be another problem since it would display an "insecure items" warning.
What I reckon has happened is that in "the original" worldpay before RBS, they had a base href added to "your" page when they suck it in to maintain the correct links, and now I reckon that they must have removed it, so I can manually add one pretty easily I'd just like to see an example template that works. The reason I immiedaitely thought of IE8 is because it's got an anti-XSS filter built in that is supposed to stop cross site domains if it suspects a vulnerability. If it's not working with anything else, then probably someone at worldpay dropped the ball at some unspecified time and if it's dropping the stylesheets then worldpay's machine is not rewriritng the URL's correctly and your brower would be looking for a CSS file on worldpay's server rather than your own.
Easy to fix really, the fix won't stop any warnings in IE8 about displaying insecure items on pages (a fundemental probelm to do with worldpay sucking the page in and nothing on my end). Just need an example that you say works and I'll plug in the PHP variables to the templates.
Philip.
New Zenner
Hello Philip. I have tried my site (the one I made in March and left alone) in IE7 at work and I get the same result so it is not an IE8 problem. Looks like RBS Worldpay have done something.
Perhaps I should contact RBS worldpay first to try and find out if they have omitted something by accident. I would also like to know if anyone else is experiencing this problem.:unsure:
On the next Worldpay module, perhaps you could change all references and URLs to http://www.rbsworldpay.com/ in case they eventually remove the old ones and links become dead.
I am not sure what I need to send you that works because I haven't got anything that actually works.:no: All I did was save the source code of the"Thank you" page that appears on the rbsworldpay site and add the base ref link at the top of the page and view it. I am afraid I haven't yet grasped the PHP side of it.
Zen Follower
Hi, firstly would like to say thankyou to phllip for the great mod and good documentation / help!
Finally got the call back response to work, which is goood, but the problem i am facing is the same as petelutonuk where the thankyou page has no styling!
My first thought was it is trying to pick up styles on the RBSworldpay site (which was pretty much confirmed in some earlier posts).
Im happy to add in the base ref tags myself, if you could instruct me to general area of the files i would need to add it to.
Any help would be greatly appreciated,
Scott
Suspended
petelutonuk:
Hello Philip. I have tried my site (the one I made in March and left alone) in IE7 at work and I get the same result so it is not an IE8 problem. Looks like RBS Worldpay have done something.
Perhaps I should contact RBS worldpay first to try and find out if they have omitted something by accident. I would also like to know if anyone else is experiencing this problem.:unsure:
On the next Worldpay module, perhaps you could change all references and URLs to http://www.rbsworldpay.com/ in case they eventually remove the old ones and links become dead.
I am not sure what I need to send you that works because I haven't got anything that actually works.:no: All I did was save the source code of the"Thank you" page that appears on the rbsworldpay site and add the base ref link at the top of the page and view it. I am afraid I haven't yet grasped the PHP side of it.
on version 10 all the references go to select.rbsworldpay in line with the chanegs they will be implementing tomorrow. So I don't know which bit you would be reading. Secondly I have no idea why you want to phone worlpay but what will happen is this, they will say it's your fault or the modules fault, that they changed nothing (there are many references to this in this thread) and then you'll send me the tpl file that works with a base href that works and I'll release a module that works by taking your information and coding it in.
Philip.
Suspended
Ooba_Scott:
Hi, firstly would like to say thankyou to phllip for the great mod and good documentation / help!
Finally got the call back response to work, which is goood, but the problem i am facing is the same as petelutonuk where the thankyou page has no styling!
My first thought was it is trying to pick up styles on the RBSworldpay site (which was pretty much confirmed in some earlier posts).
Im happy to add in the base ref tags myself, if you could instruct me to general area of the files i would need to add it to.
Any help would be greatly appreciated,
Scott
Do you mean the thank you page on your site ? The base href tag would go in one of the files beginning in tpl_ where the html is but it would be much better if it weren't hard coded, and if I did it based on the domain name and the constants in the shop database, I just want confirmation that I'm going to be putting it in the correct place from someone that appears to have done it already. Reading the thread it should be obvious, but I don't have a worldpay account so I can't test this side of the response "after a payment" except by guesswork or by using something I know that works.
Philip.
Philip.
Zen Follower
Umm when you get taken to RBS worldpay, and enter the credit card details. It then takes you to a thank you page (i think you said worldpay, sucks in that page?!?!)
Umm, this page is styleless as it is trying to pick up the styles from RBS rather than my site.
My thought was to add in the base ref to the thankyou page that RBS pulls in, so it would still pick up the styles from my site.
Maybe i have the wrong idea, and im not on the right track on fixing this problem
Scott
Suspended
So a thank you page on your shop yes ?
If so you are correct adding a base href should fix it, and I can do it in the moudle so it will work for everyone too.
Philip.
Zen Follower
Yep a thankyou page from my shop.
OK cool, if you did it in the module....i dont mind testing it out and seeing if it works?
Scott
Suspended
It will work but only by blind luck and guesswork.
Zen Follower
Ok, i had a quick go earlier, and thought i had put it in the correct place.....but i obviously hadnt.
Suspended
Actually this is what I don't "get", on the front page of a zencart shop picked at random, I look at the source and it says base href=...
and in
zen-cart-v1.3.8a-full-fileset-12112007/includes/templates/template_default/common/html_header.php
it has that the base href is defined by setting the
HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG
variables in the define pages, so if it displays on the front of your shop, the where did it go ?
Fields marked required must be completed.
Tell staff why this post should be reviewed.