missing images on product template

General ShopSite user discussion

missing images on product template

Postby lance uppercut » Thu Jun 07, 2007 12:37 pm

I've got a custom template for my pages/products, and am finding that my rendered HTML is not displaying the 'add to cart' image properly. when I look at the rendered code for the image tag, I see the following stuck in between where the 'media' directory should be called:

<!-- DISPLAY_TAG NOT DEFINED -->


I assume I'm missing something in my product template. my 'add to cart' section in the template looks like this:

#######################
# ADD TO CART BUTTON #
#######################
[-- IF VAR.SubForm no --]
&nbsp;&nbsp;<a href="[--PRODUCT.AddToCartURL--]&super=[-- PRODUCT.Parent --]"><img src="[-- OUTPUT_DIRECTORY_URL --]/[-- VAR.Media --]/add_to_cart.gif" border="0"></a><br>
[-- ELSE --]
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" style="display:inline" method=post>
<input type=hidden name=storeid value=[-- STORE_ID --]>
<input type=hidden name="super" value="[-- Product.Parent --]">
<input type=hidden name=dbname value=products>
<input type=hidden name=function value=add>
<input type=hidden name=itemnum value=[-- PRODUCT.RecordNumber --]>
[-- IF VAR.SubOptions yes --]
<br>[-- PRODUCT.OptionText --]
[-- ORDER_OPTION_MENU LINE --]
[-- END_IF --]

[-- IF VAR.SubQuantity yes --]
[-- IF VAR.SubOptions no --]
<br>
[-- END_IF --]
Quantity <input type=text size=2 name="[-- PRODUCT.RecordNumber --]:qnty" value="1" >&nbsp;&nbsp;
[-- END_IF --]
<input type=image src="[-- OUTPUT_DIRECTORY_URL --]/[-- VAR.Media --]/add_to_cart.gif" width=121 height=19 hspace=3 vspace=3 border=0 align="absbottom" name="Add to Cart" alt="Add to Cart">
</form><br>
[-- END_IF --]


am I supposed to hard-code in the /media/ directory where it says /[-- VAR.Media --]? what about the [-- OUTPUT_DIRECTORY_URL --] portion, should I be hard-coding in my store URL there?

TIA.
lance uppercut
 
Posts: 15
Joined: Thu May 10, 2007 9:04 am

Postby lance uppercut » Thu Jun 07, 2007 12:58 pm

and,,,nevermind. not sure what happened, but the images are now displaying in my store. I had published everything beforehand leading up to my issue, but regenerated the store completely and they are now showing.
lance uppercut
 
Posts: 15
Joined: Thu May 10, 2007 9:04 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 29 guests