Zen Cart Logo
Forums / Code Collaboration / icon images not showing up on cart page

icon images not showing up on cart page

Views: 3,500

Results 1 to 6 of 6
26 Aug 2014, 1:46 PM
#1
cripkeeper avatar

cripkeeper

New Zenner

Join Date:
Aug 2014
Location:
Denver, Colorado
Posts:
2
Plugin Contributions:
0

icon images not showing up on cart page

I am new to Zencart, searched the FAQ and blog sections for relevant issues but found none, so I am posting this to see if there is someone out there that may have some answers for me. I believe I have installed the cart properly, however on my shopping cart pages, the icons and images such as 'add to cart' image is not showing up.
The shopping cart link is below.
https://www.dankstreet.com/cart/index.php?main_page=product_info&cPath=66&products_id=108

Any ideas?

Also, when an item is purchased and the user clicks 'add to cart' the quantity section runs off the page. Not sure if these are related issues or not and if I need to post an additional thread please let me know.
Issue link is below-
https://www.dankstreet.com/cart/index.php?main_page=shopping_cart

Thank you-

My Zencart version is 1.5.3
My site has not been upgraded and I have not installed any add-ons
I installed Zencart using FTP and ran zc_install
My version of PHP is 5.4.42-servage15 and SQL is mysqlnd 5.0.10
This issue began when I purchased the SSL certificate for the site and it became active

26 Aug 2014, 5:41 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,765
Plugin Contributions:
9

Re: icon images not showing up on cart page

You need to be looking at your configure.php files. There are two and you probably have some errors there.
First of all, in the yourSite/includes/configure.php, you have the https set for the http server. You only shoot yourself in the foot by making the entire cart secure. While there, check the image settings or the WS_CATALOG to make sure all is right with the world.

With your current use of a subdirectory, it should look like this> /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/

/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://www.dankstreet.com');
define('HTTPS_SERVER', 'https://dankstreet.com');

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

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/cart/');
define('DIR_WS_HTTPS_CATALOG', '/cart/');Done this way, you don't need to "fix" other settings EXCEPT Lines 42, 45, and 68 where you will have to add /cart to the path in front of /, /logs, and /cache respectively.

Once you get that going, you'll get a better feel for what should be in the yourAdmin/includes/configure.php.

26 Aug 2014, 7:05 PM
#3
cripkeeper avatar

cripkeeper

New Zenner

Join Date:
Aug 2014
Location:
Denver, Colorado
Posts:
2
Plugin Contributions:
0

Re: icon images not showing up on cart page

dbltoe:

You need to be looking at your configure.php files. There are two and you probably have some errors there.
First of all, in the yourSite/includes/configure.php, you have the https set for the http server. You only shoot yourself in the foot by making the entire cart secure. While there, check the image settings or the WS_CATALOG to make sure all is right with the world.

With your current use of a subdirectory, it should look like thisDone this way, you don't need to "fix" other settings EXCEPT Lines 42, 45, and 68 where you will have to add /cart to the path in front of /, /logs, and /cache respectively.

Once you get that going, you'll get a better feel for what should be in the your Admin/includes/configure.php.

Thank you for your response.
I have made the recommended alterations to the configure.php file and still no icon images.
So do I need to also update the configure.php to reflect /cart/ before the sections listed below?

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

Thanks again for the help-

26 Aug 2014, 7:48 PM
#4
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: icon images not showing up on cart page

No you don't

cripkeeper:

Thank you for your response.
I have made the recommended alterations to the configure.php file and still no icon images.
So do I need to also update the configure.php to reflect /cart/ before the sections listed below?

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

Thanks again for the help-

26 Aug 2014, 7:58 PM
#5
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: icon images not showing up on cart page

You have made the entire store SSL (which is unnecessary, but anyway), however you have non ssl links to assets which will be blocked depending on your browser

  1. You have used absolute links in your CSS file eg
#logoWrapper{
	background-image: url(http://www.dankstreet.com/cart/images/header_bg.jpg);
	background-repeat: repeat-x;
	background-color: #ffffff;
	height:75px;
	}

if you are going to keep the entire store ssl then just change that to https://

  1. If you see below it mentions accessing the images are forbidden

The page at 'https://www.dankstreet.com/cart/index.php?main_page=product_info&cPath=66&products_id=108' was loaded over HTTPS, but displayed insecure content from 'http://www.dankstreet.com/cart/images/tile_back.gif': this content should also be loaded over HTTPS.
index.php?main_page=product_info&cPath=66&products_id=108:1
Failed to load resource: the server responded with a status of 403 (Forbidden) https://www.dankstreet.com/cart/includes/templates/template_default/buttons/english/button_in_cart.gif
Failed to load resource: the server responded with a status of 403 (Forbidden) https://www.dankstreet.com/cart/includes/templates/template_default/buttons/english/button_write_review.gif
Failed to load resource: the server responded with a status of 403 (Forbidden) https://www.dankstreet.com/cart/images/sd1sm.jpg

26 Aug 2014, 10:33 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,765
Plugin Contributions:
9

Re: icon images not showing up on cart page

have you considered what is causing your root to be secure (https:)? If it is "hard-coded" on the server, you will need to get it turned off for the subdirectory cart.