Page 1 of 1

shop made simple

Posted: Fri Jan 22, 2010 3:39 pm
by Snigx
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?

Re: shop made simple

Posted: Sat Jan 23, 2010 12:49 pm
by Snigx

Re: shop made simple

Posted: Mon Feb 22, 2010 12:24 am
by dcleckley
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:

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>
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:

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?

Re: shop made simple

Posted: Mon Feb 22, 2010 1:11 am
by dcleckley
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?

Re: shop made simple

Posted: Mon Feb 22, 2010 1:26 am
by dcleckley
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

Posted: Mon Mar 01, 2010 7:33 am
by dcleckley
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

Posted: Mon Mar 01, 2010 7:45 am
by dcleckley
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

Posted: Mon Mar 01, 2010 7:56 am
by thomahawk
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

Re: shop made simple

Posted: Sat Mar 20, 2010 10:51 pm
by dcleckley
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