Page 1 of 1
Product Manager problem.. [SOLVED]
Posted: Sun Oct 24, 2010 10:51 am
by kaamo5
Hello,
Im using the product manager by inserting the {products category='random'} to the page where I want the list of that category products. And if the category is empty aka there is no products -> nothing comes out.
So what I want is that there would read "No products" or something like that if the category is empty ::). I have tried editing the summary template but I noticed that it wont even be included if the category is empty.
Re: Product Manager problem..
Posted: Sun Oct 24, 2010 3:14 pm
by sanderhartveld
For me the module was only called when usinf {Products} with a capital P
check that one too
kaamo5 wrote:
Hello,
Im using the product manager by inserting the {products category='random'} to the page where I want the list of that category products. And if the category is empty aka there is no products -> nothing comes out.
So what I want is that there would read "No products" or something like that if the category is empty

. I have tried editing the summary template but I noticed that it wont even be included if the category is empty.
Re: Product Manager problem..
Posted: Sun Oct 24, 2010 7:33 pm
by kaamo5
sanderhartveld wrote:
For me the module was only called when usinf {Products} with a capital P
check that one too
kaamo5 wrote:
Hello,
Im using the product manager by inserting the {products category='random'} to the page where I want the list of that category products. And if the category is empty aka there is no products -> nothing comes out.
So what I want is that there would read "No products" or something like that if the category is empty

. I have tried editing the summary template but I noticed that it wont even be included if the category is empty.
yes I use capital P when calling the module.. I just want it to print no products if category is empty

Re: Product Manager problem..
Posted: Sun Oct 24, 2010 7:49 pm
by borutvel
Products Manager - Preferences - Product Detail Settings
Did you fill those up?
Re: Product Manager problem..
Posted: Sun Oct 24, 2010 8:39 pm
by kaamo5
borutvel wrote:
Products Manager - Preferences - Product Detail Settings
Did you fill those up?
Yes those settings are ok. The module works fine and I just want to modificate it to show "No products" if the category is empty.
something like:
If there is products{
list products
}
else{
print the no products line
}
Re: Product Manager problem..
Posted: Sun Oct 24, 2010 8:52 pm
by borutvel
http://www.dootch.com/2010/08/this-cate ... ts-module/
{capture assign="is_empty"}{Products category="Specials" summarytemplate="specials"}{/capture}
{if $is_empty != ''}{Products category="Specials" summarytemplate="specials"}{else}There are no specials on right now.{/if}
Re: Product Manager problem..
Posted: Sun Oct 24, 2010 9:43 pm
by kaamo5
borutvel wrote:
http://www.dootch.com/2010/08/this-cate ... ts-module/
{capture assign="is_empty"}{Products category="Specials" summarytemplate="specials"}{/capture}
{if $is_empty != ''}{Products category="Specials" summarytemplate="specials"}{else}There are no specials on right now.{/if}
ok thats what I was looking for

thank u