Shortcodes for inserting modules into the text.
OpenCart has two types of modules and, accordingly, shortcodes:
-
Multi-modules - they allow you to create many modules with different settings. Such modules include, for example, the standard "Featured", "Latest", "Carousel". To display multimodules, use the shortcode:
[module id=*]
-
Normal modules - they have only one general settings page. These are the default modules "Account", "Categories", "Filter". To display regular modules, use the shortcode
[module name=*]
The ID and name of the module can be found in the URL of the module settings page. That is, edit the module and look in the address bar of the browser (shown in the screenshots).
The shortcode should be like plain text, without html markup and styles. Be careful when inserting the shortcode into the description field. If you copy the shortcode, first paste it into a notepad to clear the html markup and then paste it into the description, or add the shortcode in the code view of the description field.
Module installation instructions:
Upload the module in the admin panel in the "Extensions" : "Install".
Go to the "Modifications" section and update the cache.
Use the shortcodes [module id=*] and [module name=*] where, instead of *, substitute the appropriate value of the required module for its insertion into the description text of pages, articles, blogs, products, categories.
Login and write down your comment.
Login my OpenCart Account