View Single Post
  #3  
Old 01-21-2008, 12:05 AM
  Warwick's Avatar 
Warwick Warwick is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Somewhere on the web through European connection
Posts: 868
 

Default Re: Hide related products tpl when there are none

Problem is how to implement this, the code in product.tpl says:

Code:
{if $active_modules.Upselling_Products ne ""} <p /> {include file="modules/Upselling_Products/related_products.tpl" } {/if}

Not quite sure how to put the {if $product_links eq ""} in it.

Maybe something like:

---
{if $active_modules.Upselling_Products ne "" && $product_links eq ""}

<p />
{include file="modules/Upselling_Products/related_products.tpl" }
{/if}
---

But that doesn't work ...
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25
X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many
∙∙ Experience: Somewhere beyond newbie
-----------------------------------
------------------------------------------------------------------------------------------------------
Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info
Reply With Quote