View Single Post
  #2  
Old 05-01-2004, 03:28 PM
 
xcell67 xcell67 is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 149
 

Default

I got step 1 of this done, first take out:

Code:
<tr><td colspan=2> <font class=ProductDetailsTitle>{$lng.lbl_options}</font> </td></tr> <tr><td class=Line height="1" colspan=2>[img]{$ImagesDir}/spacer.gif[/img]</td></tr>

from customer/main/product.tpl

and put it in skin1/modules/Product_Options/customer_options.tpl

put it on top of the beginning of the section loop so it looks like this:

Code:
<tr><td colspan=2> <font class=ProductDetailsTitle>{$lng.lbl_options}</font> </td></tr> <tr><td class=Line height="1" colspan=2>[img]{$ImagesDir}/spacer.gif[/img]</td></tr> {section name=product_option loop=$product_options}

Doing this will only display the Options header if the customer_options.tpl is called.

The problem is, even if there are no product options, the customer_options.tpl will always be called and still display the Options header because of this code in product.tpl:

{if $active_modules.Product_Options ne ""}
{ include file="modules/Product_Options/customer_options.tpl"}
{/if}

If you check the Product Options module to be active in your admin section, the header will always show unless someone can come up with another if statement, like if product options greater than 0 or something, then show customer_options.tpl[/code]
Reply With Quote