Using shop made simple 0.2.6 I have placed in my menu on the left: {cms_module module='ShopMadeSimple' display='categorylist'} showing my categories nicely
On my content area on the right i have for now placed: {cms_module module='ShopMadeSimple' display='productlist' catname='gruppe 1'} showing the products in "gruppe 1" nicely.
Here is the snagg, catname='gruppe 1' is just "gruppe 1" i have manually put in, but it should be when I in my menu on the left click a category name it does like this: {cms_module module='ShopMadeSimple' display='productlist' catname='category i just clicked'}
How can I do that? Do I have to make a UDT to accomplish this?
shop made simple
Re: shop made simple
btw you can see the site here: http://jernbanemaerker.3dz.dk/index.php?page=shopms
Re: shop made simple
I've been searching the same forum for a similar solution. I am running CMSMS 1.6.6.
I have the product categories listed on the left, and am displaying a general list of products on the right. But when I click a category, I need for those products to change.
Here is my code:
Now, what I'd like to do is somehow add the {content} tag in the with the ID = "content". This would certainly fix the issue concerning the displaying of content when you click a category. But the current smarty in the "content" div is not dynamic.
So to summarize, if could do it, I would:
I'm wondering (looking at the help for this tag) if {content assign-xxxxx} would help to resolve this quesiton?
I have the product categories listed on the left, and am displaying a general list of products on the right. But when I click a category, I need for those products to change.
Here is my code:
Code: Select all
<div id="category">{cms_module module='ShopMadeSimple' display="categorylist" catname="root"}
<div id="content" align="center">{cms_module module='ShopMadeSimple' display="productlist"}
</div>
</div>So to summarize, if could do it, I would:
Code: Select all
<div id="category">{cms_module module='ShopMadeSimple' display="categorylist" catname="root"}
<div id="content" align="center">{cms_module module='ShopMadeSimple' display="{content}"}
</div>
</div>I'm wondering (looking at the help for this tag) if {content assign-xxxxx} would help to resolve this quesiton?
Last edited by dcleckley on Mon Feb 22, 2010 1:01 am, edited 1 time in total.
Re: shop made simple
I think that the solution may be an {if}{else} statement in the code. Not sure though, but it may look something like this:
if {content}>0 then
{content}
{smarty}
Can someone verify this? I'm not sure how to structure the syntax, but it would seem logical and similar to how you'd set up {custom content} right?
if {content}>0 then
{content}
{smarty}
Can someone verify this? I'm not sure how to structure the syntax, but it would seem logical and similar to how you'd set up {custom content} right?
Re: shop made simple
This is as close as I've gotten. I'm just a level 2 forum member though. We may need added assistance on this one.
Code: Select all
{if $content < 1}
{cms_module module='ShopMadeSimple' display="productlist"}
{else}
<p>{content}</p>
{/if}Re: shop made simple
Does this (above) sound right to anyone? I have a similar problem and need to know if my logic is correct.
Re: shop made simple
I'm not sure if this post (above) is the same as this one http://forum.cmsmadesimple.org/index.php/topic,40258.0.html. Is it? If so, the functionality does not exist. If not...maybe there is.
Re: shop made simple
I think you want to achieve the same I did here:
http://www.vsh-horgen.ch/index.php?page=shop
But I was made aware that it is not possible to place productlist and productcategories on the same page without having some issues. My solution was to hardcode the categorylist.
Thomas
http://www.vsh-horgen.ch/index.php?page=shop
But I was made aware that it is not possible to place productlist and productcategories on the same page without having some issues. My solution was to hardcode the categorylist.
Thomas
Re: shop made simple
Hello all. I think it will be important to read the following post concerning this issue. It may be your resolution.
http://forum.cmsmadesimple.org/index.ph ... #msg200342
http://forum.cmsmadesimple.org/index.ph ... #msg200342

