Thanks! I never would have figured that out...works perfect!
Thanks! I never would have figured that out...works perfect!
Something odd:
I made all my product images in the product listing results have a 8px border...
All of a sudden today they do not have a border
it was in the stylesheet as ".listingProductImage" and that worked to make product images have a border, and NOT the sold out button if one shows.
Now I can use "#productListing img" but it gives the sold out buttons a border as well.
I guess I'm just weirded out that this all of a sudden stopped working, and now what should I be doing to get the border to show?
See if
#productListing .listingProductImage {}
works.
Definitely weird that the simple version would stop working. Have you made *any* stylesheet changes around the time this happened?
Yes, but it was to the EZPagesNextPrev buttons and the buttons on the product info pages, I think that's all I really added, everything else was just slight changes to what was already there.
Validated the CSS to check I didn't miss something, and it's all fine.
P.S. Thing is...when I use FF Dev Tools on the images on the Product listing, I don't even see the .listingProductImage class...
For whatever reason, the .listingProductImage class is no longer being applied in the code.
Can you post the
case 'PRODUCT_LIST_IMAGE': ... break;
section of your /includes/modules/your_template/product_listing.php? (The second one, in the product area, not the one in the heading area.)
I hope this is what you needed....
case 'PRODUCT_LIST_IMAGE':
$lc_align = 'center';
if ($listing->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) {
$lc_text = '';
} else {
if (isset($_GET['manufacturers_id'])) {
$lc_text = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' . $listing->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>';
} else {
$lc_text = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>';
}
}
break;
OK, the
'class="listingProductImage"'
is there... which must mean that the zen_image () function is not processing the parameter. Hard to imagine any way you could have affected that.
That leaves the idea that maybe the PHP processing has changed. Has your host made any changes to the server?