Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shopping cart not working correctly on internet explorer


mskanyon

Recommended Posts

I am getting contacted by my client stating that she is unable to view the shopping cart correctly on Internet Explorer v.7. She is using a PC and I am on a Mac. I have tested it on my Mac IE v5.2 and it works fine.

 

Please see attached screen shot. Does anyone have any suggestions as to how to solve this problem?

 

1.png

Link to comment
Share on other sites

Well, obviously it's not seeing (or processing) your CSS file. Since it works OK in Safari and Firefox, you might try changing the following line in the <head> section:

<base href="">

to

<base href="/catalog">

and see if that makes any difference. Note that it fails the same way with IE6, so I can test that for you (if needed) once you make the change. If that doesn't work, also try

<base href="/">

before giving up on that approach.

 

If that doesn't do it, we'll have to look at the contents of your CSS file(s) and see if there's something odd going on in there.

Link to comment
Share on other sites

I am getting contacted by my client stating that she is unable to view the shopping cart correctly on Internet Explorer v.7. She is using a PC and I am on a Mac. I have tested it on my Mac IE v5.2 and it works fine.

 

Please see attached screen shot. Does anyone have any suggestions as to how to solve this problem?

Looks like your relative links aren't working on IE. I don't know off the top of my head how to fix it, but might want to start with catalog/includes/configure.php?

 

This code is the BASE tag that calls for the HTTPS_SERVER or HTTP_SERVER variable, which is found there:

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

Link to comment
Share on other sites

Well, obviously it's not seeing (or processing) your CSS file. Since it works OK in Safari and Firefox, you might try changing the following line in the <head> section:

<base href="">

to

<base href="/catalog">

and see if that makes any difference. Note that it fails the same way with IE6, so I can test that for you (if needed) once you make the change. If that doesn't work, also try

<base href="/">

before giving up on that approach.

 

If that doesn't do it, we'll have to look at the contents of your CSS file(s) and see if there's something odd going on in there.

 

I only changed colors on the stylesheet.css that came with the oscommerce package. Could it be something else?

Link to comment
Share on other sites

Looks like your relative links aren't working on IE. I don't know off the top of my head how to fix it, but might want to start with catalog/includes/configure.php?

 

This code is the BASE tag that calls for the HTTPS_SERVER or HTTP_SERVER variable, which is found there:

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

 

 

This is still not working or i may be doing this wrong?

Link to comment
Share on other sites

This is still not working or i may be doing this wrong?

Ooh..I just installed FireFox to see this and it does work on FF. What's your code for catalog/includes/configure.php? Just the first 10 lines or so...the whole file doesn't need to be posted.

Link to comment
Share on other sites

The base href tag should be as Kevin pointed out above

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

You need to check the settings in catalog/includes/configure.php.

If you post that code do not post any of the database settings.

Link to comment
Share on other sites

Ooh..I just installed FireFox to see this and it does work on FF. What's your code for catalog/includes/configure.php? Just the first 10 lines or so...the whole file doesn't need to be posted.

 

this is what it says..

 

<?php

/*

$Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '');

define('DIR_WS_HTTPS_CATALOG', '');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', '');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

If these HTTP/HTTPS things are empty, they shouldn't be:

 

define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_DOMAIN', '');

 

Your URL needs to be defined there, looking something similar to this:

 

define('HTTP_SERVER', 'http://mydomain.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'mydomain.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'http://mydomain.com');
define('HTTPS_COOKIE_DOMAIN', 'mydomain.com');

Link to comment
Share on other sites

If these HTTP/HTTPS things are empty, they shouldn't be:

 

define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_DOMAIN', '');

 

Your URL needs to be defined there, looking something similar to this:

 

define('HTTP_SERVER', 'http://mydomain.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'mydomain.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'http://mydomain.com');
define('HTTPS_COOKIE_DOMAIN', 'mydomain.com');

 

yes that is all correct. I took those out for security purposes.

Link to comment
Share on other sites

yes that is all correct. I took those out for security purposes.

I see. Kinda needed to see the first 10 lines. You already have your URL for your site in your picture. It's all the other stuff after the 10 lines (with your database info) that I don't want posted here. Anyways, what about this?

 

define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

 

It probably should be something like:

 

define('DIR_WS_HTTP_CATALOG', '/catalog');
define('DIR_WS_HTTPS_CATALOG', '/catalog');

Link to comment
Share on other sites

It probably should be something like:

 

define('DIR_WS_HTTP_CATALOG', '/catalog');
define('DIR_WS_HTTPS_CATALOG', '/catalog');

Yes, that would have the effect of making the change I mentioned before:

<base href="/catalog">

Link to comment
Share on other sites

It appears that you never made the changes we requested. You're still getting

<base href="">

when it should be

<base href="/catalog">

 

am i placing this just in the configure.php file or across the board as <base href="/catalog"> on the top of every file?

Link to comment
Share on other sites

This code is found in your stylesheet.css file. Did you mean to put it there? I think the advice received was to put that line in your index.php file HEAD section.

 

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

/*
 $Id: stylesheet.css 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 

Change it back to:

/*
 $Id: stylesheet.css 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 

then lets have another look at it.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

This code is found in your stylesheet.css file. Did you mean to put it there? I think the advice received was to put that line in your index.php file HEAD section.

 

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

/*
 $Id: stylesheet.css 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 

Change it back to:

/*
 $Id: stylesheet.css 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 

then lets have another look at it.

 

your awesome!!!! it works but now giving me this error:

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/thickert/public_html/catalog/index.php:3) in /home/thickert/public_html/catalog/includes/functions/sessions.php on line 102

Link to comment
Share on other sites

your awesome!!!! it works but now giving me this error:

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/thickert/public_html/catalog/index.php:3) in /home/thickert/public_html/catalog/includes/functions/sessions.php on line 102

Not likely caused by the stylesheet. What else have you been tinkering with that you might have changed?

 

If you search for "Headers already sent" you will come up with a lot of info. This is a common error message received when people go tinkering around and make one tiny error... like a blank line above the <?php in any file.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

Not likely caused by the stylesheet. What else have you been tinkering with that you might have changed?

 

If you search for "Headers already sent" you will come up with a lot of info. This is a common error message received when people go tinkering around and make one tiny error... like a blank line above the <?php in any file.

 

now that ive corrected that error...the screen is blank again! arg

Link to comment
Share on other sites

Then lets see the configure.php file. The top 10 lines only. Don't worry. We already know what info *should* be there. No need to change any of it. Post it without changes.

 

<?php

/*

$Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', '/catalog'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', '/catalog'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

Link to comment
Share on other sites

define('HTTP_SERVER', '/catalog'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', '/catalog'); // eg, https://localhost - should not be empty for productive servers

Ok, look at the example to the far right on each line. Make it look like the example. See below...

define('HTTP_SERVER', 'http://www.thickerthanbloodbook.com/catalog'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'http://www.thickerthanbloodbook.com/catalog'); // eg, https://localhost - should not be empty for productive servers

 

 

Tey these changes.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

  • 2 weeks later...

Archived

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

×
×
  • Create New...