Viewing 6 replies - 1 through 6 (of 6 total)
  • etoilewebdesign

    (@etoilewebdesign)

    Hi Meredith,

    Currently the best place to look at all the short codes is in the shortcode.php file. We’re working on updating our documentation so they’re more accessible though.

    What are you looking to do with your categories and presentation?

    For example, if you want to display a page with a pre-selected category your shortcode might look something like this:
    [product-catalogue id='3' category= '5']

    The numbers should correspond to the ID’s of the catalogue and category you are interested in displaying.
    This would look something like this: https://www.etoilewebdesign.com/DevelopmentTwo/315-2/

    It is also possible to open single catalogue for a category, all you need to change URL with category id. For example:

    https://www.example.com/?categories=5

    The Category id can be found by clicking on a category. In both examples, this can also be done with subcategories.

    Hope that helps!

    etoilewebdesign

    (@etoilewebdesign)

    Hi,
    Just to clarify-there was only the main shortcode until a few weeks ago. We recently added a second one, [insert-products], that can take the following attributes: “catalogue_url”, “product_ids”, “catalogue_id”, “category_id”, “subcategory_id”, “product_count”, “products_wide”. The catalogue_url needs to be filled out, the others are all optional.

    Hope that helps!

    Thread Starter SSmeredith

    (@ssmeredith)

    Oh, yes, this is good news!

    Can you provide me an example, say just to show the products of one category, bypassing the catalog layout?

    Thank you!!

    etoilewebdesign

    (@etoilewebdesign)

    I’m not sure what you mean by bypassing the catalog layout- do you mean displaying the full catalogue? The above examples should illustrate that.

    To display a page with a pre-selected category your shortcode might look something like this:
    [product-catalogue id=’3′ category= ‘5’]

    Or if you wanted the URL to open up a page with a pre-selected category it would look something like this:
    https://www.example.com/?categories=5

    Sorry if that isn’t what you’re asking!

    Thread Starter SSmeredith

    (@ssmeredith)

    Yes, I believe this is what I need.
    [product-catalogue id=’3′ category= ‘5’]

    The template I am using is not friendly with the catalog layout so I am just going to make a page for each category and then feed the products to each corresponding page with the shortcode. Hopefully this will work.

    Thanks again!!

    jamkddr

    (@jamkddr)

    Hello S Smeredith,

    If you are using the [product-catalogue] short code you have several attributes that you can apply.

    “id”,”excluded_layouts”,”starting_layout”,”products_per_page”,”current_page”,”sidebar”,”only_inner”,”ajax_reload”,”ajax_url”,”request_count”,”category”.”subcategory”,”tags”,”custom_fields”,and “prod_name”

    So you could have your products shown like
    [product-catalogue id=”1″ excluded_layouts=”Detail,List” starting_layout=”Thumbnail” category=”2″]

    What this will do is show your catalogue with the id of 1 and category id of 2 only. The detail and list formats will not be shown and starts on the thumbnail. With the [product-catalogue] short code you will have the sidebar that allows for search but that can also be hidden by adding the attribute of sidebar=”No”.

    You can also customize the catalogue layout by using the Custom CSS when you select a catalogue to edit. At least that is how I have been using it.

    The [insert-products] is also another great solution to add specific products that you would like to display and is done pretty much the same way that as the example above but also using the “catalogue_url” attribute:
    [insert-product catalogue_url=”/thepagethatyouwantittoload/” catalogue_id=”1″ category_id=”2″ product_count=”20″ products_wide=”4″]

    The [insert-products] is great if your are going to use it in a sidebar or mega menu. I hope that makes a little more sense.

    James

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘List of shortcode for showing catalog’ is closed to new replies.