how about adding another variable to your CSS? that you pass in the additional PHP?
I have no idea if that would work, but it's an idea?PHP Code:img.cartProductDisplayXXX {
width: 2em;
height: 2em;
}
how about adding another variable to your CSS? that you pass in the additional PHP?
I have no idea if that would work, but it's an idea?PHP Code:img.cartProductDisplayXXX {
width: 2em;
height: 2em;
}
Thanks for your suggestion. I tried putting your code in stylesheet but it didn't work. By the way, what's with the XXX? I still can't get it to work as I have no idea what controls the size of the images and which files they are calling from.
Code:img.cartProductDisplayXXX { width: 2em; height: 2em; }
The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan
cartProductDisplay already exists and is used in the regular shopping cart to show images. It shows a fairly large image and probably too big for your needs. I just added the XXX as an arrbitrary difference so your regular shopping cart wouldn't be changed.
Before you try this, remember, I've been using Zen cart for less than a month and my knowledge of PHP, Zen and CSS leaves much to be desired. In theory, I think this should work...
Add to your stylesheet
Then, wherever it was you put your code, put this in...PHP Code:img.cartProductDisplayXXX {
width: 2em;
height: 2em;
}
Like I said, in theory, this should work, unless my theory is wrong, which it very well could be. I haven't tested it and have no idea if it will work or not.PHP Code:<span class="cartProductDisplayXXX">
<?php
$products = $db->Execute("SELECT products_image
FROM " . TABLE_PRODUCTS . "
WHERE products_id ='" . $order->products[$i]['id'] . "'");
echo '' . zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . $products->fields['products_image'] , $order->products[$i]['name'], SMALL_IMAGE_HEIGHT, SMALL_IMAGE_WIDTH) . '</a> ';
?>
</span>
Let us know if it worked for you
Hi osdude,
Thanks for your help. Unfortunately, it didn't work.
The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan
maybe this will work? I dunno?PHP Code:<?php
$products = $db->Execute("SELECT products_image
FROM " . TABLE_PRODUCTS . "
WHERE products_id ='" . $order->products[$i]['id'] . "'");
echo '<span class="cartProductDisplayXXX">' . zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . $products->fields['products_image'] , $order->products[$i]['name'], SMALL_IMAGE_HEIGHT, SMALL_IMAGE_WIDTH) . '</a></span> ';
?>
tell me where you're putting the code and I'll try to do it as well.
Still no luck
The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan
to what file are you adding this code?