![]() |
Featured Products Question
Is there a way to turn off featured products from showing up on the main page and the categories page when there are no items that are added to the featured products?
I want to do this without commenting it out of the home.tpl if possible. If not then I guess I will comment it out. |
Re: Featured Products Question
If you have no featured products in admin, then by default nothing is going to show up anyway.
If you don't have any featured products, what are you getting to show up??? |
Re: Featured Products Question
The featured products menu with menu box title and contents of "There are no featured products."
|
Re: Featured Products Question
The message is displayed via the language variable {$lng.txt_no_featured}
If you just comment that message out from featured.tpl... then it wont be shown. This way featured products will be displayed if you have products assigned, else no message will be displayed. Regards Shafiq :sK |
Re: Featured Products Question
What I am trying to do is not even show the featured items menu box. I didn't know if there is a way to shut it down without commenting it out of the home.tpl file. Like best sellers can be turned on or off, I just wanted to know if featured items menu can be turned on and off.
|
Re: Featured Products Question
Well it's not a module like bestsellers, so i guess you can only comment it from the code.
Unless someone here has a better idea ? |
Re: Featured Products Question
Thinking about it now .. It might be worth the guys @ XC to convert it as a module in a future release, so it can be enabled/disabled easily
Comments ? Shafiq :sK |
Re: Featured Products Question
You just need to move the {if} statement around a little:
Replace this: Code:
{capture name=dialog} with this: Code:
{if $f_products ne ""} |
Re: Featured Products Question
That was quite an interesting effect Balinor!
That put the featured items menu above the head template and in the center main of home where featured products go it just gave the text label for no featured products. I do appreciate the effort though. |
Re: Featured Products Question
Huh? Just meant update customer/main/featured.tpl, not moving things above the head template!
|
All times are GMT -8. The time now is 06:37 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.