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 *}