![]() |
Hide related products tpl when there are none
Is there anybody who knows what code to use to hide/not display the related products tpl when there are no related products?
|
Re: Hide related products tpl when there are none
Have you tried:
{if $product_links eq ""} |
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 ""} 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 ... |
Re: Hide related products tpl when there are none
Use:
PHP Code:
|
Re: Hide related products tpl when there are none
Just like that! I thought you had become an expert in all this by now!?!?!?
|
Re: Hide related products tpl when there are none
Quote:
:) Sorry, I'm an X-Adept now ... lost the eXpert ... :D But I had an eXpert vision, the code that Eugene posted is what I mentioned before, but it doesn't work somehow :( |
Re: Hide related products tpl when there are none
Quote:
The code is different: Quote:
|
Re: Hide related products tpl when there are none
Thanks Eugene,
I did use your code but it doesn't work ... tried templates cleanup as well, no good I'm afraid. |
Re: Hide related products tpl when there are none
Quote:
I've checked the default X-Cart templates. X-Cart doesn't show 'Related products' section if you don't specify any upselling product. Do you have a custom skin? |
Re: Hide related products tpl when there are none
Yes, I have a one of the X-Cart skin templates installed (Fashion Mosaic).
|
All times are GMT -8. The time now is 02:44 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.