eCommerce Product Catalog comes with two product shortcodes:
- [show_products] – the one to show products;
- [show_categories] – the one to show categories;
(click on the shortcode now to see the available attributes in the docs).
You can use the shortcode on ony WordPress content page (on pages, posts and any custom post type).
Show Shortcode Usage Examples
You can show all products or individual ones. You can also choose a product listing template for the shortocode. All of these is can be achieved with shortcode attributes.
Lets show three products with the ids: 310,316 and 320 using the classic grid product listing theme.
We will use the following shortcode to achieve this:
[show_products product="310,316,320" archive_template="grid"]
Yes, it’s that easy.
Now with different theme:
[show_products product="310,316,320" archive_template="list"]
and another one…
[show_products product="310,316,320" archive_template="default"]
Now lets display some categories with a shortocde
Lets say we want to show only two categories: men sunglasses (id: 43) and sport sunglasses (id: 45) We will use the following shortcode to achieve this:
Offcourse the shortcode will never appear on your website. It shows up here only for demo purpose 🙂