View Single Post
  #1  
Old 05-18-2009, 06:11 AM
 
presson83 presson83 is offline
 

Senior Member
  
Join Date: Sep 2008
Posts: 143
 

Default Conditional Extra Form Fields on Registration Page

Hi All,

I'm trying to include a couple of additional fields on my registration.tpl page, but only when a product has a certain extra field applied to it and when the product option has a certain title. I have this working perfectly on my order invoice template like so :

Code:
{foreach from=$products item=product} {if $product.extra_fields.0.value ne '' && $product.product_options_txt eq "Product Options: Online Streaming Course"} {include file="customer/main/register_additional_info.tpl" section='A'} {/if} {/foreach}

For whatever reason, this is NOT working on my register.tpl page. Any ideas why I can't loop through the products array and specify the extra product field id or the product option title, but I can on my order_invoice.tpl page?
__________________
v 4.1.11, v 4.2
Reply With Quote