Category image in Shop Made Simple

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
dave.webb
Forum Members
Forum Members
Posts: 18
Joined: Mon Jun 30, 2008 12:13 pm

Category image in Shop Made Simple

Post by dave.webb »

Hi all.

I have several categories setup with Shop Made Simple and have included an image for each.  However, this image shows up in the list of products, not in the list of categories.  How do I change it?  I tried copying and pasting the code but it doesn't work.

Dave
--
Dave Webb
Windows 2008 Forums
Duketown

Re: Category image in Shop Made Simple

Post by Duketown »

dave.webb,

Not that I have an immediate answer, but do you see anything whenever you see a list of categories (such as image not found, no image at all, wrong image)?

Duketown
dave.webb
Forum Members
Forum Members
Posts: 18
Joined: Mon Jun 30, 2008 12:13 pm

Re: Category image in Shop Made Simple

Post by dave.webb »

Hi Duketown.

No, there is nothing there at all, it's not evening showing a broken link to the image in.  I just used the {$image} variable (or whatever it was) that is included in the other section that uses it.

Dave
--
Dave Webb
Windows 2008 Forums
Duketown

Re: Category image in Shop Made Simple

Post by Duketown »

dave.webb,

{$image} won't do anything.
Try something like: {cms_module module=ShopMadeSimple display=productlist catname='here exact name of category'} in a page.

Duketown
dave.webb
Forum Members
Forum Members
Posts: 18
Joined: Mon Jun 30, 2008 12:13 pm

Re: Category image in Shop Made Simple

Post by dave.webb »

Duketown,

I tried that and it shows a list of products in the category, as I would expect.  It doesn't show the category image because I removed the code from the template, as I don't want it shown in the list of products, just in the list of categories.

Dave
--
Dave Webb
Windows 2008 Forums
dave.webb
Forum Members
Forum Members
Posts: 18
Joined: Mon Jun 30, 2008 12:13 pm

Re: Category image in Shop Made Simple

Post by dave.webb »

As I'm not getting anywhere with this does anyone know how I can somehow extract the category name from somewhere?  It seems I only have $entry->name to use but it doesn't contain it.

If I can somehow pull the category name I can just use /uploads/images/categories/.jpg

Thanks,
Dave
--
Dave Webb
Windows 2008 Forums
Duketown

Re: Category image in Shop Made Simple

Post by Duketown »

dave.webb

Could send in the site with the missing image (so coding is up and running to show image). Maybe I can read from the source of the webpage what is wrong (for someone else I noticed a double slash causing the problem).
No problem if you PM it.

Duketown
dave.webb
Forum Members
Forum Members
Posts: 18
Joined: Mon Jun 30, 2008 12:13 pm

Re: Category image in Shop Made Simple

Post by dave.webb »

Duketown,

I'd send a link to the site but the problem isn't that the code is wrong, as there isn't any code.  The page doesn't even have an tag.  I'm pretty sure this is by design, and the author(s) of Shop Made Simple never intended the category image to show up in the list of categories (as it shows up in the list of products for that category).  I just want to try and put that image on a different page but don't know if any variables, other than $entry->name are available to use.

Thanks,
Dave
--
Dave Webb
Windows 2008 Forums
Duketown

Re: Category image in Shop Made Simple

Post by Duketown »

dave.webb,

The intention IS to show the category image. Please see my demo shop: www.mantox.nl/shop. Select for example Kitchen Aids and you will see the image of the category in the top.

During the development I did, I had lots of problems getting the correct path settings, so it might be that it works for mantox.nl but not for your site, hence I repeat my request on the coding. PM is ok by me.

Duketown
dave.webb
Forum Members
Forum Members
Posts: 18
Joined: Mon Jun 30, 2008 12:13 pm

Re: Category image in Shop Made Simple

Post by dave.webb »

Hi Duketown.

Your site is doing the same as mine though, the category images are not shown in the list of categories.  I want the images shown here:

http://www.mantox.nl/shop/

but they are shown here:

http://www.mantox.nl/shop/index.php?mac ... eturnid=15

Thanks,
Dave
--
Dave Webb
Windows 2008 Forums
Duketown

Re: Category image in Shop Made Simple

Post by Duketown »

dave.webb,

True. That function/layout style is not available. Enter a feature request for the module.

Duketown
dave.webb
Forum Members
Forum Members
Posts: 18
Joined: Mon Jun 30, 2008 12:13 pm

Re: Category image in Shop Made Simple

Post by dave.webb »

Request submitted :)

Thanks,
Dave
--
Dave Webb
Windows 2008 Forums
Duketown

Re: Category image in Shop Made Simple

Post by Duketown »

Request solved in version 0.1.6 of the module.
Post Reply

Return to “Developers Discussion”