Posts: 538
Threads: 12
Joined: May 2013
2017-05-11, 04:45:35
(This post was last modified: 2017-05-14, 03:09:10 by Bigin.)
SimpleCatalog Thread
This is a - Beta v0.1
If you have any comments or questions relating to SimpleCatalog, please do not hesitate to add them here, thx
Demo Catalog: http://im.ehret-studio.com/simple-catalog/
More Infos: https://ehret-studio.com/lab/simplecatal...ed-plugin/
Posts: 155
Threads: 10
Joined: Jul 2012
2017-05-11, 05:36:23
(This post was last modified: 2017-05-11, 05:36:52 by Riianna.)
Doesnt work for me. Installet and when activate i get error message and the whole site goes blank, i had to delete im_simple_catalog php file to get site back . Exactly same thing happens with GS Blog plugin.
Posts: 538
Threads: 12
Joined: May 2013
2017-05-11, 05:48:01
(This post was last modified: 2017-05-11, 05:50:09 by Bigin.)
Turn on debug mode in GS settings.
I cannot help you without an error message, sorry
Posts: 155
Threads: 10
Joined: Jul 2012
(2017-05-11, 05:48:01)Bigin Wrote: Turn on debug mode in GS settings.
I cannot help you without an error message, sorry
Debug mode dont tell anything its just blank.
But when i try to refresh plugin page in admin i get Fatal error: Can't use function return value in write context in im_simple_catalog\lib\controller.php on line 739
Posts: 538
Threads: 12
Joined: May 2013
2017-05-11, 17:36:20
(This post was last modified: 2017-05-11, 17:38:01 by Bigin.)
Thanks for the reply. Probably you use PHP older than 5.6.
See the description requirements.
Posts: 36
Threads: 6
Joined: Apr 2011
This is definitely much more simpler than ItemManager and so much easier to understand. Is there a way to filter the catalog by selecting multiple categories? For example if someone wanted a 'White Tshirt', they can select the categories 'white' and 'tshirt'.
Posts: 538
Threads: 12
Joined: May 2013
2017-05-19, 06:15:54
(This post was last modified: 2017-05-19, 06:42:33 by Bigin.)
Hi,
hmmm... I am not sure I understand what do you mean by "filter the catalog by selecting multiple categories"?
You can already search through different categories. Or do you mean the "tag filtering" feature? The tag-filter function does not allow filtering in different categories, but only, because you're already on a specific category page. Example, if you are on the "t-shirts" category page, so your URL would look like this: http://your-site/catalog/t-shirts/?tag=yourtag. What do you think, how should the URL look like, if you want to filter through multiple categories: http://your-site/catalog/t-shirts/bananas/foo/whatever/bla-bla/?tag=yourtag ? ;-)
That's exactly why the search function is here for.
Posts: 538
Threads: 12
Joined: May 2013
2017-05-19, 15:10:58
(This post was last modified: 2017-05-19, 15:26:31 by Bigin.)
Oh I see! Ok, forget everything I've said before. I understand it now: you want to narrow your search by selecting one or several specific categories, right?
Unfortunately, that is not possible with build-in methods. Because that is a new feature and each catalog page, has already been assigned a specific function, that is the price that you paid for simplicity ;-)
But of course, since SimpleCatalog is based on ItemManager you are able to create an extra GS page for that purpose, and you will have to use API to write required function. If you have any questions regarding API, just let me know and I will try to help.
Posts: 155
Threads: 10
Joined: Jul 2012
(2017-05-11, 17:36:20)Bigin Wrote: Thanks for the reply. Probably you use PHP older than 5.6.
See the description requirements.
I have latest xampp now (before i had easyphp) , but i cant get the items to appear in catalog page, did everything as your tutorial says .
Posts: 538
Threads: 12
Joined: May 2013
error message?
In admin panel everything is fine?
Posts: 155
Threads: 10
Joined: Jul 2012
(2017-06-03, 20:12:54)Bigin Wrote: error message?
In admin panel everything is fine?
No errors and in admin panel everything works.
Posts: 538
Threads: 12
Joined: May 2013
2017-06-04, 05:32:17
(This post was last modified: 2017-06-04, 07:12:33 by Bigin.)
If you do not see any errors and admin works, then you probably have done something wrong.
Go down this list to check whether you did everything right:
- mod_rewrite must be enabled server side and correctly configured
- Fancy URLs enabled in GS settings
- Check that the "catalog" page you have created has the same slug as the $config->startPageUri variable in plugins/im_simple_catalog/inc/config.php (except slashes)
- Check that the "catalog" page contains [[catalog_content]], as page content. Note: the [[catalog_content]] must be entered as page content and not in your template file.
- Can you access the "catalog" page in frontend, what is displayed there?
Posts: 538
Threads: 12
Joined: May 2013
One of the users has the same issue and asked me for a solution. He had modified the original permalink structure to %slug%.html - of course, that cannot work lol. SimpleCatalog requires more complex structure with a minimum of 3 URL sections: /catalog/category-name/item-name/ by default installation. Please read the documentation on my site, in particular the section "Configuration", thats all already written there.
Posts: 155
Threads: 10
Joined: Jul 2012
(2017-06-04, 05:32:17)Bigin Wrote: If you do not see any errors and admin works, then you probably have done something wrong.
Go down this list to check whether you did everything right:
- mod_rewrite must be enabled server side and correctly configured
- Fancy URLs enabled in GS settings
- Check that the "catalog" page you have created has the same slug as the $config->startPageUri variable in plugins/im_simple_catalog/inc/config.php (except slashes)
- Check that the "catalog" page contains [[catalog_content]], as page content. Note: the [[catalog_content]] must be entered as page content and not in your template file.
- Can you access the "catalog" page in frontend, what is displayed there?
Everything is as u said, and yes i can access catalog page but its still empty page. I have kategories and items also.
Posts: 538
Threads: 12
Joined: May 2013
It's magic! No, seriously, this is definitely a config issue.
Maybe you have forgotten to add the native GS function "get_page_content()" to your template file?
Posts: 1
Threads: 0
Joined: Sep 2017
This works great but I have a small question. How can I change css so the images have some padding between the text? Or is there a particular size image to use?
Thanks
Posts: 538
Threads: 12
Joined: May 2013
To overwrite catalog styling you just need to add the custom stylesheet after the default catalog "styles.css" inside your template file
Posts: 63
Threads: 24
Joined: May 2013
2017-10-17, 00:16:29
(This post was last modified: 2017-10-17, 00:30:55 by lakaroth.)
Hello there i have a little problem, in item creations if i add multiple images it doesent work, it show only the first image.
There's a way to create a gallery for every item?
Also, i have try i18n plugin for multilanguage but it seems non compatible
Best
Posts: 538
Threads: 12
Joined: May 2013
I assume you're about to display multiple images in the detail view of the item?
There are several ways to do this.
If you are sure that the same number of images will always be used for each item, you can just create a custom template file with "itemDetailsContent" variable and add somme placeholders at any place in it.
Here is described how to create your own templates: https://ehret-studio.com/lab/simplecatalog-itemmanager-based-plugin/how-to-use-simplecatalog-templates/
to display thumbnails:
<img src="[[image_s_1]]" alt="">
<img src="[[image_s_2]]" alt="">
...
to display full sized images:
<img src="[[image_1]]" alt="">
<img src="[[image_2]]" alt="">
...
(2017-10-17, 00:16:29)lakaroth Wrote: Also, i have try i18n plugin for multilanguage but it seems non compatible
Of course not, because that would mean the plugin must be called "ExtensiveCatalog" instead. But joking aside, that functionality is not built in as default, but because the whole thing is based on the ItemManager framework, with a little effort you can build it on your own
Posts: 24
Threads: 1
Joined: Dec 2018
(2017-10-17, 01:48:28)Bigin Wrote: I assume you're about to display multiple images in the detail view of the item?
There are several ways to do this.
If you are sure that the same number of images will always be used for each item, you can just create a custom template file with "itemDetailsContent" variable and add somme placeholders at any place in it.
Here is described how to create your own templates: https://ehret-studio.com/lab/simplecatalog-itemmanager-based-plugin/how-to-use-simplecatalog-templates/
to display thumbnails:
<img src="[[image_s_1]]" alt="">
<img src="[[image_s_2]]" alt="">
...
to display full sized images:
<img src="[[image_1]]" alt="">
<img src="[[image_2]]" alt="">
...
(2017-10-17, 00:16:29)lakaroth Wrote: Also, i have try i18n plugin for multilanguage but it seems non compatible
Of course not, because that would mean the plugin must be called "ExtensiveCatalog" instead. But joking aside, that functionality is not built in as default, but because the whole thing is based on the ItemManager framework, with a little effort you can build it on your own
And if i dont know how many images will be used for each item? how can i show the amount of images that have been uploaded to each item?
Posts: 538
Threads: 12
Joined: May 2013
You have to hook into the function __renderFrontendItemDetails() to adjust it, here's a plugin example:
https://gist.github.com/bigin/f24406772e...d2b42bda96
Or you could customize your catalog output completely:
https://ehret-studio.com/articles/simple...t-catalog/
Posts: 24
Threads: 1
Joined: Dec 2018
(2017-06-04, 05:32:17)Bigin Wrote: If you do not see any errors and admin works, then you probably have done something wrong.
Go down this list to check whether you did everything right:
- mod_rewrite must be enabled server side and correctly configured
- Fancy URLs enabled in GS settings
- Check that the "catalog" page you have created has the same slug as the $config->startPageUri variable in plugins/im_simple_catalog/inc/config.php (except slashes)
- Check that the "catalog" page contains [[catalog_content]], as page content. Note: the [[catalog_content]] must be entered as page content and not in your template file.
- Can you access the "catalog" page in frontend, what is displayed there?
Im having this issue now, i have been working with this on my local host, i installed it all on the actual server, and everything seems to be working, except the catalog is not showing up on the page on the front end.
Everything you mentioned here is correct, and i have the page_content in it to, putting general text in the catalog page outputs it to the front end, but putting [[catalog_content]] does nothing. No catalog is shown.
Any ideas?
Posts: 538
Threads: 12
Joined: May 2013
Does your GS run in a subfolder?
Posts: 24
Threads: 1
Joined: Dec 2018
yes it does, under a folder called products, and i set the config file variables to point to '/products/catelog/'
Posts: 538
Threads: 12
Joined: May 2013
Hmm... I have no idea, is the page also called 'catalog' or 'catelog', like you wrote it?
You could check if your CKEditor has placed any junk symbols in your placeholder [[catalog_content]].
Is there a way to view your page online, can I get temporary access? Send me a PM please, if you can't find the issue.
|