philip_clarke:
It depends on your templating system, the removal of the base href tag and then you recoding into files may very well harm the rest of you site depending on how it is configured. There's no way to know hence why I can't issue a patch.
Philip.
Good Morning Philip and all,
I'm not a coder and don't really know what i've done but it works for me and should work for others and i'm sure those of you who actually know what they are doing can make this work as a temp patch for everyone or maybe not, but this does work for me.
Make folder wp_callback
includes/templates/YOUR_TEMPLATE/wp_callback
Copy the following files into this folder and they will act as an override
and not overwrite the main files of the Worldpay module or other files
for that matter.
includes/templates/template_default/templates/tpl_modules_wp_checkout_cancelled.php
includes/templates/template_default/templates/tpl_modules_wp_checkout_success.php
includes/templates/template_default/common/html_header.php
includes/templates/template_default/common/tpl_header.php
includes/templates/template_default/common/tpl_footer.php
includes/templates/template_default/common/tpl_main_page.php
Copy the contents of includes/templates/YOUR_TEMPLATE/css
to
includes/templates/YOUR_TEMPLATE/wp_callback
Edit the html_header.php and hard code the location of your stylesheets
<link rel="stylesheet" type="text/css" href="http://YOUR_WEBSITE/includes/templates/YOUR_TEMPLATE/wp_callback/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="http://YOUR_WEBSITE/includes/templates/YOUR_TEMPLATE/wp_callback/stylesheet_css_buttons.css" />
<link rel="stylesheet" type="text/css" media="print" href="http://YOUR_WEBSITE/includes/templates/YOUR_TEMPLATE/wp_callback/print_stylesheet.css" />
You can now edit the css sheets in order to change anything you might need to change for the Worldpay callback page.
In both the
tpl_header.php and
tpl_footer.php you can make adjustments as or if needed.
Edit tpl_main_page.php and turn off the sideboxes for this page as none of the graphics will be working anyway. Look for this
and make changes as needed.
- to turn off the header and/or footer uncomment the lines below<br />
- to turn off the left and/or right columns uncomment the lines below<br />
- $flag_disable_header = true;<br />
- $flag_disable_left = true;<br />
- $flag_disable_right = true;<br />
- $flag_disable_footer = true;<br />
I've tested this on both versions 1.3.7.1 and 1.3.8a
This override will only effect the worldpay return pages and no others so if it doesn't work for you just delete the folder or rename it and you haven't messed with any of the working files of this fine module.
I hope this helps someone as i would hate to lose this module it works perfectly for me and i would think from what i've seen here it is more secure then most if not all of the other payment modules available.