shop made simple

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Snigx
Forum Members
Forum Members
Posts: 30
Joined: Wed Dec 30, 2009 2:31 pm

shop made simple

Post 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?
Snigx
Forum Members
Forum Members
Posts: 30
Joined: Wed Dec 30, 2009 2:31 pm

Re: shop made simple

Post by Snigx »

dcleckley
Forum Members
Forum Members
Posts: 127
Joined: Fri Mar 06, 2009 2:13 pm

Re: shop made simple

Post 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?
Last edited by dcleckley on Mon Feb 22, 2010 1:01 am, edited 1 time in total.
dcleckley
Forum Members
Forum Members
Posts: 127
Joined: Fri Mar 06, 2009 2:13 pm

Re: shop made simple

Post 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?
dcleckley
Forum Members
Forum Members
Posts: 127
Joined: Fri Mar 06, 2009 2:13 pm

Re: shop made simple

Post 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}
dcleckley
Forum Members
Forum Members
Posts: 127
Joined: Fri Mar 06, 2009 2:13 pm

Re: shop made simple

Post by dcleckley »

Does this (above) sound right to anyone?  I have a similar problem and need to know if my logic is correct.
dcleckley
Forum Members
Forum Members
Posts: 127
Joined: Fri Mar 06, 2009 2:13 pm

Re: shop made simple

Post 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.
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

Re: shop made simple

Post 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
dcleckley
Forum Members
Forum Members
Posts: 127
Joined: Fri Mar 06, 2009 2:13 pm

Re: shop made simple

Post 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
Post Reply

Return to “Modules/Add-Ons”