Starting with version 3.0, the Product Table module for opencart can be displayed with special shortcodes, and it is possible to override some module parameters.

This makes it possible to use the same instance of the module with different product sets.

So what parameters can be used in a shortcode:


AttributeDescriptionExample
idInteger. Specifies an instance of Product Table module.[product_table id="10"]
limitInteger. Max number of products[product_table id="10" limit="5"]
type

String. Allows you to override the module type. Possible values:

  • latest - new products;
  • bestseller - Bestsellers;
  • popular - popular products;
  • special - actions;
  • related - related products (only works on a product page);
  • custom - manually selected products;
  • filter - products filrtered by category, manufacturer and product filter.
[product_table id="10" limit="5" type="bestseller"]
productComma-separated list of integers. Specifies product_id of products to be displayed. Works only with type="custom".
[product_table id="10" limit="5" type="custom" product="56,89,128"]
filter_manufacturer
Comma-separated list of integers. Specifies manufacturer_id of manufacturers, products of which you want to display. Can be empty if you want to unset the module option. Works only with type="filter".
[product_table id="10" limit="5" type="filter" filter_manufacturer="8,9,25"]
filter_category
Comma-separated list of integers. Specifies category_id of categories, products of which you want to display. Can be empty if you want to unset the module option. Works only with type="filter".
[product_table id="10" limit="5" type="filter" filter_manufacturer="8" filter_category="152,153"]
filter_filterComma-separated list of integers. Specifies filter_id of product filters, products of which you want to display. Can be empty if you want to unset the module option. Works only with type="filter".
[product_table id="10" limit="5" type="filter" filter_manufacturer="8" filter_category="152,153" filter_filter="5,10,18"]