Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stylesheet not working on some pages


Guest

Recommended Posts

Posted

Hi all. I am in the process of building an OSC site for a customer. It's my first OSC site, and it's coming along rather well for a first time experience (I'm a designer, not as strong a developer so it's a learning experience). I had some issues after extensively editing some pages where the cart and cart related pages were completely blank. I couldn't figure it out, so I reloaded the core files from before I made the changes. The pages all work now, but there is something very weird happening:

 

The breadcrumb text and info box header (backgrounds) are only affected by the stylesheet on a couple of pages, not the index, product info, etc. When I refresh the page, I can briefly see the stylesheet working, but then it reverts back to the original formatting, as if I had not made changes to the CSS.

 

Is there code on individual pages that I'm not seeing that would somehow cause certain pages to ignore parts of the stylesheet?

 

I can't post a link as the site is under development and I do not have the customer's authorization to do so.

 

Thank you. I've been a lurker on the board here for a while and I appreciate the knowledge of you more experience developers and OSC users.

~Todd

Posted

you most likely made changes in some of the include files, or calling the incorrect setting in the stylesheet.

Posted
you most likely made changes in some of the include files, or calling the incorrect setting in the stylesheet.

 

 

Thank you for the timely answer, John. I figured the change was in one of those includes files. The stylesheet styles were applying just fine before I had the issues with the actual page code. So nothing changed in the actual CSS. I feel confident that I can rule out any issues with the stylesheet.

 

What I'm unfamiliar with is where in the include(s) files is there code that relates to, or is affected by, the style sheet?

Posted

UPDATE:

I just noticed that the stylesheet is only working on the secure pages. Anything with just a "HTTP" prefix is unaffected by it while all the HTTPS pages are showing up fine.

Posted

Any other suggestions?

The include configuration paths are set properly and the CSS didn't change.

Posted
I can't post a link as the site is under development and I do not have the customer's authorization to do so.

Could be helpful, Try checking your config files. Maked sure the define http and https are set correctly. Also check that you still have the following in the head section of all your store front pages.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

Posted

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

 

^ From the Product_info.php page. Honestly, it looks like everything is in order. There were some minor tweaks needed thatnks to the suggestions of some members of another OSC forum, but I am absolutely stumped.

 

Here's the config file.

 

  define('HTTP_SERVER','http://www.power******solutions.com');
 define('HTTPS_SERVER', 'https://secure6.securewebexchange.com/power******solutions.com');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'www.power******solutions.com');
 define('HTTPS_COOKIE_DOMAIN', 'secure6.securewebexchange.com');
 define('HTTP_COOKIE_PATH', '/store/');
 define('HTTPS_COOKIE_PATH', '/store/');

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...