Displaying Product Description and Additional Information Without Tabs in Magento
If you’re new to Magento like our reader here, navigating the platform’s extensive feature set can sometimes feel overwhelming. In this post, we’ll guide you through displaying product description and additional information on a single page without using tabs.
Understanding the Current Layout
By default, Magento 1.7.0.2 separates product content into multiple tabs: “Product Description”, “Reviews”, and “Product Tags”. The layout looks like this:
| Product Description | Reviews | Product Tags +---------------------+---------+-------------
Our reader wants to remove these tabs and display all relevant information under one section each, without any additional UI elements.
Changing the Layout Without Tabs
To achieve this layout:
-
Navigate to your Magento installation directory via FTP or SFTP.
-
Locate the file
app/design/frontend/default/[your-theme]/template/catalog/product/view.phtml. This is where the current tabbed product view is defined. -
Open the
view.phtmlfile in a text editor. -
Find this line of code:
if ($this->getProduct()->isReviewAllowed()) {
$reviewsBlock = $this->getLayout()
->createBlock('review/product_view')
->setTemplate('review/product/view.phtml');
}
-
Comment out or delete the entire conditional statement above.
-
Save the file and upload it back to your server, overwriting the existing version.
-
Refresh your product page in a browser window.
You should now see the “Reviews” tab has been removed from the product view.
Enabling Additional Information
Our reader also mentioned that “additional information” is not shown on the product page currently. To enable this:
-
Log into your Magento admin panel.
-
Navigate to “Catalog” > “Manage Products”.
-
Click “Edit” next to the product where you want to show additional information.
-
In the left sidebar, click on “Additional Information”.
-
Fill in any relevant fields with information about the product and save your changes.
-
Refresh the product page on the frontend, and you should now see the “Additional Information” section displayed below the description and reviews.
Benefits of Removing Tabs
While the default tabbed layout provides a modular way to organize content, removing tabs can offer several advantages:
- Improved Readability: By grouping related information together in one section, users can scan the page more easily.
- Reduced Clutter: Fewer UI elements mean cleaner design and faster load times.
- Enhanced User Experience: Simplifying navigation makes your site feel more intuitive to shoppers.
Remember, every change should be tested thoroughly before deploying it on a live website. Always keep a backup of your original files in case you need to revert any changes.
We hope this guide helps you achieve the desired layout for your Magento store! If you’re looking to further customize your e-commerce platform, consider exploring our professional development services at Laravel Company.