Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,
    I found this plugin and is ideal to show a Catalog products. I was thinking in different categories too, so my solution was:

    1. You have a plugin folder with the name sc-catalog
    2. Now duplicate the folder and change the name for example sc-catalog2
    3. Change the name of the files:
    sc-catalog2.css
    sc-catalog2.php
    sc-catalog2-admin.php
    sc-catalog2-data.php
    sc-catalog2-shortcode.php

    4. Change the code inside the all files. Example:

    function sc_catalog2_shortcode( $attrs ) {
    	$items = sc_catalog2_get_all();

    Is easy using Notepad and you can replace names inside of all documents. (dont’ forget file JS)

    Shorcodes

    Categorie 1
    [sc-catalog]

    Categorie 2
    [sc-catalog2]

    🙂

    Cheers

    Plugin Author scil

    (@scil)

    Nice hack

    To be more precise you need to duplicate the plugin and say it is a different one.

    – Replace all sc_catalog_ by sc_catalog2_ in all php files (this will rename all function name and calls)
    – On top of sc-catalog.php change the values of defines “sc_catalog” and “sc_catalog_db_version” to “sc_catalog2” and “sc_catalog2_db_version” (this will store your items in a different table)
    – And as noticed update the shortcodes at the end of sc-catalog-shortcode.php

    If you want to apply different style edit the classes in sc-catalog-shortcode.php and sc-catalog.css.

    I’m not sure renaming files is necessary. At least it could be for the php files (that were modified). For css, js and images, they are retreived from the plugin directory (which was renamed), the url will be automatically updated. If you need to rename the php files don’t forget to edit the links at the bottom of sc-catalog.php.

    All of this is surely not as good as having categories directly in admin panel. This is not forgotten.

    Help!

    I did as suggested and couldn’t use both plugins at the same time. When I activated the 2nd catalog, it gave me this – “The plugin generated 12 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”

    Any ideas what I did wrong? I changed everything from sc-catalog to sc-catalog2 and sc_catalog to sc_catalog2.

    I added a new product and suddenly my catalog went from three columns to two columns on the page and on the admin dashboard, the image is sticking out of the respective boxes. Help?

    Plugin Author scil

    (@scil)

    Categories are now supported in version 1.2.0.

    Set them in the item edit screen then show a particular category by adding the argument cat=”my category” to your tag.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: SC Catalog] Categories’ is closed to new replies.