Version Notes
A lot of products have a lot of information that needs to be displayed for e.g. a smart phone would have information about the features, battery, OS, processor, maintenance, etc. And each of these would have a lot of details. For a good user experience, having this information in tabs would be very helpful.Magento doesn't provide information to be displayed as tabs by default, in the product description page. With the Multi tab extension, you can very easily have any number of tabs for your product.
Download this release
Release Info
Developer | StrApp |
Extension | strapp_multitab_product_view |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- app/design/frontend/default/default/template/strapp/multitab/product/view/attributescontent.phtml +1 -1
- app/design/frontend/default/default/template/strapp/multitab/product/view/attributescontent.phtml~ +1 -1
- app/design/frontend/default/default/template/strapp/multitab/product/view/attributesheader.phtml +1 -1
- app/design/frontend/default/default/template/strapp/multitab/product/view/attributesheader.phtml~ +1 -1
- app/design/frontend/default/default/template/strapp/multitab/product/view/tabs.phtml +7 -6
- app/design/frontend/default/default/template/strapp/multitab/product/view/tabs.phtml~ +15 -6
- package.xml +5 -6
- skin/frontend/default/default/css/strapp-multitab.css +33 -0
app/design/frontend/default/default/template/strapp/multitab/product/view/attributescontent.phtml
CHANGED
@@ -53,7 +53,7 @@ foreach ($attributes as $attribute)
|
|
53 |
}
|
54 |
}
|
55 |
?>
|
56 |
-
<div class="product-tabs-content" id="
|
57 |
<?php $_additional = $this->getAdditionalData($exclAttr_Arr);?>
|
58 |
|
59 |
<table cellspacing="0" class="data-table" id="product-attribute-specs-table">
|
53 |
}
|
54 |
}
|
55 |
?>
|
56 |
+
<div class="strapp-product-tabs-content" id="strapp_product_tabs_<?php echo $group_name;?>_contents">
|
57 |
<?php $_additional = $this->getAdditionalData($exclAttr_Arr);?>
|
58 |
|
59 |
<table cellspacing="0" class="data-table" id="product-attribute-specs-table">
|
app/design/frontend/default/default/template/strapp/multitab/product/view/attributescontent.phtml~
CHANGED
@@ -53,7 +53,7 @@ foreach ($attributes as $attribute)
|
|
53 |
}
|
54 |
}
|
55 |
?>
|
56 |
-
<div class="product-tabs-content" id="
|
57 |
<?php $_additional = $this->getAdditionalData($exclAttr_Arr);?>
|
58 |
|
59 |
<table cellspacing="0" class="data-table" id="product-attribute-specs-table">
|
53 |
}
|
54 |
}
|
55 |
?>
|
56 |
+
<div class="strapp-product-tabs-content" id="strapp_product_tabs_<?php echo $group_name;?>_contents">
|
57 |
<?php $_additional = $this->getAdditionalData($exclAttr_Arr);?>
|
58 |
|
59 |
<table cellspacing="0" class="data-table" id="product-attribute-specs-table">
|
app/design/frontend/default/default/template/strapp/multitab/product/view/attributesheader.phtml
CHANGED
@@ -42,7 +42,7 @@ foreach ($attributes as $attribute)
|
|
42 |
<?php if($_additional = $this->getAdditionalData()): ?>
|
43 |
<?php foreach ($group_ids as $group_id): ?>
|
44 |
<?php $group_name = $group_names[$group_id];?>
|
45 |
-
<li id="
|
46 |
<a href="#"><?php echo $group_name?></a>
|
47 |
</li>
|
48 |
<?php endforeach; ?>
|
42 |
<?php if($_additional = $this->getAdditionalData()): ?>
|
43 |
<?php foreach ($group_ids as $group_id): ?>
|
44 |
<?php $group_name = $group_names[$group_id];?>
|
45 |
+
<li id="strapp_product_tabs_<?php echo $group_name?>">
|
46 |
<a href="#"><?php echo $group_name?></a>
|
47 |
</li>
|
48 |
<?php endforeach; ?>
|
app/design/frontend/default/default/template/strapp/multitab/product/view/attributesheader.phtml~
CHANGED
@@ -42,7 +42,7 @@ foreach ($attributes as $attribute)
|
|
42 |
<?php if($_additional = $this->getAdditionalData()): ?>
|
43 |
<?php foreach ($group_ids as $group_id): ?>
|
44 |
<?php $group_name = $group_names[$group_id];?>
|
45 |
-
<li id="
|
46 |
<a href="#"><?php echo $group_name?></a>
|
47 |
</li>
|
48 |
<?php endforeach; ?>
|
42 |
<?php if($_additional = $this->getAdditionalData()): ?>
|
43 |
<?php foreach ($group_ids as $group_id): ?>
|
44 |
<?php $group_name = $group_names[$group_id];?>
|
45 |
+
<li id="strapp_product_tabs_<?php echo $group_name?>">
|
46 |
<a href="#"><?php echo $group_name?></a>
|
47 |
</li>
|
48 |
<?php endforeach; ?>
|
app/design/frontend/default/default/template/strapp/multitab/product/view/tabs.phtml
CHANGED
@@ -6,24 +6,25 @@
|
|
6 |
* @package Strapp_Multitab
|
7 |
*/
|
8 |
?>
|
|
|
9 |
<?php
|
10 |
$_helper = $this->helper('catalog/output');
|
11 |
$_product= Mage::registry('current_product');
|
12 |
?>
|
13 |
-
<ul class="product-tabs">
|
14 |
-
<li id="
|
15 |
<a href="#">Description</a></li>
|
16 |
</li>
|
17 |
<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes')->setTemplate('strapp/multitab/product/view/attributesheader.phtml')->toHtml(); ?>
|
18 |
-
<li id="
|
19 |
<a href="#">Product Tags</a>
|
20 |
</li>
|
21 |
</ul>
|
22 |
-
<div class="product-tabs-content" id="
|
23 |
<div class="std"><?php echo $_product->getDescription(); ?></div>
|
24 |
</div>
|
25 |
<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes')->setTemplate('strapp/multitab/product/view/attributescontent.phtml')->toHtml(); ?>
|
26 |
-
<div class="product-tabs-content" id="
|
27 |
<?php echo $this->getLayout()->createBlock('tag/product_list')->setTemplate('tag/list.phtml')->toHtml(); ?>
|
28 |
</div>
|
29 |
<script type="text/javascript">
|
@@ -57,6 +58,6 @@ Varien.Tabs.prototype = {
|
|
57 |
});
|
58 |
}
|
59 |
}
|
60 |
-
new Varien.Tabs('.product-tabs');
|
61 |
//]]>
|
62 |
</script>
|
6 |
* @package Strapp_Multitab
|
7 |
*/
|
8 |
?>
|
9 |
+
<link media="all" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)?>skin/frontend/default/default/css/strapp-multitab.css" type="text/css" rel="stylesheet" />
|
10 |
<?php
|
11 |
$_helper = $this->helper('catalog/output');
|
12 |
$_product= Mage::registry('current_product');
|
13 |
?>
|
14 |
+
<ul class="strapp-product-tabs">
|
15 |
+
<li id="strapp_product_tabs_description" class="active first">
|
16 |
<a href="#">Description</a></li>
|
17 |
</li>
|
18 |
<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes')->setTemplate('strapp/multitab/product/view/attributesheader.phtml')->toHtml(); ?>
|
19 |
+
<li id="strapp_product_tabs_product.tags" class="last">
|
20 |
<a href="#">Product Tags</a>
|
21 |
</li>
|
22 |
</ul>
|
23 |
+
<div class="strapp-product-tabs-content" id="strapp_product_tabs_description_contents">
|
24 |
<div class="std"><?php echo $_product->getDescription(); ?></div>
|
25 |
</div>
|
26 |
<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes')->setTemplate('strapp/multitab/product/view/attributescontent.phtml')->toHtml(); ?>
|
27 |
+
<div class="strapp-product-tabs-content" id="strapp_product_tabs_product.tags_contents">
|
28 |
<?php echo $this->getLayout()->createBlock('tag/product_list')->setTemplate('tag/list.phtml')->toHtml(); ?>
|
29 |
</div>
|
30 |
<script type="text/javascript">
|
58 |
});
|
59 |
}
|
60 |
}
|
61 |
+
new Varien.Tabs('.strapp-product-tabs');
|
62 |
//]]>
|
63 |
</script>
|
app/design/frontend/default/default/template/strapp/multitab/product/view/tabs.phtml~
CHANGED
@@ -1,21 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
$_helper = $this->helper('catalog/output');
|
3 |
$_product= Mage::registry('current_product');
|
4 |
?>
|
5 |
-
<ul class="product-tabs">
|
6 |
-
<li id="
|
7 |
<a href="#">Description</a></li>
|
8 |
</li>
|
9 |
<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes')->setTemplate('strapp/multitab/product/view/attributesheader.phtml')->toHtml(); ?>
|
10 |
-
<li id="
|
11 |
<a href="#">Product Tags</a>
|
12 |
</li>
|
13 |
</ul>
|
14 |
-
<div class="product-tabs-content" id="
|
15 |
<div class="std"><?php echo $_product->getDescription(); ?></div>
|
16 |
</div>
|
17 |
<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes')->setTemplate('strapp/multitab/product/view/attributescontent.phtml')->toHtml(); ?>
|
18 |
-
<div class="product-tabs-content" id="
|
19 |
<?php echo $this->getLayout()->createBlock('tag/product_list')->setTemplate('tag/list.phtml')->toHtml(); ?>
|
20 |
</div>
|
21 |
<script type="text/javascript">
|
@@ -49,6 +58,6 @@ Varien.Tabs.prototype = {
|
|
49 |
});
|
50 |
}
|
51 |
}
|
52 |
-
new Varien.Tabs('.product-tabs');
|
53 |
//]]>
|
54 |
</script>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Strapp Multitab Module
|
4 |
+
*
|
5 |
+
* @category Strapp
|
6 |
+
* @package Strapp_Multitab
|
7 |
+
*/
|
8 |
+
?>
|
9 |
+
<link media="all" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)?>skin/frontend/default/default/css/strapp-multitab.css" type="text/css" rel="stylesheet" />
|
10 |
<?php
|
11 |
$_helper = $this->helper('catalog/output');
|
12 |
$_product= Mage::registry('current_product');
|
13 |
?>
|
14 |
+
<ul class="strapp-product-tabs">
|
15 |
+
<li id="strapp_product_tabs_description" class="active first">
|
16 |
<a href="#">Description</a></li>
|
17 |
</li>
|
18 |
<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes')->setTemplate('strapp/multitab/product/view/attributesheader.phtml')->toHtml(); ?>
|
19 |
+
<li id="strapp_product_tabs_product.tags" class="last">
|
20 |
<a href="#">Product Tags</a>
|
21 |
</li>
|
22 |
</ul>
|
23 |
+
<div class="strapp-product-tabs-content" id="strapp_product_tabs_description_contents">
|
24 |
<div class="std"><?php echo $_product->getDescription(); ?></div>
|
25 |
</div>
|
26 |
<?php echo $this->getLayout()->createBlock('catalog/product_view_attributes')->setTemplate('strapp/multitab/product/view/attributescontent.phtml')->toHtml(); ?>
|
27 |
+
<div class="strapp-product-tabs-content" id="strapp_product_tabs_product.tags_contents">
|
28 |
<?php echo $this->getLayout()->createBlock('tag/product_list')->setTemplate('tag/list.phtml')->toHtml(); ?>
|
29 |
</div>
|
30 |
<script type="text/javascript">
|
58 |
});
|
59 |
}
|
60 |
}
|
61 |
+
new Varien.Tabs('.strapp-product-tabs');
|
62 |
//]]>
|
63 |
</script>
|
package.xml
CHANGED
@@ -1,19 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>strapp_multitab_product_view</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>StrApp Multitab Product View Community Module</summary>
|
10 |
<description>A lot of products have a lot of information that needs to be displayed for e.g. a smart phone would have information about the features, battery, OS, processor, maintenance, etc. And each of these would have a lot of details. For a good user experience, having this information in tabs would be very helpful.Magento doesn't provide information to be displayed as tabs by default, in the product description page. With the Multi tab extension, you can very easily have any number of tabs for your product.</description>
|
11 |
-
<notes>
|
12 |
-
"Fatal error: Class 'Strapp_Multitab_Helper_Data' not found"</notes>
|
13 |
<authors><author><name>StrApp</name><user>strviv</user><email>strappvivek@gmail.com</email></author></authors>
|
14 |
-
<date>2014-
|
15 |
-
<time>
|
16 |
-
<contents><target name="magelocal"><dir name="Strapp"><dir name="Multitab"><dir name="Helper"><file name="Data.php" hash="1baec414d03b3c38a1dd0df57c2e588b"/><file name="Data.php~" hash="1baec414d03b3c38a1dd0df57c2e588b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="70169be8e9c2b26abafea29a89d7a572"/><file name="adminhtml.xml~" hash="70169be8e9c2b26abafea29a89d7a572"/><file name="config.xml" hash="df558a9004473652dd5b0a8800fbc168"/><file name="config.xml~" hash="df558a9004473652dd5b0a8800fbc168"/><file name="system.xml" hash="22586cd46cd6c363dcac0ad770ae4681"/><file name="system.xml~" hash="22586cd46cd6c363dcac0ad770ae4681"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Strapp_Multitab.xml" hash="c90c6162d4830da765df915f753dd2c6"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="strapp_multitabdisplay.xml" hash="5800455c2e78eaea3474fc0b6c6637f0"/></dir><dir name="template"><dir name="strapp"><file name="attributescontent.phtml~" hash="fd5aab3805f047fa3b0ae484af9e33a3"/><file name="attributesheader.phtml~" hash="5b258c4bce613c4bae2af30de86957e0"/><dir name="multitab"><file name="list.phtml~" hash="4173f87b07c8b168aa48f9910c77962b"/><dir name="product"><dir name="view"><file name="attributescontent.phtml" hash="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>5.5.6</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>strapp_multitab_product_view</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>StrApp Multitab Product View Community Module</summary>
|
10 |
<description>A lot of products have a lot of information that needs to be displayed for e.g. a smart phone would have information about the features, battery, OS, processor, maintenance, etc. And each of these would have a lot of details. For a good user experience, having this information in tabs would be very helpful.Magento doesn't provide information to be displayed as tabs by default, in the product description page. With the Multi tab extension, you can very easily have any number of tabs for your product.</description>
|
11 |
+
<notes>A lot of products have a lot of information that needs to be displayed for e.g. a smart phone would have information about the features, battery, OS, processor, maintenance, etc. And each of these would have a lot of details. For a good user experience, having this information in tabs would be very helpful.Magento doesn't provide information to be displayed as tabs by default, in the product description page. With the Multi tab extension, you can very easily have any number of tabs for your product.</notes>
|
|
|
12 |
<authors><author><name>StrApp</name><user>strviv</user><email>strappvivek@gmail.com</email></author></authors>
|
13 |
+
<date>2014-02-04</date>
|
14 |
+
<time>05:52:22</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Strapp"><dir name="Multitab"><dir name="Helper"><file name="Data.php" hash="1baec414d03b3c38a1dd0df57c2e588b"/><file name="Data.php~" hash="1baec414d03b3c38a1dd0df57c2e588b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="70169be8e9c2b26abafea29a89d7a572"/><file name="adminhtml.xml~" hash="70169be8e9c2b26abafea29a89d7a572"/><file name="config.xml" hash="df558a9004473652dd5b0a8800fbc168"/><file name="config.xml~" hash="df558a9004473652dd5b0a8800fbc168"/><file name="system.xml" hash="22586cd46cd6c363dcac0ad770ae4681"/><file name="system.xml~" hash="22586cd46cd6c363dcac0ad770ae4681"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Strapp_Multitab.xml" hash="c90c6162d4830da765df915f753dd2c6"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="strapp_multitabdisplay.xml" hash="5800455c2e78eaea3474fc0b6c6637f0"/></dir><dir name="template"><dir name="strapp"><file name="attributescontent.phtml~" hash="fd5aab3805f047fa3b0ae484af9e33a3"/><file name="attributesheader.phtml~" hash="5b258c4bce613c4bae2af30de86957e0"/><dir name="multitab"><file name="list.phtml~" hash="4173f87b07c8b168aa48f9910c77962b"/><dir name="product"><dir name="view"><file name="attributescontent.phtml" hash="bf3ff8de97071af2b3b553e23c9c1d1e"/><file name="attributescontent.phtml~" hash="bf3ff8de97071af2b3b553e23c9c1d1e"/><file name="attributesheader.phtml" hash="819cd9a9e6a8756bd76c7ece7fd9b40a"/><file name="attributesheader.phtml~" hash="819cd9a9e6a8756bd76c7ece7fd9b40a"/><file name="tabs.phtml" hash="934f478c5712a5fb175a9697787a05be"/><file name="tabs.phtml~" hash="934f478c5712a5fb175a9697787a05be"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="strapp-multitab.css" hash="0f7b91cdadcf10392d4c8f196ee653a9"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>5.5.6</max></php></required></dependencies>
|
18 |
</package>
|
skin/frontend/default/default/css/strapp-multitab.css
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*Styles for Multitab */
|
2 |
+
div.product-view ul.strapp-product-tabs
|
3 |
+
{
|
4 |
+
border-bottom: 2px solid #DCDCDC;
|
5 |
+
margin-bottom: 0;
|
6 |
+
}
|
7 |
+
|
8 |
+
div.product-view ul.strapp-product-tabs li
|
9 |
+
{
|
10 |
+
background-color: #DCDCDC;
|
11 |
+
border-radius: 5px 5px 0 0;
|
12 |
+
display: inline-block;
|
13 |
+
float: none;
|
14 |
+
padding: 10px 15px;
|
15 |
+
}
|
16 |
+
|
17 |
+
div.product-view .strapp-product-tabs li > a
|
18 |
+
{
|
19 |
+
color: #000000;
|
20 |
+
font: 18px/1.25 helvetica,arial,sans-serif;
|
21 |
+
}
|
22 |
+
|
23 |
+
div.product-view .strapp-product-tabs-content
|
24 |
+
{
|
25 |
+
background-color: #FFFFFF;
|
26 |
+
margin-bottom: 25px;
|
27 |
+
padding: 25px 20px;
|
28 |
+
}
|
29 |
+
|
30 |
+
div.product-view .strapp-product-tabs li.active ,div.product-view .strapp-product-tabs li.active a:hover
|
31 |
+
{
|
32 |
+
background-color: #666666;
|
33 |
+
}
|