We have been asked to add a functionality that shows the size guide on a product view page. This is to appear as a new tab next to the existing Details, More Information, and Reviews tabs. The content of the size guide tab is to be the same for all products containing the size attribute. We also need it to be editable from Magento admin.
Let's take a moment to think about our approach here:
- To be the same for all products and editable from Magento admin needs the CMS block
- The CMS block needs setup script for creating the size guide block
- To Appear as a new tab next to the existing tabs requires a catalog_product_view.xml layout update
Assuming we have defined registration.php, composer.json, and etc/module.xml as basic module files, we can deal with the more specific details of our Magelicious_Catalog module.
We start by defining <MODULE_DIR...