Version Notes
Magento Easy Tabs Community Module
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | magento_easy_tabs |
| Version | 1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0 to 1.1
- app/code/community/TM/EasyTabs/etc/adminhtml.xml +23 -0
- app/code/community/TM/EasyTabs/etc/config.xml +1 -24
- app/code/community/TM/EasyTabs/etc/system.xml +0 -9
- app/design/frontend/default/default/layout/easytabs.xml +2 -5
- app/design/frontend/default/default/template/easytabs/additional.phtml +29 -0
- app/design/frontend/default/default/template/easytabs/attributes.phtml +53 -0
- app/design/frontend/default/default/template/easytabs/catalogproductcustomcms.phtml +5 -0
- app/design/frontend/default/default/template/easytabs/catalogproductoption.phtml +0 -9
- app/design/frontend/default/default/template/easytabs/catalogproducttags.phtml +22 -20
- app/design/frontend/default/default/template/easytabs/catalogproductview.phtml +30 -57
- app/design/frontend/default/default/template/easytabs/description.phtml +40 -0
- package.xml +4 -4
app/code/community/TM/EasyTabs/etc/adminhtml.xml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<config>
|
| 3 |
+
<acl>
|
| 4 |
+
<resources>
|
| 5 |
+
<admin>
|
| 6 |
+
<children>
|
| 7 |
+
<system>
|
| 8 |
+
<children>
|
| 9 |
+
<config>
|
| 10 |
+
<children>
|
| 11 |
+
<easy_tabs translate="title" module="easytabs">
|
| 12 |
+
<title>Easy Tabs Section</title>
|
| 13 |
+
<sort_order>60</sort_order>
|
| 14 |
+
</easy_tabs>
|
| 15 |
+
</children>
|
| 16 |
+
</config>
|
| 17 |
+
</children>
|
| 18 |
+
</system>
|
| 19 |
+
</children>
|
| 20 |
+
</admin>
|
| 21 |
+
</resources>
|
| 22 |
+
</acl>
|
| 23 |
+
</config>
|
app/code/community/TM/EasyTabs/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<TM_EasyTabs>
|
| 5 |
-
<version>1.
|
| 6 |
</TM_EasyTabs>
|
| 7 |
</modules>
|
| 8 |
<global>
|
|
@@ -51,7 +51,6 @@
|
|
| 51 |
<relatedtabbed>0</relatedtabbed>
|
| 52 |
<tagstabbed>0</tagstabbed>
|
| 53 |
<reviewtabbed>0</reviewtabbed>
|
| 54 |
-
<optiontabbed>0</optiontabbed>
|
| 55 |
</general>
|
| 56 |
<custom>
|
| 57 |
<customtab>0</customtab>
|
|
@@ -69,26 +68,4 @@
|
|
| 69 |
</customcms>
|
| 70 |
</easytabs>
|
| 71 |
</default>
|
| 72 |
-
<adminhtml>
|
| 73 |
-
<acl>
|
| 74 |
-
<resources>
|
| 75 |
-
<admin>
|
| 76 |
-
<children>
|
| 77 |
-
<system>
|
| 78 |
-
<children>
|
| 79 |
-
<config>
|
| 80 |
-
<children>
|
| 81 |
-
<easy_tabs translate="title" module="easytabs">
|
| 82 |
-
<title>Easy Tabs Section</title>
|
| 83 |
-
<sort_order>60</sort_order>
|
| 84 |
-
</easy_tabs>
|
| 85 |
-
</children>
|
| 86 |
-
</config>
|
| 87 |
-
</children>
|
| 88 |
-
</system>
|
| 89 |
-
</children>
|
| 90 |
-
</admin>
|
| 91 |
-
</resources>
|
| 92 |
-
</acl>
|
| 93 |
-
</adminhtml>
|
| 94 |
</config>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<TM_EasyTabs>
|
| 5 |
+
<version>1.1.0</version>
|
| 6 |
</TM_EasyTabs>
|
| 7 |
</modules>
|
| 8 |
<global>
|
| 51 |
<relatedtabbed>0</relatedtabbed>
|
| 52 |
<tagstabbed>0</tagstabbed>
|
| 53 |
<reviewtabbed>0</reviewtabbed>
|
|
|
|
| 54 |
</general>
|
| 55 |
<custom>
|
| 56 |
<customtab>0</customtab>
|
| 68 |
</customcms>
|
| 69 |
</easytabs>
|
| 70 |
</default>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
</config>
|
app/code/community/TM/EasyTabs/etc/system.xml
CHANGED
|
@@ -87,15 +87,6 @@
|
|
| 87 |
<show_in_website>1</show_in_website>
|
| 88 |
<show_in_store>1</show_in_store>
|
| 89 |
</reviewtabbed>
|
| 90 |
-
<optiontabbed translate="label">
|
| 91 |
-
<label>Enable product's attributes tab</label>
|
| 92 |
-
<frontend_type>select</frontend_type>
|
| 93 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 94 |
-
<sort_order>8</sort_order>
|
| 95 |
-
<show_in_default>1</show_in_default>
|
| 96 |
-
<show_in_website>1</show_in_website>
|
| 97 |
-
<show_in_store>1</show_in_store>
|
| 98 |
-
</optiontabbed>
|
| 99 |
</fields>
|
| 100 |
</general>
|
| 101 |
<custom translate="label">
|
| 87 |
<show_in_website>1</show_in_website>
|
| 88 |
<show_in_store>1</show_in_store>
|
| 89 |
</reviewtabbed>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
</fields>
|
| 91 |
</general>
|
| 92 |
<custom translate="label">
|
app/design/frontend/default/default/layout/easytabs.xml
CHANGED
|
@@ -12,7 +12,6 @@
|
|
| 12 |
<reference name="product.info">
|
| 13 |
<action method="unsetChild" ifconfig="easy_tabs/general/additionaltabbed"><name>additional</name></action>
|
| 14 |
<action method="unsetChild" ifconfig="easy_tabs/general/upsellproductstabbed"><name>upsell_products</name></action>
|
| 15 |
-
<!-- <action method="setTemplate" ifconfig="easy_tabs/general/descriptiontabbed"><template>easytabs/catalogproductview.phtml</template></action> -->
|
| 16 |
<action method="setTemplate"><template>easytabs/catalogproductview.phtml</template></action>
|
| 17 |
</reference>
|
| 18 |
|
|
@@ -23,11 +22,9 @@
|
|
| 23 |
<reference name="product.info.additional">
|
| 24 |
<action method="unsetChild" ifconfig="easy_tabs/general/tagstabbed"><name>product_tag_list</name></action>
|
| 25 |
<block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs">
|
| 26 |
-
|
| 27 |
<action method="setTemplate" ifconfig="easy_tabs/general/enabled"><template>easytabs/tabs.phtml</template></action>
|
| 28 |
-
<action method="addTab" translate="title" module="catalog" ifconfig="easy_tabs/general/descriptiontabbed"><alias>description_tabbed</alias><title>Product Description</title><block>catalog/product_view_description</block><template>
|
| 29 |
-
|
| 30 |
-
<action method="addTab" translate="title" module="catalog" ifconfig="easy_tabs/general/additionaltabbed"><alias>additional_tabbed</alias><title>Additional Information</title><block>catalog/product_view_attributes</block><template>catalog/product/view/attributes.phtml</template></action>
|
| 31 |
<action method="addTab" translate="title" module="catalog" ifconfig="easy_tabs/general/upsellproductstabbed"><alias>upsell_products_tabbed</alias><title>We Also Recommend</title><block>catalog/product_list_upsell</block><template>catalog/product/list/upsell.phtml</template></action>
|
| 32 |
<action method="addTab" translate="title" module="catalog" ifconfig="easy_tabs/general/relatedtabbed"><alias>related_tabbed</alias><title>Related Products</title><block>catalog/product_list_related</block><template>easytabs/catalogproductrelated.phtml</template></action>
|
| 33 |
<action method="addTab" translate="title" module="tag" ifconfig="easy_tabs/general/tagstabbed"><alias>tags_tabbed</alias><title>Product Tags</title><block>tag/product_list</block><template>easytabs/catalogproducttags.phtml</template></action>
|
| 12 |
<reference name="product.info">
|
| 13 |
<action method="unsetChild" ifconfig="easy_tabs/general/additionaltabbed"><name>additional</name></action>
|
| 14 |
<action method="unsetChild" ifconfig="easy_tabs/general/upsellproductstabbed"><name>upsell_products</name></action>
|
|
|
|
| 15 |
<action method="setTemplate"><template>easytabs/catalogproductview.phtml</template></action>
|
| 16 |
</reference>
|
| 17 |
|
| 22 |
<reference name="product.info.additional">
|
| 23 |
<action method="unsetChild" ifconfig="easy_tabs/general/tagstabbed"><name>product_tag_list</name></action>
|
| 24 |
<block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs">
|
|
|
|
| 25 |
<action method="setTemplate" ifconfig="easy_tabs/general/enabled"><template>easytabs/tabs.phtml</template></action>
|
| 26 |
+
<action method="addTab" translate="title" module="catalog" ifconfig="easy_tabs/general/descriptiontabbed"><alias>description_tabbed</alias><title>Product Description</title><block>catalog/product_view_description</block><template>easytabs/description.phtml</template></action>
|
| 27 |
+
<action method="addTab" translate="title" module="catalog" ifconfig="easy_tabs/general/additionaltabbed"><alias>additional_tabbed</alias><title>Additional Information</title><block>catalog/product_view_attributes</block><template>easytabs/attributes.phtml</template></action>
|
|
|
|
| 28 |
<action method="addTab" translate="title" module="catalog" ifconfig="easy_tabs/general/upsellproductstabbed"><alias>upsell_products_tabbed</alias><title>We Also Recommend</title><block>catalog/product_list_upsell</block><template>catalog/product/list/upsell.phtml</template></action>
|
| 29 |
<action method="addTab" translate="title" module="catalog" ifconfig="easy_tabs/general/relatedtabbed"><alias>related_tabbed</alias><title>Related Products</title><block>catalog/product_list_related</block><template>easytabs/catalogproductrelated.phtml</template></action>
|
| 30 |
<action method="addTab" translate="title" module="tag" ifconfig="easy_tabs/general/tagstabbed"><alias>tags_tabbed</alias><title>Product Tags</title><block>tag/product_list</block><template>easytabs/catalogproducttags.phtml</template></action>
|
app/design/frontend/default/default/template/easytabs/additional.phtml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* DISCLAIMER
|
| 16 |
+
*
|
| 17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 18 |
+
* versions in the future. If you wish to customize Magento for your
|
| 19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
+
*
|
| 21 |
+
* @category design
|
| 22 |
+
* @package base_default
|
| 23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
?>
|
| 27 |
+
<?php foreach ($this->getChildHtmlList() as $_html): ?>
|
| 28 |
+
<?php echo $_html ?>
|
| 29 |
+
<?php endforeach; ?>
|
app/design/frontend/default/default/template/easytabs/attributes.phtml
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* DISCLAIMER
|
| 16 |
+
*
|
| 17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 18 |
+
* versions in the future. If you wish to customize Magento for your
|
| 19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
+
*
|
| 21 |
+
* @category design
|
| 22 |
+
* @package base_default
|
| 23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* Product additional attributes template
|
| 29 |
+
*
|
| 30 |
+
* @see Mage_Catalog_Block_Product_View_Attributes
|
| 31 |
+
*/
|
| 32 |
+
?>
|
| 33 |
+
<?php
|
| 34 |
+
$_helper = $this->helper('catalog/output');
|
| 35 |
+
$_product = $this->getProduct()
|
| 36 |
+
?>
|
| 37 |
+
<?php if($_additional = $this->getAdditionalData()): ?>
|
| 38 |
+
<div class="box-collateral box-additional">
|
| 39 |
+
<table class="data-table" id="product-attribute-specs-table">
|
| 40 |
+
<col width="25%" />
|
| 41 |
+
<col />
|
| 42 |
+
<tbody>
|
| 43 |
+
<?php foreach ($_additional as $_data): ?>
|
| 44 |
+
<tr>
|
| 45 |
+
<th class="label"><?php echo $this->htmlEscape($this->__($_data['label'])) ?></th>
|
| 46 |
+
<td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
|
| 47 |
+
</tr>
|
| 48 |
+
<?php endforeach; ?>
|
| 49 |
+
</tbody>
|
| 50 |
+
</table>
|
| 51 |
+
<script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
|
| 52 |
+
</div>
|
| 53 |
+
<?php endif;?>
|
app/design/frontend/default/default/template/easytabs/catalogproductcustomcms.phtml
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
if($cmsblockid = Mage::getStoreConfig('easy_tabs/custom/customtabidcms')){
|
| 3 |
+
echo '<div class="product-specs">'.$this->getLayout()->createBlock('cms/block')->setBlockId('$cmsblockid')->toHtml().'</div>';
|
| 4 |
+
}
|
| 5 |
+
?>
|
app/design/frontend/default/default/template/easytabs/catalogproductoption.phtml
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
$_product = $this->getProduct();
|
| 3 |
-
?>
|
| 4 |
-
<div class="product-specs">
|
| 5 |
-
<?php
|
| 6 |
-
echo $this->getLayout()->getBlock('product.info.options.wrapper')->toHtml();
|
| 7 |
-
echo $this->getLayout()->getBlock('product.info.options.wrapper.bottom')->toHtml();
|
| 8 |
-
?>
|
| 9 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/easytabs/catalogproducttags.phtml
CHANGED
|
@@ -18,29 +18,33 @@
|
|
| 18 |
* versions in the future. If you wish to customize Magento for your
|
| 19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
*
|
| 21 |
-
* @category
|
| 22 |
-
* @package
|
| 23 |
-
* @copyright
|
| 24 |
-
* @license
|
| 25 |
*/
|
| 26 |
?>
|
|
|
|
|
|
|
| 27 |
<?php if( $this->getCount() ): ?>
|
| 28 |
-
<
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
<?php endif; ?>
|
| 36 |
-
<
|
| 37 |
-
<div class="add
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
|
|
|
|
|
| 41 |
</div>
|
| 42 |
-
<fieldset><button type="button" class="form-button-alt" onclick="submitTagForm()"><span><?php echo $this->__('Add Tags') ?></span></button></fieldset>
|
| 43 |
</form>
|
|
|
|
| 44 |
<script type="text/javascript">
|
| 45 |
//<![CDATA[
|
| 46 |
var addTagFormJs = new VarienForm('addTagForm');
|
|
@@ -51,6 +55,4 @@
|
|
| 51 |
}
|
| 52 |
//]]>
|
| 53 |
</script>
|
| 54 |
-
|
| 55 |
-
<small><?php echo $this->__("Use spaces to separate tags. Use single quotes (') for phrases.") ?></small>
|
| 56 |
-
</div>
|
| 18 |
* versions in the future. If you wish to customize Magento for your
|
| 19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
*
|
| 21 |
+
* @category design
|
| 22 |
+
* @package base_default
|
| 23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
*/
|
| 26 |
?>
|
| 27 |
+
<div class="box-collateral box-tags">
|
| 28 |
+
<?php echo $this->getChildHtml('list_before')?>
|
| 29 |
<?php if( $this->getCount() ): ?>
|
| 30 |
+
<h3><?php echo $this->__('Other people marked this product with these tags:') ?></h3>
|
| 31 |
+
<ul class="product-tags">
|
| 32 |
+
<?php $_iterator = 0; ?>
|
| 33 |
+
<?php foreach( $this->getTags() as $_tag ): ?>
|
| 34 |
+
<li<?php if( 1 == ++$_iterator && $this->getCount() != 1 ): ?> class="first"<?php elseif($_iterator == $this->getCount()): ?> class="last"<?php endif; ?>><a href="<?php echo $_tag->getTaggedProductsUrl() ?>"><?php echo $this->htmlEscape($_tag->getName()) ?></a> (<?php echo $_tag->getPopularity() ?>)</li>
|
| 35 |
+
<?php endforeach; ?>
|
| 36 |
+
</ul>
|
| 37 |
<?php endif; ?>
|
| 38 |
+
<form id="addTagForm" action="<?php echo $this->getFormAction(); ?>" method="get">
|
| 39 |
+
<div class="form-add">
|
| 40 |
+
<label for="productTagName"><?php echo $this->__('Add Your Tags:') ?></label>
|
| 41 |
+
<div class="input-box">
|
| 42 |
+
<input type="text" class="input-text required-entry" name="productTagName" id="productTagName" />
|
| 43 |
+
</div>
|
| 44 |
+
<button type="button" title="<?php echo $this->__('Add Tags') ?>" class="button" onclick="submitTagForm()"><span><span><?php echo $this->__('Add Tags') ?></span></span></button>
|
| 45 |
</div>
|
|
|
|
| 46 |
</form>
|
| 47 |
+
<p class="note"><?php echo $this->__("Use spaces to separate tags. Use single quotes (') for phrases.") ?></p>
|
| 48 |
<script type="text/javascript">
|
| 49 |
//<![CDATA[
|
| 50 |
var addTagFormJs = new VarienForm('addTagForm');
|
| 55 |
}
|
| 56 |
//]]>
|
| 57 |
</script>
|
| 58 |
+
</div>
|
|
|
|
|
|
app/design/frontend/default/default/template/easytabs/catalogproductview.phtml
CHANGED
|
@@ -18,10 +18,10 @@
|
|
| 18 |
* versions in the future. If you wish to customize Magento for your
|
| 19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
*
|
| 21 |
-
* @category
|
| 22 |
-
* @package
|
| 23 |
-
* @copyright
|
| 24 |
-
* @license
|
| 25 |
*/
|
| 26 |
|
| 27 |
/**
|
|
@@ -39,41 +39,32 @@
|
|
| 39 |
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
|
| 40 |
</script>
|
| 41 |
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
|
| 42 |
-
<div class="product-
|
| 43 |
<div class="product-essential">
|
| 44 |
<form action="<?php echo $this->getAddToCartUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
</div>
|
| 49 |
|
| 50 |
<div class="product-shop">
|
| 51 |
-
<
|
| 52 |
-
|
| 53 |
-
</
|
| 54 |
|
| 55 |
<?php if ($this->canEmailToFriend()): ?>
|
| 56 |
-
<a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a
|
| 57 |
<?php endif; ?>
|
| 58 |
|
| 59 |
<?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
|
| 60 |
-
|
| 61 |
-
<fieldset class="no-display">
|
| 62 |
-
<input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
|
| 63 |
-
<input type="hidden" name="related_product" id="related-products-field" value="" />
|
| 64 |
-
</fieldset>
|
| 65 |
-
|
| 66 |
<?php echo $this->getChildHtml('alert_urls') ?>
|
| 67 |
<?php echo $this->getChildHtml('product_type_data') ?>
|
| 68 |
<?php echo $this->getTierPriceHtml() ?>
|
| 69 |
|
| 70 |
<?php if (!$this->hasOptions()):?>
|
| 71 |
-
<div class="add-to-
|
| 72 |
<?php if($_product->isSaleable()): ?>
|
| 73 |
<?php echo $this->getChildHtml('addtocart') ?>
|
| 74 |
-
<?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
|
| 75 |
-
<span class="add-or"><?php echo $this->__('OR') ?></span>
|
| 76 |
-
<?php endif; ?>
|
| 77 |
<?php endif; ?>
|
| 78 |
<?php echo $this->getChildHtml('addto') ?>
|
| 79 |
</div>
|
|
@@ -81,66 +72,48 @@
|
|
| 81 |
<?php echo $this->getChildHtml('addto') ?>
|
| 82 |
<?php endif; ?>
|
| 83 |
|
| 84 |
-
<div class="divider"></div>
|
| 85 |
-
|
| 86 |
<?php if ($_product->getShortDescription()):?>
|
| 87 |
-
<
|
| 88 |
-
|
|
|
|
|
|
|
| 89 |
<?php endif;?>
|
| 90 |
|
| 91 |
<?php echo $this->getChildHtml('other');?>
|
| 92 |
|
| 93 |
-
<?php if ($_product->isSaleable() && $this->hasOptions()
|
| 94 |
<?php echo $this->getChildChildHtml('container1', '', true, true) ?>
|
| 95 |
<?php endif;?>
|
| 96 |
|
|
|
|
| 97 |
|
| 98 |
-
|
|
|
|
| 99 |
</div>
|
| 100 |
-
|
| 101 |
-
|
|
|
|
| 102 |
<?php echo $this->getChildChildHtml('container2', '', true, true) ?>
|
| 103 |
<?php endif;?>
|
| 104 |
-
|
| 105 |
<script type="text/javascript">
|
|
|
|
| 106 |
var productAddToCartForm = new VarienForm('product_addtocart_form');
|
| 107 |
productAddToCartForm.submit = function(){
|
| 108 |
if (this.validator.validate()) {
|
| 109 |
this.form.submit();
|
| 110 |
}
|
| 111 |
}.bind(productAddToCartForm);
|
|
|
|
| 112 |
</script>
|
| 113 |
-
<?php if (Mage::getStoreConfig('easy_tabs/general/optiontabbed') != 1){ ?>
|
| 114 |
-
</form>
|
| 115 |
-
<?php }?>
|
| 116 |
</div>
|
| 117 |
-
|
| 118 |
<div class="product-collateral">
|
| 119 |
-
|
| 120 |
<?php if (!Mage::getStoreConfig('easy_tabs/general/descriptiontabbed')):?>
|
| 121 |
-
|
| 122 |
-
<div class="collateral-box">
|
| 123 |
-
<div class="head">
|
| 124 |
-
<h4><?php echo $this->__('Product Description') ?></h4>
|
| 125 |
-
</div>
|
| 126 |
-
<?php echo $_description ?>
|
| 127 |
-
</div>
|
| 128 |
-
<?php endif;?>
|
| 129 |
-
<?php endif;?>
|
| 130 |
-
|
| 131 |
-
<?php if ($_additional = $this->getChildHtml('additional')):?>
|
| 132 |
-
<div class="collateral-box">
|
| 133 |
-
<div class="head">
|
| 134 |
-
<h4><?php echo $this->__('Additional Information') ?></h4>
|
| 135 |
-
</div>
|
| 136 |
-
<?php echo $_additional ?>
|
| 137 |
-
</div>
|
| 138 |
<?php endif;?>
|
|
|
|
| 139 |
<?php echo $this->getChildHtml('upsell_products') ?>
|
| 140 |
<?php echo $this->getChildHtml('product_additional_data') ?>
|
| 141 |
-
|
| 142 |
</div>
|
| 143 |
-
<?php if (Mage::getStoreConfig('easy_tabs/general/optiontabbed') == 1){ ?>
|
| 144 |
-
</form>
|
| 145 |
-
<?php }?>
|
| 146 |
</div>
|
| 18 |
* versions in the future. If you wish to customize Magento for your
|
| 19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
*
|
| 21 |
+
* @category design
|
| 22 |
+
* @package base_default
|
| 23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
*/
|
| 26 |
|
| 27 |
/**
|
| 39 |
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
|
| 40 |
</script>
|
| 41 |
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
|
| 42 |
+
<div class="product-view">
|
| 43 |
<div class="product-essential">
|
| 44 |
<form action="<?php echo $this->getAddToCartUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
|
| 45 |
+
<div class="no-display">
|
| 46 |
+
<input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
|
| 47 |
+
<input type="hidden" name="related_product" id="related-products-field" value="" />
|
| 48 |
</div>
|
| 49 |
|
| 50 |
<div class="product-shop">
|
| 51 |
+
<div class="product-name">
|
| 52 |
+
<h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
|
| 53 |
+
</div>
|
| 54 |
|
| 55 |
<?php if ($this->canEmailToFriend()): ?>
|
| 56 |
+
<p class="email-friend"><a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a></p>
|
| 57 |
<?php endif; ?>
|
| 58 |
|
| 59 |
<?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
<?php echo $this->getChildHtml('alert_urls') ?>
|
| 61 |
<?php echo $this->getChildHtml('product_type_data') ?>
|
| 62 |
<?php echo $this->getTierPriceHtml() ?>
|
| 63 |
|
| 64 |
<?php if (!$this->hasOptions()):?>
|
| 65 |
+
<div class="add-to-box">
|
| 66 |
<?php if($_product->isSaleable()): ?>
|
| 67 |
<?php echo $this->getChildHtml('addtocart') ?>
|
|
|
|
|
|
|
|
|
|
| 68 |
<?php endif; ?>
|
| 69 |
<?php echo $this->getChildHtml('addto') ?>
|
| 70 |
</div>
|
| 72 |
<?php echo $this->getChildHtml('addto') ?>
|
| 73 |
<?php endif; ?>
|
| 74 |
|
|
|
|
|
|
|
| 75 |
<?php if ($_product->getShortDescription()):?>
|
| 76 |
+
<div class="short-description">
|
| 77 |
+
<h2><?php echo $this->__('Quick Overview') ?></h2>
|
| 78 |
+
<div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
|
| 79 |
+
</div>
|
| 80 |
<?php endif;?>
|
| 81 |
|
| 82 |
<?php echo $this->getChildHtml('other');?>
|
| 83 |
|
| 84 |
+
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
|
| 85 |
<?php echo $this->getChildChildHtml('container1', '', true, true) ?>
|
| 86 |
<?php endif;?>
|
| 87 |
|
| 88 |
+
</div>
|
| 89 |
|
| 90 |
+
<div class="product-img-box">
|
| 91 |
+
<?php echo $this->getChildHtml('media') ?>
|
| 92 |
</div>
|
| 93 |
+
|
| 94 |
+
<div class="clearer"></div>
|
| 95 |
+
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
|
| 96 |
<?php echo $this->getChildChildHtml('container2', '', true, true) ?>
|
| 97 |
<?php endif;?>
|
| 98 |
+
</form>
|
| 99 |
<script type="text/javascript">
|
| 100 |
+
//<![CDATA[
|
| 101 |
var productAddToCartForm = new VarienForm('product_addtocart_form');
|
| 102 |
productAddToCartForm.submit = function(){
|
| 103 |
if (this.validator.validate()) {
|
| 104 |
this.form.submit();
|
| 105 |
}
|
| 106 |
}.bind(productAddToCartForm);
|
| 107 |
+
//]]>
|
| 108 |
</script>
|
|
|
|
|
|
|
|
|
|
| 109 |
</div>
|
| 110 |
+
|
| 111 |
<div class="product-collateral">
|
|
|
|
| 112 |
<?php if (!Mage::getStoreConfig('easy_tabs/general/descriptiontabbed')):?>
|
| 113 |
+
<?php echo $this->getChildHtml('description') ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
<?php endif;?>
|
| 115 |
+
<?php echo $this->getChildHtml('additional') ?>
|
| 116 |
<?php echo $this->getChildHtml('upsell_products') ?>
|
| 117 |
<?php echo $this->getChildHtml('product_additional_data') ?>
|
|
|
|
| 118 |
</div>
|
|
|
|
|
|
|
|
|
|
| 119 |
</div>
|
app/design/frontend/default/default/template/easytabs/description.phtml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* DISCLAIMER
|
| 16 |
+
*
|
| 17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 18 |
+
* versions in the future. If you wish to customize Magento for your
|
| 19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
+
*
|
| 21 |
+
* @category design
|
| 22 |
+
* @package base_default
|
| 23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
| 24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* Product description template
|
| 29 |
+
*
|
| 30 |
+
* @see Mage_Catalog_Block_Product_View_Description
|
| 31 |
+
*/
|
| 32 |
+
?>
|
| 33 |
+
<?php $_description = $this->getProduct()->getDescription(); ?>
|
| 34 |
+
<?php if ($_description): ?>
|
| 35 |
+
<div class="box-collateral box-description">
|
| 36 |
+
<div class="std">
|
| 37 |
+
<?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), nl2br($_description), 'description') ?>
|
| 38 |
+
</div>
|
| 39 |
+
</div>
|
| 40 |
+
<?php endif; ?>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>magento_easy_tabs</name>
|
| 4 |
-
<version>1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://creativecommons.org/licenses/by/3.0/">Creative Commons License</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -14,9 +14,9 @@
|
|
| 14 |
4. Enjoy!</description>
|
| 15 |
<notes>Magento Easy Tabs Community Module</notes>
|
| 16 |
<authors><author><name>TemplatesMaster</name><user>auto-converted</user><email>support@templates-master.com</email></author></authors>
|
| 17 |
-
<date>2010-
|
| 18 |
-
<time>
|
| 19 |
-
<contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="easytabs.css" hash="0737634b9619e21681cfbc15461b56bc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="easytabs.xml" hash="
|
| 20 |
<compatible/>
|
| 21 |
<dependencies/>
|
| 22 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>magento_easy_tabs</name>
|
| 4 |
+
<version>1.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://creativecommons.org/licenses/by/3.0/">Creative Commons License</license>
|
| 7 |
<channel>community</channel>
|
| 14 |
4. Enjoy!</description>
|
| 15 |
<notes>Magento Easy Tabs Community Module</notes>
|
| 16 |
<authors><author><name>TemplatesMaster</name><user>auto-converted</user><email>support@templates-master.com</email></author></authors>
|
| 17 |
+
<date>2010-03-19</date>
|
| 18 |
+
<time>17:01:18</time>
|
| 19 |
+
<contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="easytabs.css" hash="0737634b9619e21681cfbc15461b56bc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="easytabs.xml" hash="4c5c3f1b9b8110cfe048891fa594138b"/></dir><dir name="template"><dir name="easytabs"><file name="additional.phtml" hash="ca6c8cba0c1bb523d95e14eabd999e51"/><file name="attributes.phtml" hash="e8f0d67efb940c29797c264ab5835732"/><file name="catalogproductcms.phtml" hash="48473fb7abc94ef48d3acef0d0954be2"/><file name="catalogproductcms1.phtml" hash="c5c479c9e61d07eb8ce0838b16788047"/><file name="catalogproductcms2.phtml" hash="5a2205f2503c515768d6c87ba3dc8b2f"/><file name="catalogproductcms3.phtml" hash="48f3e1462773ac60a4726082d64101e6"/><file name="catalogproductcms4.phtml" hash="651909fdd43ed4efad97751780b7719f"/><file name="catalogproductcustom.phtml" hash="4aec12543339fb2f481ae3953b8915dd"/><file name="catalogproductcustom1.phtml" hash="367f4e668f802825b9eb378d95e1da1a"/><file name="catalogproductcustom2.phtml" hash="c7960d7f420f29939c7a23d31712f3da"/><file name="catalogproductcustom3.phtml" hash="2aff7f48b222a0321c5dc4cc270da80f"/><file name="catalogproductcustom4.phtml" hash="5d72fff75ac92cf871322c7aa055ced3"/><file name="catalogproductcustomcms.phtml" hash="c406b912beceb3305ee2c7adadda9862"/><file name="catalogproductrelated.phtml" hash="feee59638d5b9e7d3856808db85fcc6a"/><file name="catalogproductreview.phtml" hash="d8f2181ce5429b76666b5162582c0110"/><file name="catalogproducttags.phtml" hash="1ecae7b01d97b786876d379a699a6b30"/><file name="catalogproductview.phtml" hash="dc5665e146bbb39b4cffabc174f5ecd4"/><file name="description.phtml" hash="ec8ba73c160d84f5aadbc5540b74f226"/><file name="tabs.phtml" hash="b04ce0155d2c91b7d7b5a10f0d27823a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TM_EasyTabs.xml" hash="ddaad9776e5841d8d9a29d769c1cdb72"/></dir></target><target name="magecommunity"><dir name="TM"><dir name="EasyTabs"><dir name="etc"><file name="adminhtml.xml" hash="00b995e4fd774af142ea7ff95c2fd140"/><file name="config.xml" hash="6e14cddf08aaada4a6132404c705acee"/><file name="system.xml" hash="0466cc957a9b0c5047a6618173b39c6e"/></dir><dir name="Helper"><file name="Data.php" hash="164bf2329ec0c7fe31fb3598daa2ec8c"/></dir></dir></dir></target></contents>
|
| 20 |
<compatible/>
|
| 21 |
<dependencies/>
|
| 22 |
</package>
|
