View Single Post
  #8  
Old 05-02-2009, 01:14 PM
 
Christofer Christofer is offline
 

eXpert
  
Join Date: Apr 2009
Location: Thessaloniki, Greece
Posts: 202
 

Default Re: ship by mail icon.. (like the special offer icon) (i can pay for it)

Quote:
Originally Posted by gb2world
yes - the loop must also be in the product.tpl - to debug, you can add something that writes out the variables inside the loop to make sure it is working and that the variables are as you expect.

{section name=field loop=$extra_fields}
<b>field</b>: {$extra_fields[field].field}<br />
<b>value</b>: {$extra_fields[field].field_value}<br />
{if $extra_fields[field].field eq "ship_by_mail" && $extra_fields[field].field_value ne ""}
{assign var="ship_by_mail" value=$extra_fields[field].field_value}
<b>Ship By Mail:</b> {$ship_by_mail}<br />
{/if}
{/section}

from that code it appears that :
field: Ship by mail
value: Y

but not the <b>Ship By Mail:</b> {$ship_by_mail}<br />
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql)
Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server
Modules : X-Offer & X-Aom & One page checkout
Product tabs & Product downloads & many more
Reply With Quote