I'm a first-time user of 3.8.0 and have a basic question about the stylesheet.css link. I've googled and searched but this thread is a monster and I can't find any help yet.
The old style URLs were e.g. http://www.premierrange.co.uk/index.php?main_page=blah. So every file is fetched relative to /index.php. I have a bunch of links that just say "lib/foo" and "images/blah" and, relative to /, they work.
Now, Ceon SEO is using the URL e.g. http://www.premierrange.co.uk/catego...at-two/product. This means every resource fetched is now relative to /category-one/subcat-two, and all my "lib/" and "images/" links don't work. Do I understand this correctly, or should these work somehow and I've missed something?
Moving on from this standpoint...
A basic product page doesn't render for me, because stylesheet.css isn't loaded. html_header.php contains a loop with this:
Code:
echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";
So, that generates output like:
Code:
<link rel="stylesheet" type="text/css" href="includes/templates/premierrange/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/premierrange/css/stylesheet_css_buttons.css" />
These get 404 Not Found responses. This is because, as in the out-of-the-box zen cart, I have these in configure.php:
Code:
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
[cut]
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
As before, a link of "includes/" doesn't work, relative to the seo friendly URI I'm using.
Is this wrong?
Should I prepend a "/" to the DIR_WS_TEMPLATES variable? And any others? I'm just approaching this problem and wondering how many tweaks I'll have to make, and what the best approach is.
Cheers!
Nick
Bookmarks