View Single Post
  #1  
Old 05-29-2009, 03:59 AM
 
Gibson1957 Gibson1957 is offline
 

Member
  
Join Date: Mar 2009
Posts: 23
 

Default Can't get extra fields to show in other places

Hi - I'm trying to get an extra field of "Product size" which we've added to show up in the products_t.tpl where we have a list of products, however I can't get it to show.
The code I added in was the bit inbetween the "size field" comment


{foreach from=$row item=product}
{if $product}
<td class="product-cell">
Size will go here
{* ************************ Size Field ************************ *}
{if $active_modules.Extra_Fields}

{foreach from=$extra_fields item=v}
{if $v.active eq "Y" && $v.field_value && $v.field == "Product size"}
TESTING
{$v.field_value}
{/if}
{/foreach}
{/if}
{* ************************************************** ************ *}
<div class="image">
<a href="product.php?productid={$product.productid}&c at={$cat}&page={$navigation_page}">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a>

etc. etc. ....................................

It's showing "Size will go here" but not "TESTING" which is weird - I'm guessing it's not showing the size because maybe it doesn't have the product ID at that point to cross-reference in the "extra fields" list to get that value (need help with this) but interestingly it isn't showing the word "TESTING" either which suggests it isn't looping through the extra fields at all.......

Can anyone give me a hand with this?
__________________
X-Cart Gold 4.2

Add-on: X-Affiliate
Add-on: X-RMA (Return Merchandise Authorization)
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Reply With Quote