If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Shopping cart Image using "Small Image Height/width" rather than "Shopping Cart h/w"

Shopping cart Image using "Small Image Height/width" rather than "Shopping Cart h/w"

Started by britneycook on 24 Jun 2012, 9:10 AM · Views: 998

Results 1 to 3 of 3
24 Jun 2012, 9:10 AM
#1
britneycook avatar

britneycook

New Zenner

Join Date:
Oct 2010
Posts:
53
Plugin Contributions:
0

Post #1 by britneycook

Hi folks

Ive been trying to configure my shopping cart image size in CONFIGURATION -> IMAGES only to discover that its not using the Shopping cart Image sizes but rather the Small Images Sizes. This is only a problem because the specials ALSO seems to use the Small Image sizes, which i need to be 150px not the same as shopping cart which needs to be 50px

Im assuming this is a your_template thing? Does anyone know where this might have been changed in the template and how i can fix it to use the fight file?

define('SMALL_IMAGE_WIDTH','150'); //Small Image Width
define('SMALL_IMAGE_HEIGHT','150'); //Small Image Height

define('IMAGE_SHOPPING_CART_WIDTH','50'); //Image - Shopping Cart Width
define('IMAGE_SHOPPING_CART_HEIGHT','50'); //Image - Shopping Cart Height

24 Jun 2012, 9:28 AM
#2
britneycook avatar

britneycook

New Zenner

Join Date:
Oct 2010
Posts:
53
Plugin Contributions:
0

Post #2 by britneycook

I found in the following file and code which appears to be correct? Any advice?
/includes/modules/pages/shopping_cart/header_php.php

Line #131 : $productsImage = (IMAGE_SHOPPING_CART_STATUS == 1 ? zen_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], IMAGE_SHOPPING_CART_WIDTH, IMAGE_SHOPPING_CART_HEIGHT) : '');

24 Jun 2012, 11:16 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #3 by stevesh

Hard to say. A stock Zencart installation using the Classic template doesn't behave that way. Try switching temporarily to the Classic template and see what happens. Also provide a link to the site - we may be able to spot something.