Title: Magento 2 Product Tabs
1Product Tabs for Magento 2 User Guide
- Table of Content
- Extension Installation Guide
- Configuration
- Manage Product Tabs
- Product Tabs in Frontend
2- Extension Installation
- For Magento Marketplace Customers
- Find the Composer name and version of the
extension in the extensions composer.json file. - Login to your SSH and run
- composer require meetanshi/magento-2-product-tab
- Enter your authentication keys. Your public key
is your username your private key is your
password. - Wait for Composer to finish updating your project
dependencies and make sure there - arent any errors.
- To verify that the extension installed properly,
run the command - php bin/magento modulestatus Meetanshi_ProductTab
- By default, the extension is probably disabled.
- Enable the extension and clear static view files
- php bin/magento moduleenable Meetanshi_ProductTab
--clear-static-content - php bin/magento setupupgrade
- For Magento version 2.0.x to 2.1.x - php
bin/magento setupstatic-contentdeploy - For Magento version 2.2.x above - php
bin/magento setupstatic-contentdeploy f - php bin/magento cacheflush
- For Meetanshi Customers
33. Manage Product Tabs After enabling the
extension, move to Catalog gt Product Tabs gt
Manage Product Tabs where you can see already
created and saved product tabs enlisted.
- Add New Product Tab
- Click Add New Product Tab button to add new
custom product tab on the product page. - General Settings
- Active Select YES to activate the product tab on
the product page in frontend. - Title Enter title of the product tab to show on
the product page. - Content Enter the content to show under the
product tab. - Note If you have hidden the default product tabs
and still want to use its content in the custom
product tab, simply add the short code to the
WYSIWYG editor - Details tab block class"Magento\Catalog\Bloc
k\Product\View\Description" at_call"getDescripti
on" at_code" description" css_class"description"
at_label"none" name"product.info.description"
template"Magento_Catalogproduct/view/attribute
.phtml" - Information tab block class"Magento\Catalog\
Block\Product\View\Attributes"
template"Magento_Catalogproduct/view/attributes
.phtml" - Reviews tab block class"Magento\Review\Block
\Product\Review" name"reviews.tab" as"reviews"
template"Magento_Reviewreview.phtml"
group"detailed_info" - block class"Magento\Review\Block\Form"
name"product.review.form" - as"review_form"
- Customer Groups Select the customer groups to
which you want to show the product tab. - Store Views Select the store views to which you
want to show the product tab.
4- Related, Up-Sell, Cross-Sell Display Settings
- Show Related Product Block Select YES to show
related product recommendation block under the
product tab. - Show Up-Sell Product Block Select YES to show
up-sell product recommendation block under the
product tab. - Show Cross-Sell Product Block Select YES to show
cross-sell product recommendation block under
the product tab.
5o Assign Attributes Assign attributes to show
under the product tab.
6o Assign Tab to Products Set conditions if you
want to assign product tab only to the specific
products. Leave blank to show the product tab to
all the products.
74. Product Tabs in Frontend After configuring the
extension, users can see product tabs on product
page with the added content, assigned attributes
and product recommendation block if enabled.