Thread: Product code
View Single Post
  #10  
Old 03-03-2007, 12:41 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Product code

Ok, what I have done in the past is set up an extra field in the admin area. Call it 'Video' or something that makes it clear what it does. Then in customer/main/product.tpl, add this code where you want the link to the video to appear:

{if $extra_fields[0].field_value}
Code for pop-up
{/if}

That basically says that if the first extra field has a value, show the code. You can enter anything you want in the admin extra field area to get it to show up, but I typically just tell a client to type 'Y' in the box. If you don't want anything to appear for a product, just leave it empty.

Make sense?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote