Jump to content

[SOLVED] Payment Methods - Lose path to CSS etc


Recommended Posts

I am using SotEW'sAdds v0.4 to insert an html into header of site and have also modified globall.css as follows to have an image in background.

body {
background-image: url('../img/wood2.jpg');
background-attachment: fixed;
font-size: 11px;
font-family: Verdana, Arial, Helvetica, Sans-Serif;
color: #5d717e;
text-align:center;
}

Everything works fine throughout site except when I get to "Payment Methods" when I notice the path changes from

domain/shop/order.php

to

/shop/modules/cheque/payment.php

I lose background image and html header.

I am guessing it is something to do with the paths in the respective payments modules.

eg: cheque

include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/../header.php');
include(dirname(__FILE__).'/cheque.php');

Once I confirm the order, everything is OK again as it reverts to original path (ie /shop/order-confirmation.php?id_cart=41&id;_mod)

I would really appreciate any assistance as I am new to php.

Regards
Ian



SOLVED
After a lot of trial and error, the problem is associated with inserting a html file into the site header using the module SotEW'sAdds v0.4. I have overcome by inserting a jpg using SotEW'sAdds v0.4 and I no longer lose the path to CSS etc

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...