Hello,
I am new at Zen Cart and I need to modify a template I have.
I need to pull the full url for a product image. the zen_image function returns more html output than I need:
function zen_image($src, $alt = '', $width = '', $height = '', $parameters = '')
And zen_href_link inputs 'index.php?main_page=' into the url
$link .= 'index.php?main_page=' . $page;
I know I can do this a few different ways, but what is the "PROPER" Zen Approved way?
I found this thread interesting, but I just wanted to ask before I used this approach.
http://www.zen-cart.com/showthread.p...tml_output-php
Could someone please suggest the best way to accomplish what I am trying to do?
I only want the url to the image
thanks
this is what I've used so far
data-largeimage="' . zen_href_link(DIR_WS_IMAGES . $new_products->fields['products_image']) . '"
data-largeimage="' . zen_image(DIR_WS_IMAGES . $new_products->fields['products_image']) . '"


Reply With Quote
