View Single Post
  #1  
Old 10-26-2007, 04:54 PM
 
gkeraunen gkeraunen is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 37
 

Default Getting products.tpl to see ExtraFields?

I'm trying to set up some conditional logic in products.tpl that reads the some Extra_Fields for each product. The loop works just fine in product.tpl, but not in products.tpl. Can you spot my error? Or is it about placement and scope?

As usual, when I get this working, I'll post the mod. Thanks. -Michael

Code:
{* begin Michael Modification to include Drop Ship products in X-Cart October 26 2007 *} start_if {if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product.tpl"} {section name=field loop=$extra_fields} {if $extra_fields[field].field eq 'DropShipMessage'} {if $extra_fields[field].field_value ne ''} {assign var=drop_ship_message value=`$extra_fields[field].field_value`} {/if} {/if} {if $extra_fields[field].field eq 'AllowDropShip'} {if $extra_fields[field].field_value eq "Y"} {assign var=allow_drop_ship value=`$extra_fields[field].field_value`}{/if} {/if} {/section} {/if} {* end Michael's Modification to include Drop Ship products in X-Cart October 26 2007 *}
__________________
X-Cart 4.1.9
PHP 4.4.1
MySQL 4.0.27
Linux
Apache
Reply With Quote