Forum Moderators: coopster
I have the following line of code:
$cart_contents_string .= $products[$i]['quantity'] . ' x </span></td><td valign="top" class="ShoppingCartBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"> ' ;
i'd like to add this to it:
tep_image(DIR_WS_IMAGES . $products[$i]['image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)
The output displays the image, then to the right (next column) the product name, and at the bottom of the image to the right , the quantity.
I'd like to display:
Product name
Product quantity
Product image
all in a single column, one after each other.
Any ideas where i need to place the 2nd line of code? i think i need a new line before i display the image -but how?
Many thanks
Marc
--hakre
$cart_contents_string .= tep_image(DIR_WS_IMAGES . nl2br() . $products[$i]['image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . $products[$i]['quantity'] . ' x </span></td><td valign="top" class="ShoppingCartBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"> ' ;
I can't try it until this evening, but i'm hoping for the following display in 1 column.
IMAGE <br>
Quantity , Product id
Cheers
Marcus