hidepricebywebline - Version 0.1.0

Version Notes

Hideprice by webline stable version release

Download this release

Release Info

Developer Weblineindia
Extension hidepricebywebline
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

Files changed (27) hide show
  1. app/code/local/Wli/Hideprice/Model/System/Config/Source/Dropdown/Values.php +17 -0
  2. app/code/local/Wli/Hideprice/Model/System/Config/Source/Dropdown/Values.php~ +17 -0
  3. app/code/local/Wli/Hideprice/etc/adminhtml.xml +22 -0
  4. app/code/local/Wli/Hideprice/etc/adminhtml.xml~ +22 -0
  5. app/code/local/Wli/Hideprice/etc/config.xml +47 -0
  6. app/code/local/Wli/Hideprice/etc/config.xml~ +47 -0
  7. app/code/local/Wli/Hideprice/etc/system.xml +50 -0
  8. app/code/local/Wli/Hideprice/etc/system.xml~ +50 -0
  9. app/design/frontend/base/default/layout/hideprice.xml +46 -0
  10. app/design/frontend/base/default/template/hideprice/catalog/product/compare/list.phtml +182 -0
  11. app/design/frontend/base/default/template/hideprice/catalog/product/compare/list.phtml~ +182 -0
  12. app/design/frontend/base/default/template/hideprice/catalog/product/list.phtml +149 -0
  13. app/design/frontend/base/default/template/hideprice/catalog/product/list.phtml~ +149 -0
  14. app/design/frontend/base/default/template/hideprice/catalog/product/price.phtml +480 -0
  15. app/design/frontend/base/default/template/hideprice/catalog/product/price.phtml~ +480 -0
  16. app/design/frontend/base/default/template/hideprice/catalog/product/view.phtml +170 -0
  17. app/design/frontend/base/default/template/hideprice/catalog/product/view.phtml~ +170 -0
  18. app/design/frontend/base/default/template/hideprice/catalog/product/view/addtocart.phtml +50 -0
  19. app/design/frontend/base/default/template/hideprice/catalog/product/view/addtocart.phtml~ +50 -0
  20. app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/column/new_default_list.phtml +56 -0
  21. app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/column/new_default_list.phtml~ +56 -0
  22. app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/column/new_images_list.phtml +47 -0
  23. app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/column/new_names_list.phtml +47 -0
  24. app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/content/new_grid.phtml +66 -0
  25. app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/content/new_grid.phtml~ +66 -0
  26. app/etc/modules/Wli_Hideprice.xml +9 -0
  27. package.xml +18 -0
app/code/local/Wli/Hideprice/Model/System/Config/Source/Dropdown/Values.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Wli_Hideprice_Model_System_Config_Source_Dropdown_Values
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array(
8
+ 'value' => 'Yes',
9
+ 'label' => 'Yes',
10
+ ),
11
+ array(
12
+ 'value' => 'No',
13
+ 'label' => 'No',
14
+ ),
15
+ );
16
+ }
17
+ }
app/code/local/Wli/Hideprice/Model/System/Config/Source/Dropdown/Values.php~ ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Wli_Hideprice_Model_System_Config_Source_Dropdown_Values
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array(
8
+ 'value' => 'Yes',
9
+ 'label' => 'Yes',
10
+ ),
11
+ array(
12
+ 'value' => 'No',
13
+ 'label' => 'No',
14
+ ),
15
+ );
16
+ }
17
+ }
app/code/local/Wli/Hideprice/etc/adminhtml.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <tab1>
12
+ <title>Tab #1</title> <!-- Used in resources tree -->
13
+ </tab1>
14
+ </children>
15
+ </config>
16
+ </children>
17
+ </system>
18
+ </children>
19
+ </admin>
20
+ </resources>
21
+ </acl>
22
+ </config>
app/code/local/Wli/Hideprice/etc/adminhtml.xml~ ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <tab1>
12
+ <title>Tab #1</title> <!-- Used in resources tree -->
13
+ </tab1>
14
+ </children>
15
+ </config>
16
+ </children>
17
+ </system>
18
+ </children>
19
+ </admin>
20
+ </resources>
21
+ </acl>
22
+ </config>
app/code/local/Wli/Hideprice/etc/config.xml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Wli_Hideprice>
5
+ <version>0.1.0</version>
6
+ </Wli_Hideprice>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <hideprice>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Wli_Hideprice</module>
14
+ <frontName>hideprice</frontName>
15
+ </args>
16
+ </hideprice>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <hideprice>
21
+ <file>hideprice.xml</file>
22
+ </hideprice>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <models>
28
+ <wli_hideprice>
29
+ <class>Wli_Hideprice_Model</class>
30
+ </wli_hideprice>
31
+ </models>
32
+ </global>
33
+ <default>
34
+ <tab1>
35
+ <general>
36
+ <text_field>Default value</text_field>
37
+ <textarea></textarea>
38
+ <dropdown>key2</dropdown>
39
+ <multiple_dropdown>key1,key2</multiple_dropdown>
40
+ <time>11,30,45</time>
41
+ <active>0</active>
42
+ <boolean>1</boolean>
43
+ <dependant_text_field>Default value</dependant_text_field>
44
+ </general>
45
+ </tab1>
46
+ </default>
47
+ </config>
app/code/local/Wli/Hideprice/etc/config.xml~ ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Wli_Hideprice>
5
+ <version>0.1.0</version>
6
+ </Wli_Hideprice>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <hideprice>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Wli_Hideprice</module>
14
+ <frontName>hideprice</frontName>
15
+ </args>
16
+ </hideprice>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <hideprice>
21
+ <file>hideprice.xml</file>
22
+ </hideprice>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <models>
28
+ <wli_hideprice>
29
+ <class>Wli_Hideprice_Model</class>
30
+ </wli_hideprice>
31
+ </models>
32
+ </global>
33
+ <default>
34
+ <tab1>
35
+ <general>
36
+ <text_field>Default value</text_field>
37
+ <textarea></textarea>
38
+ <dropdown>key2</dropdown>
39
+ <multiple_dropdown>key1,key2</multiple_dropdown>
40
+ <time>11,30,45</time>
41
+ <active>0</active>
42
+ <boolean>1</boolean>
43
+ <dependant_text_field>Default value</dependant_text_field>
44
+ </general>
45
+ </tab1>
46
+ </default>
47
+ </config>
app/code/local/Wli/Hideprice/etc/system.xml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <myconf translate="label">
5
+ <label>Webline Hide Price / Button</label>
6
+ <sort_order>150</sort_order>
7
+ </myconf>
8
+ </tabs>
9
+ <sections>
10
+ <tab1 translate="label" module="adminhtml">
11
+ <label>Hide Price and Add to Cart Button</label>
12
+ <tab>myconf</tab>
13
+ <sort_order>10</sort_order>
14
+ <show_in_default>1</show_in_default>
15
+ <show_in_website>1</show_in_website>
16
+ <show_in_store>1</show_in_store>
17
+ <groups>
18
+ <general translate="label comment">
19
+ <label>Hide / Show Configurations</label>
20
+ <sort_order>50</sort_order>
21
+ <show_in_default>1</show_in_default>
22
+ <show_in_website>1</show_in_website>
23
+ <show_in_store>1</show_in_store>
24
+ <fields>
25
+ <dropdown translate="label comment">
26
+ <label>Product Price:</label>
27
+ <comment>Select No to Hide the price in the front end. Default Yes.</comment>
28
+ <frontend_type>select</frontend_type>
29
+ <source_model>wli_hideprice/system_config_source_dropdown_values</source_model>
30
+ <sort_order>30</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>0</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ </dropdown>
35
+ <active translate="label comment">
36
+ <label>Add to Cart Button:</label>
37
+ <comment>Select No to Hide the add to cart button in the front end. Default Yes.</comment>
38
+ <frontend_type>select</frontend_type>
39
+ <sort_order>54</sort_order>
40
+ <source_model>wli_hideprice/system_config_source_dropdown_values</source_model>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ </active>
45
+ </fields>
46
+ </general>
47
+ </groups>
48
+ </tab1>
49
+ </sections>
50
+ </config>
app/code/local/Wli/Hideprice/etc/system.xml~ ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <myconf translate="label">
5
+ <label>Webline Hide Price / Button</label>
6
+ <sort_order>150</sort_order>
7
+ </myconf>
8
+ </tabs>
9
+ <sections>
10
+ <tab1 translate="label" module="adminhtml">
11
+ <label>Hide Price and Add to Cart Button</label>
12
+ <tab>myconf</tab>
13
+ <sort_order>10</sort_order>
14
+ <show_in_default>1</show_in_default>
15
+ <show_in_website>1</show_in_website>
16
+ <show_in_store>1</show_in_store>
17
+ <groups>
18
+ <general translate="label comment">
19
+ <label>Hide / Show Configurations</label>
20
+ <sort_order>50</sort_order>
21
+ <show_in_default>1</show_in_default>
22
+ <show_in_website>1</show_in_website>
23
+ <show_in_store>1</show_in_store>
24
+ <fields>
25
+ <dropdown translate="label comment">
26
+ <label>Product Price:</label>
27
+ <comment>Select No to Hide the price in the front end. Default Yes.</comment>
28
+ <frontend_type>select</frontend_type>
29
+ <source_model>wli_hideprice/system_config_source_dropdown_values</source_model>
30
+ <sort_order>30</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>0</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ </dropdown>
35
+ <active translate="label comment">
36
+ <label>Add to Cart Button:</label>
37
+ <comment>Select No to Hide the add to cart button in the front end. Default Yes.</comment>
38
+ <frontend_type>select</frontend_type>
39
+ <sort_order>54</sort_order>
40
+ <source_model>wli_hideprice/system_config_source_dropdown_values</source_model>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ </active>
45
+ </fields>
46
+ </general>
47
+ </groups>
48
+ </tab1>
49
+ </sections>
50
+ </config>
app/design/frontend/base/default/layout/hideprice.xml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <!-- Blocks for hiding the price of the product from the end user starts -->
4
+ <default>
5
+ <reference name="catalog_product_price_template">
6
+ <action method="addPriceBlockType"><type>simple</type><block>catalog/product_price</block><template>hideprice/catalog/product/price.phtml</template></action>
7
+ <action method="addPriceBlockType"><type>configurable</type><block>catalog/product_price</block><template>hideprice/catalog/product/price.phtml</template></action>
8
+ <action method="addPriceBlockType"><type>grouped</type><block>catalog/product_price</block><template>hideprice/catalog/product/price.phtml</template></action>
9
+ <action method="addPriceBlockType"><type>virtual</type><block>catalog/product_price</block><template>hideprice/catalog/product/price.phtml</template></action>
10
+ <action method="addPriceBlockType"><type>bundled</type><block>catalog/product_price</block><template>hideprice/catalog/product/price.phtml</template></action>
11
+ </reference>
12
+ </default>
13
+ <!-- Blocks for hiding the price of the product from the end user ends -->
14
+
15
+ <!-- Block for hiding the add to cart button from the grid starts -->
16
+ <catalog_category_default>
17
+ <reference name="product_list">
18
+ <action method="setTemplate">
19
+ <template>hideprice/catalog/product/list.phtml</template>
20
+ </action>
21
+ </reference>
22
+ </catalog_category_default>
23
+ <!-- Block for hiding the add to cart button from the grid ends -->
24
+
25
+ <!-- Block for hiding the add to cart button rom the Compare Product Popup starts -->
26
+ <catalog_product_compare_index>
27
+ <reference name="catalog.compare.list">
28
+ <action method="setTemplate">
29
+ <template>hideprice/catalog/product/compare/list.phtml</template>
30
+ </action>
31
+ </reference>
32
+ </catalog_product_compare_index>
33
+ <!-- Block for hiding the add to cart button from the Compare Product Popup ends -->
34
+
35
+ <!-- Block for hiding the add to cart button from the view page of the product start -->
36
+ <catalog_product_view>
37
+ <reference name="product.info">
38
+ <block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="hideprice/catalog/product/view/addtocart.phtml"/>
39
+ </reference>
40
+ </catalog_product_view>
41
+ <!-- Block for hiding the add to cart button from the view page of the product ends -->
42
+
43
+ <catalog_product_compare_index>
44
+ </catalog_product_compare_index>
45
+ </layout>
46
+
app/design/frontend/base/default/template/hideprice/catalog/product/compare/list.phtml ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ /* @var $this Mage_Catalog_Block_Product_Compare_List */
27
+ ?>
28
+ <div class="page-title title-buttons">
29
+ <h1><?php echo $this->__('Compare Products') ?></h1>
30
+ <a href="#" onclick="window.print(); return false;" class="link-print"><?php echo $this->__('Print This Page') ?></a>
31
+ </div>
32
+ <?php $_total=$this->getItems()->getSize() ?>
33
+ <?php if($_total): ?>
34
+ <table class="data-table compare-table" id="product_comparison">
35
+ <?php $_i=0 ?>
36
+ <?php foreach($this->getItems() as $_item): ?>
37
+ <?php if($_i++%10==0): ?>
38
+ <col width="1" />
39
+ <?php endif; ?>
40
+ <col width="<?php echo floor(100/$_total); ?>%" />
41
+ <?php endforeach; ?>
42
+ <?php if ($_total>2): ?>
43
+ <thead>
44
+ <tr>
45
+ <?php $_i=0 ?>
46
+ <?php foreach($this->getItems() as $_item): ?>
47
+ <?php if($_i++%10==0): ?>
48
+ <th>&nbsp;</th>
49
+ <?php endif; ?>
50
+ <td class="a-right"><a href="#" class="btn-remove" onclick="removeItem('<?php echo $this->helper('catalog/product_compare')->getRemoveUrl($_item) ?>');" title="<?php echo $this->__('Remove This Item') ?>"><?php echo $this->__('Remove This Item') ?></a></td>
51
+ <?php endforeach; ?>
52
+ </tr>
53
+ </thead>
54
+ <?php endif ?>
55
+ <tbody>
56
+ <tr class="product-shop-row">
57
+ <?php $_i=0 ?>
58
+ <?php foreach($this->getItems() as $_item): ?>
59
+ <?php if($_i++%10==0): ?>
60
+ <th>&nbsp;</th>
61
+ <?php endif; ?>
62
+ <td>
63
+ <a class="product-image" href="#" onclick="setPLocation('<?php echo $this->getProductUrl($_item) ?>', true)" title="<?php echo $this->stripTags($_item->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'small_image')->resize(125, 125); ?>" width="125" height="125" alt="<?php echo $this->stripTags($_item->getName(), null, true) ?>" /></a>
64
+ <h2 class="product-name"><a href="#" onclick="setPLocation('<?php echo $this->getProductUrl($_item) ?>', true)" title="<?php echo $this->stripTags($_item->getName(), null, true) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_item, $_item->getName(), 'name') ?></a></h2>
65
+ <?php echo $this->getReviewsSummaryHtml($_item, 'short') ?>
66
+ <?php echo $this->getPriceHtml($_item, true, '-compare-list-top') ?>
67
+ <?php if($_item->isSaleable()): ?>
68
+ <?php $configValue = Mage::getStoreConfig('tab1/general/active');
69
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes')
70
+ { ?>
71
+ <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setPLocation('<?php echo $this->helper('catalog/product_compare')->getAddToCartUrl($_item) ?>', true)"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
72
+ <?php }
73
+ else
74
+ {
75
+ $url=Mage::getBaseUrl().'customer/account/login/';
76
+ echo "<ul><li><a href='".$url."'><b>Login</a> to see Add to Cart Button</b></li> </ul>";
77
+
78
+ } ?>
79
+ <?php else: ?>
80
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
81
+ <?php endif; ?>
82
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
83
+ <ul class="add-to-links">
84
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
85
+ </ul>
86
+ <?php endif; ?>
87
+ </td>
88
+ <?php endforeach; ?>
89
+ </tr>
90
+ </tbody>
91
+ <tbody>
92
+ <?php foreach ($this->getAttributes() as $_attribute): ?>
93
+ <tr>
94
+ <?php $_i=0 ?>
95
+ <?php foreach($this->getItems() as $_item): ?>
96
+ <?php if($_i++%10==0): ?>
97
+ <th><span class="nobr"><?php echo $_attribute->getStoreLabel() ?></span></th>
98
+ <?php endif; ?>
99
+ <td>
100
+ <?php switch ($_attribute->getAttributeCode()) {
101
+ case "price": ?>
102
+ <?php echo $this->getPriceHtml($_item, true, '-compare-list-' . $_attribute->getCode()) ?>
103
+ <?php break;
104
+ case "small_image": ?>
105
+ <img src="<?php echo $this->helper('catalog/image')->init($_item, 'small_image')->resize(125, 125); ?>" width="125" height="125" alt="<?php echo $this->escapeHtml($_item->getName()) ?>" title="<?php echo $this->escapeHtml($_item->getName()) ?>" />
106
+ <?php break;
107
+ case "date":
108
+ echo substr($this->getProductAttributeValue($_item, $_attribute),0,10);
109
+ break;
110
+ default: ?>
111
+ <div class="std">
112
+ <?php echo $this->helper('catalog/output')->productAttribute($_item, $this->getProductAttributeValue($_item, $_attribute), $_attribute->getAttributeCode()) ?>
113
+ </div>
114
+ <?php break;
115
+ } ?>
116
+ </td>
117
+ <?php endforeach; ?>
118
+ </tr>
119
+ <?php endforeach; ?>
120
+ </tbody>
121
+ <tbody>
122
+ <tr class="add-to-row">
123
+ <?php $_i=0 ?>
124
+ <?php foreach($this->getItems() as $_item): ?>
125
+ <?php if($_i++%10==0): ?>
126
+ <th>&nbsp;</th>
127
+ <?php endif; ?>
128
+ <td>
129
+ <?php echo $this->getPriceHtml($_item, true, '-compare-list-bottom') ?>
130
+ <?php if($_item->isSaleable()): ?>
131
+ <?php $configValue = Mage::getStoreConfig('tab1/general/active');
132
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes')
133
+ { ?>
134
+ <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setPLocation('<?php echo $this->helper('catalog/product_compare')->getAddToCartUrl($_item) ?>', true)"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
135
+ <?php }
136
+ else
137
+ {
138
+ $url=Mage::getBaseUrl().'customer/account/login/';
139
+ echo "<ul><li><a href='".$url."'><b>Login</a> to see Add to Cart Button</b></li> </ul>";
140
+
141
+ } ?>
142
+ <?php else: ?>
143
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
144
+ <?php endif; ?>
145
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
146
+ <ul class="add-to-links">
147
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_item);?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
148
+ </ul>
149
+ <?php endif; ?>
150
+ </td>
151
+ <?php endforeach; ?>
152
+ </tr>
153
+ </tbody>
154
+ </table>
155
+ <div class="buttons-set">
156
+ <button type="button" title="<?php echo $this->__('Close Window') ?>" class="button" onclick="window.close();"><span><span><?php echo $this->__('Close Window') ?></span></span></button>
157
+ <span class="please-wait" id="compare-list-please-wait" style="display:none;">
158
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Please wait...') ?>" title="<?php echo $this->__('Please wait...') ?>" class="v-middle" /> <?php echo $this->__('Please wait...') ?>
159
+ </span>
160
+ </div>
161
+ <script type="text/javascript">
162
+ decorateTable('product_comparison');
163
+
164
+ /**
165
+ * Send remove item request, after that reload windows
166
+ */
167
+ function removeItem(url)
168
+ {
169
+ new Ajax.Request(url, {
170
+ parameters: {isAjax: 1, method: 'POST'},
171
+ onLoading: function(){$('compare-list-please-wait').show();},
172
+ onSuccess: function(transport) {
173
+ $('compare-list-please-wait').hide();
174
+ window.location.reload();
175
+ window.opener.location.reload();
176
+ }
177
+ });
178
+ }
179
+ </script>
180
+ <?php else: ?>
181
+ <script type="text/javascript">window.close();</script>
182
+ <?php endif; ?>
app/design/frontend/base/default/template/hideprice/catalog/product/compare/list.phtml~ ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ /* @var $this Mage_Catalog_Block_Product_Compare_List */
27
+ ?>
28
+ <div class="page-title title-buttons">
29
+ <h1><?php echo $this->__('Compare Products') ?></h1>
30
+ <a href="#" onclick="window.print(); return false;" class="link-print"><?php echo $this->__('Print This Page') ?></a>
31
+ </div>
32
+ <?php $_total=$this->getItems()->getSize() ?>
33
+ <?php if($_total): ?>
34
+ <table class="data-table compare-table" id="product_comparison">
35
+ <?php $_i=0 ?>
36
+ <?php foreach($this->getItems() as $_item): ?>
37
+ <?php if($_i++%10==0): ?>
38
+ <col width="1" />
39
+ <?php endif; ?>
40
+ <col width="<?php echo floor(100/$_total); ?>%" />
41
+ <?php endforeach; ?>
42
+ <?php if ($_total>2): ?>
43
+ <thead>
44
+ <tr>
45
+ <?php $_i=0 ?>
46
+ <?php foreach($this->getItems() as $_item): ?>
47
+ <?php if($_i++%10==0): ?>
48
+ <th>&nbsp;</th>
49
+ <?php endif; ?>
50
+ <td class="a-right"><a href="#" class="btn-remove" onclick="removeItem('<?php echo $this->helper('catalog/product_compare')->getRemoveUrl($_item) ?>');" title="<?php echo $this->__('Remove This Item') ?>"><?php echo $this->__('Remove This Item') ?></a></td>
51
+ <?php endforeach; ?>
52
+ </tr>
53
+ </thead>
54
+ <?php endif ?>
55
+ <tbody>
56
+ <tr class="product-shop-row">
57
+ <?php $_i=0 ?>
58
+ <?php foreach($this->getItems() as $_item): ?>
59
+ <?php if($_i++%10==0): ?>
60
+ <th>&nbsp;</th>
61
+ <?php endif; ?>
62
+ <td>
63
+ <a class="product-image" href="#" onclick="setPLocation('<?php echo $this->getProductUrl($_item) ?>', true)" title="<?php echo $this->stripTags($_item->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'small_image')->resize(125, 125); ?>" width="125" height="125" alt="<?php echo $this->stripTags($_item->getName(), null, true) ?>" /></a>
64
+ <h2 class="product-name"><a href="#" onclick="setPLocation('<?php echo $this->getProductUrl($_item) ?>', true)" title="<?php echo $this->stripTags($_item->getName(), null, true) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_item, $_item->getName(), 'name') ?></a></h2>
65
+ <?php echo $this->getReviewsSummaryHtml($_item, 'short') ?>
66
+ <?php echo $this->getPriceHtml($_item, true, '-compare-list-top') ?>
67
+ <?php if($_item->isSaleable()): ?>
68
+ <?php $configValue = Mage::getStoreConfig('tab1/general/active');
69
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes')
70
+ { ?>
71
+ <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setPLocation('<?php echo $this->helper('catalog/product_compare')->getAddToCartUrl($_item) ?>', true)"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
72
+ <?php }
73
+ else
74
+ {
75
+ $url=Mage::getBaseUrl().'customer/account/login/';
76
+ echo "<ul><li><a href='".$url."'><b>Login</a> to see Add to Cart Button</b></li> </ul>";
77
+
78
+ } ?>
79
+ <?php else: ?>
80
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
81
+ <?php endif; ?>
82
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
83
+ <ul class="add-to-links">
84
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
85
+ </ul>
86
+ <?php endif; ?>
87
+ </td>
88
+ <?php endforeach; ?>
89
+ </tr>
90
+ </tbody>
91
+ <tbody>
92
+ <?php foreach ($this->getAttributes() as $_attribute): ?>
93
+ <tr>
94
+ <?php $_i=0 ?>
95
+ <?php foreach($this->getItems() as $_item): ?>
96
+ <?php if($_i++%10==0): ?>
97
+ <th><span class="nobr"><?php echo $_attribute->getStoreLabel() ?></span></th>
98
+ <?php endif; ?>
99
+ <td>
100
+ <?php switch ($_attribute->getAttributeCode()) {
101
+ case "price": ?>
102
+ <?php echo $this->getPriceHtml($_item, true, '-compare-list-' . $_attribute->getCode()) ?>
103
+ <?php break;
104
+ case "small_image": ?>
105
+ <img src="<?php echo $this->helper('catalog/image')->init($_item, 'small_image')->resize(125, 125); ?>" width="125" height="125" alt="<?php echo $this->escapeHtml($_item->getName()) ?>" title="<?php echo $this->escapeHtml($_item->getName()) ?>" />
106
+ <?php break;
107
+ case "date":
108
+ echo substr($this->getProductAttributeValue($_item, $_attribute),0,10);
109
+ break;
110
+ default: ?>
111
+ <div class="std">
112
+ <?php echo $this->helper('catalog/output')->productAttribute($_item, $this->getProductAttributeValue($_item, $_attribute), $_attribute->getAttributeCode()) ?>
113
+ </div>
114
+ <?php break;
115
+ } ?>
116
+ </td>
117
+ <?php endforeach; ?>
118
+ </tr>
119
+ <?php endforeach; ?>
120
+ </tbody>
121
+ <tbody>
122
+ <tr class="add-to-row">
123
+ <?php $_i=0 ?>
124
+ <?php foreach($this->getItems() as $_item): ?>
125
+ <?php if($_i++%10==0): ?>
126
+ <th>&nbsp;</th>
127
+ <?php endif; ?>
128
+ <td>
129
+ <?php echo $this->getPriceHtml($_item, true, '-compare-list-bottom') ?>
130
+ <?php if($_item->isSaleable()): ?>
131
+ <?php $configValue = Mage::getStoreConfig('tab1/general/active');
132
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes')
133
+ { ?>
134
+ <p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setPLocation('<?php echo $this->helper('catalog/product_compare')->getAddToCartUrl($_item) ?>', true)"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
135
+ <?php }
136
+ else
137
+ {
138
+ $url=Mage::getBaseUrl().'customer/account/login/';
139
+ echo "<ul><li><a href='".$url."'><b>Login</a> to see Add to Cart Button</b></li> </ul>";
140
+
141
+ } ?>
142
+ <?php else: ?>
143
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
144
+ <?php endif; ?>
145
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
146
+ <ul class="add-to-links">
147
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_item);?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
148
+ </ul>
149
+ <?php endif; ?>
150
+ </td>
151
+ <?php endforeach; ?>
152
+ </tr>
153
+ </tbody>
154
+ </table>
155
+ <div class="buttons-set">
156
+ <button type="button" title="<?php echo $this->__('Close Window') ?>" class="button" onclick="window.close();"><span><span><?php echo $this->__('Close Window') ?></span></span></button>
157
+ <span class="please-wait" id="compare-list-please-wait" style="display:none;">
158
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Please wait...') ?>" title="<?php echo $this->__('Please wait...') ?>" class="v-middle" /> <?php echo $this->__('Please wait...') ?>
159
+ </span>
160
+ </div>
161
+ <script type="text/javascript">
162
+ decorateTable('product_comparison');
163
+
164
+ /**
165
+ * Send remove item request, after that reload windows
166
+ */
167
+ function removeItem(url)
168
+ {
169
+ new Ajax.Request(url, {
170
+ parameters: {isAjax: 1, method: 'POST'},
171
+ onLoading: function(){$('compare-list-please-wait').show();},
172
+ onSuccess: function(transport) {
173
+ $('compare-list-please-wait').hide();
174
+ window.location.reload();
175
+ window.opener.location.reload();
176
+ }
177
+ });
178
+ }
179
+ </script>
180
+ <?php else: ?>
181
+ <script type="text/javascript">window.close();</script>
182
+ <?php endif; ?>
app/design/frontend/base/default/template/hideprice/catalog/product/list.phtml ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Product list template
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List
32
+ */
33
+ ?>
34
+ <?php
35
+ $_productCollection=$this->getLoadedProductCollection();
36
+ $_helper = $this->helper('catalog/output');
37
+ ?>
38
+ <?php if(!$_productCollection->count()): ?>
39
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
40
+ <?php else: ?>
41
+ <div class="category-products">
42
+ <?php echo $this->getToolbarHtml() ?>
43
+ <?php // List mode ?>
44
+ <?php if($this->getMode()!='grid'): ?>
45
+ <?php $_iterator = 0; ?>
46
+ <ol class="products-list" id="products-list">
47
+ <?php foreach ($_productCollection as $_product): ?>
48
+ <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
49
+ <?php // Product Image ?>
50
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
51
+ <?php // Product description ?>
52
+ <div class="product-shop">
53
+ <div class="f-fix">
54
+ <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
55
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
56
+ <?php if($_product->getRatingSummary()): ?>
57
+ <?php echo $this->getReviewsSummaryHtml($_product) ?>
58
+ <?php endif; ?>
59
+ <?php echo $this->getPriceHtml($_product, true) ?>
60
+
61
+ <?php if($_product->isSaleable()): ?>
62
+ <?php $configValue = Mage::getStoreConfig('tab1/general/active');
63
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes')
64
+ { ?>
65
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
66
+ <?php }
67
+ else
68
+ {
69
+ $url=Mage::getBaseUrl().'customer/account/login/';
70
+ echo "<ul><li style='width: 125px; top: 0px; position: relative; float: left;'><a href='".$url."'><b>Login</a> to see Add to Cart Button</b></li> </ul>";
71
+ } ?>
72
+ <?php else: ?>
73
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
74
+ <?php endif; ?>
75
+ <div class="desc std">
76
+ <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
77
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
78
+ </div>
79
+ <ul class="add-to-links">
80
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
81
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
82
+ <?php endif; ?>
83
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
84
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
85
+ <?php endif; ?>
86
+ </ul>
87
+ </div>
88
+ </div>
89
+ </li>
90
+ <?php endforeach; ?>
91
+ </ol>
92
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
93
+
94
+ <?php else: ?>
95
+
96
+ <?php // Grid Mode ?>
97
+
98
+ <?php $_collectionSize = $_productCollection->count() ?>
99
+ <?php $_columnCount = $this->getColumnCount(); ?>
100
+ <?php $i=0; foreach ($_productCollection as $_product): ?>
101
+ <?php if ($i++%$_columnCount==0): ?>
102
+ <ul class="products-grid">
103
+ <?php endif ?>
104
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
105
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
106
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
107
+ <?php if($_product->getRatingSummary()): ?>
108
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
109
+ <?php endif; ?>
110
+ <?php echo $this->getPriceHtml($_product, true) ?>
111
+ <div class="actions">
112
+ <?php if($_product->isSaleable()): ?>
113
+
114
+ <?php $configValue = Mage::getStoreConfig('tab1/general/active');
115
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes')
116
+ { ?>
117
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
118
+ <?php }
119
+ else
120
+ {
121
+ $url=Mage::getBaseUrl().'customer/account/login/';
122
+ echo "<ul><li style='width: 125px; top: 0px; position: relative; float: left;'><a href='".$url."'><b>Login</a> to see Add to Cart Button</b></li> </ul>";
123
+ } ?>
124
+
125
+ <?php else: ?>
126
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
127
+ <?php endif; ?>
128
+ <ul class="add-to-links">
129
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
130
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
131
+ <?php endif; ?>
132
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
133
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
134
+ <?php endif; ?>
135
+ </ul>
136
+ </div>
137
+ </li>
138
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
139
+ </ul>
140
+ <?php endif ?>
141
+ <?php endforeach ?>
142
+ <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
143
+ <?php endif; ?>
144
+
145
+ <div class="toolbar-bottom">
146
+ <?php echo $this->getToolbarHtml() ?>
147
+ </div>
148
+ </div>
149
+ <?php endif; ?>
app/design/frontend/base/default/template/hideprice/catalog/product/list.phtml~ ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Product list template
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List
32
+ */
33
+ ?>
34
+ <?php
35
+ $_productCollection=$this->getLoadedProductCollection();
36
+ $_helper = $this->helper('catalog/output');
37
+ ?>
38
+ <?php if(!$_productCollection->count()): ?>
39
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
40
+ <?php else: ?>
41
+ <div class="category-products">
42
+ <?php echo $this->getToolbarHtml() ?>
43
+ <?php // List mode ?>
44
+ <?php if($this->getMode()!='grid'): ?>
45
+ <?php $_iterator = 0; ?>
46
+ <ol class="products-list" id="products-list">
47
+ <?php foreach ($_productCollection as $_product): ?>
48
+ <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
49
+ <?php // Product Image ?>
50
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
51
+ <?php // Product description ?>
52
+ <div class="product-shop">
53
+ <div class="f-fix">
54
+ <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
55
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
56
+ <?php if($_product->getRatingSummary()): ?>
57
+ <?php echo $this->getReviewsSummaryHtml($_product) ?>
58
+ <?php endif; ?>
59
+ <?php echo $this->getPriceHtml($_product, true) ?>
60
+
61
+ <?php if($_product->isSaleable()): ?>
62
+ <?php $configValue = Mage::getStoreConfig('tab1/general/active');
63
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes')
64
+ { ?>
65
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
66
+ <?php }
67
+ else
68
+ {
69
+ $url=Mage::getBaseUrl().'customer/account/login/';
70
+ echo "<ul><li style='width: 125px; top: 0px; position: relative; float: left;'><a href='".$url."'><b>Login</a> to see Add to Cart Button</b></li> </ul>";
71
+ } ?>
72
+ <?php else: ?>
73
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
74
+ <?php endif; ?>
75
+ <div class="desc std">
76
+ <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
77
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
78
+ </div>
79
+ <ul class="add-to-links">
80
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
81
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
82
+ <?php endif; ?>
83
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
84
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
85
+ <?php endif; ?>
86
+ </ul>
87
+ </div>
88
+ </div>
89
+ </li>
90
+ <?php endforeach; ?>
91
+ </ol>
92
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
93
+
94
+ <?php else: ?>
95
+
96
+ <?php // Grid Mode ?>
97
+
98
+ <?php $_collectionSize = $_productCollection->count() ?>
99
+ <?php $_columnCount = $this->getColumnCount(); ?>
100
+ <?php $i=0; foreach ($_productCollection as $_product): ?>
101
+ <?php if ($i++%$_columnCount==0): ?>
102
+ <ul class="products-grid">
103
+ <?php endif ?>
104
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
105
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
106
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
107
+ <?php if($_product->getRatingSummary()): ?>
108
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
109
+ <?php endif; ?>
110
+ <?php echo $this->getPriceHtml($_product, true) ?>
111
+ <div class="actions">
112
+ <?php if($_product->isSaleable()): ?>
113
+
114
+ <?php $configValue = Mage::getStoreConfig('tab1/general/active');
115
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes')
116
+ { ?>
117
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
118
+ <?php }
119
+ else
120
+ {
121
+ $url=Mage::getBaseUrl().'customer/account/login/';
122
+ echo "<ul><li style='width: 125px; top: 0px; position: relative; float: left;'><a href='".$url."'><b>Login</a> to see Add to Cart Button</b></li> </ul>";
123
+ } ?>
124
+
125
+ <?php else: ?>
126
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
127
+ <?php endif; ?>
128
+ <ul class="add-to-links">
129
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
130
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
131
+ <?php endif; ?>
132
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
133
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
134
+ <?php endif; ?>
135
+ </ul>
136
+ </div>
137
+ </li>
138
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
139
+ </ul>
140
+ <?php endif ?>
141
+ <?php endforeach ?>
142
+ <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
143
+ <?php endif; ?>
144
+
145
+ <div class="toolbar-bottom">
146
+ <?php echo $this->getToolbarHtml() ?>
147
+ </div>
148
+ </div>
149
+ <?php endif; ?>
app/design/frontend/base/default/template/hideprice/catalog/product/price.phtml ADDED
@@ -0,0 +1,480 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * Template for displaying product price in different places (products grid, product view page etc)
31
+ *
32
+ * @see Mage_Catalog_Block_Product_Abstract
33
+ */
34
+ ?>
35
+ <?php
36
+ $configValue = Mage::getStoreConfig('tab1/general/dropdown');
37
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes'): ?>
38
+
39
+ <?php
40
+ $_coreHelper = $this->helper('core');
41
+ $_weeeHelper = $this->helper('weee');
42
+ $_taxHelper = $this->helper('tax');
43
+ /* @var $_coreHelper Mage_Core_Helper_Data */
44
+ /* @var $_weeeHelper Mage_Weee_Helper_Data */
45
+ /* @var $_taxHelper Mage_Tax_Helper_Data */
46
+
47
+ $_product = $this->getProduct();
48
+ $_storeId = $_product->getStoreId();
49
+ $_store = $_product->getStore();
50
+ $_id = $_product->getId();
51
+ $_weeeSeparator = '';
52
+ $_simplePricesTax = ($_taxHelper->displayPriceIncludingTax() || $_taxHelper->displayBothPrices());
53
+ $_minimalPriceValue = $_product->getMinimalPrice();
54
+ $_minimalPriceValue = $_store->roundPrice($_store->convertPrice($_minimalPriceValue));
55
+ $_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
56
+ $_convertedFinalPrice = $_store->roundPrice($_store->convertPrice($_product->getFinalPrice()));
57
+ $_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStoreLabel();
58
+ ?>
59
+
60
+ <?php if (!$_product->isGrouped()): ?>
61
+ <?php $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product); ?>
62
+ <?php $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true); ?>
63
+ <?php $_weeeTaxAmountInclTaxes = $_weeeTaxAmount; ?>
64
+ <?php if ($_weeeHelper->isTaxable()): ?>
65
+ <?php $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_weeeTaxAttributes); ?>
66
+ <?php endif; ?>
67
+ <?php $_weeeTaxAmount = $_store->roundPrice($_store->convertPrice($_weeeTaxAmount)); ?>
68
+ <?php $_weeeTaxAmountInclTaxes = $_store->roundPrice($_store->convertPrice($_weeeTaxAmountInclTaxes)); ?>
69
+
70
+ <div class="price-box">
71
+ <?php $_convertedPrice = $_store->roundPrice($_store->convertPrice($_product->getPrice())); ?>
72
+ <?php $_price = $_taxHelper->getPrice($_product, $_convertedPrice); ?>
73
+ <?php $_regularPrice = $_taxHelper->getPrice($_product, $_convertedPrice, $_simplePricesTax); ?>
74
+ <?php $_finalPrice = $_taxHelper->getPrice($_product, $_convertedFinalPrice) ?>
75
+ <?php $_finalPriceInclTax = $_taxHelper->getPrice($_product, $_convertedFinalPrice, true) ?>
76
+ <?php $_weeeDisplayType = $_weeeHelper->getPriceDisplayType(); ?>
77
+ <?php if ($_finalPrice >= $_price): ?>
78
+ <?php if ($_taxHelper->displayBothPrices()): ?>
79
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
80
+ <span class="price-excluding-tax">
81
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
82
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
83
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
84
+ </span>
85
+ </span>
86
+ <span class="price-including-tax">
87
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
88
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
89
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
90
+ </span>
91
+ </span>
92
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
93
+ <span class="price-excluding-tax">
94
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
95
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
96
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
97
+ </span>
98
+ </span>
99
+ <span class="weee">(
100
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
101
+ <?php echo $_weeeSeparator; ?>
102
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
103
+ <?php $_weeeSeparator = ' + '; ?>
104
+ <?php endforeach; ?>
105
+ )</span>
106
+ <span class="price-including-tax">
107
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
108
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
109
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
110
+ </span>
111
+ </span>
112
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
113
+ <span class="price-excluding-tax">
114
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
115
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
116
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
117
+ </span>
118
+ </span>
119
+ <span class="price-including-tax">
120
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
121
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
122
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
123
+ </span>
124
+ <span class="weee">(
125
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
126
+ <?php echo $_weeeSeparator; ?>
127
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
128
+ <?php $_weeeSeparator = ' + '; ?>
129
+ <?php endforeach; ?>
130
+ )</span>
131
+ </span>
132
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
133
+ <span class="price-excluding-tax">
134
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
135
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
136
+ <?php echo $_coreHelper->formatPrice($_price, false) ?>
137
+ </span>
138
+ </span>
139
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
140
+ <span class="weee">
141
+ <?php echo $_weeeTaxAttribute->getName(); ?>
142
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
143
+ </span>
144
+ <?php endforeach; ?>
145
+ <span class="price-including-tax">
146
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
147
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
148
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
149
+ </span>
150
+ </span>
151
+ <?php else: ?>
152
+ <span class="price-excluding-tax">
153
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
154
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
155
+ <?php if ($_finalPrice == $_price): ?>
156
+ <?php echo $_coreHelper->formatPrice($_price, false) ?>
157
+ <?php else: ?>
158
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
159
+ <?php endif; ?>
160
+ </span>
161
+ </span>
162
+ <span class="price-including-tax">
163
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
164
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
165
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax, false) ?>
166
+ </span>
167
+ </span>
168
+ <?php endif; ?>
169
+ <?php else: ?>
170
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1))): // including ?>
171
+ <?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
172
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
173
+ <?php echo $_coreHelper->currency($_price + $weeeAmountToDisplay, true, true) ?>
174
+ </span>
175
+
176
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // show description ?>
177
+ <span class="weee">(
178
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
179
+ <?php echo $_weeeSeparator; ?>
180
+ <?php echo $_weeeTaxAttribute->getName(); ?>
181
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + ($_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAttribute->getTaxAmount() : 0), true, true); ?>
182
+ <?php $_weeeSeparator = ' + '; ?>
183
+ <?php endforeach; ?>
184
+ )</span>
185
+ <?php endif; ?>
186
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
187
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
188
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, true) ?>
189
+ </span>
190
+ <span class="weee">(
191
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
192
+ <?php echo $_weeeSeparator; ?>
193
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
194
+ <?php $_weeeSeparator = ' + '; ?>
195
+ <?php endforeach; ?>
196
+ )</span>
197
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
198
+ <span class="regular-price"><?php echo $_coreHelper->formatPrice($_price, true) ?></span><br/>
199
+ <?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
200
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
201
+ <span class="weee">
202
+ <?php echo $_weeeTaxAttribute->getName(); ?>
203
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + ($_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAttribute->getTaxAmount() : 0), true, true); ?>
204
+ </span>
205
+ <?php endforeach; ?>
206
+ <span class="regular-price"
207
+ id="product-price-weee-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
208
+ <?php echo $_coreHelper->currency($_price + $weeeAmountToDisplay, true, true) ?>
209
+ </span>
210
+ <?php else: ?>
211
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
212
+ <?php if ($_finalPrice == $_price): ?>
213
+ <?php echo $_coreHelper->formatPrice($_price, true) ?>
214
+ <?php else: ?>
215
+ <?php echo $_coreHelper->formatPrice($_finalPrice, true) ?>
216
+ <?php endif; ?>
217
+ </span>
218
+ <?php endif; ?>
219
+ <?php endif; ?>
220
+ <?php else: /* if ($_finalPrice == $_price): */ ?>
221
+ <?php $_originalWeeeTaxAmount = $_weeeHelper->getOriginalAmount($_product); ?>
222
+ <?php $_originalWeeeTaxAmount = $_store->roundPrice($_store->convertPrice($_originalWeeeTaxAmount)) ?>
223
+
224
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
225
+ <p class="old-price">
226
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
227
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
228
+ <?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
229
+ </span>
230
+ </p>
231
+
232
+ <?php if ($_taxHelper->displayBothPrices()): ?>
233
+ <p class="special-price">
234
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
235
+ <span class="price-excluding-tax">
236
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
237
+ <span class="price"
238
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
239
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
240
+ </span>
241
+ </span>
242
+ <span class="price-including-tax">
243
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
244
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
245
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
246
+ </span>
247
+ </span>
248
+ </p>
249
+ <?php else: ?>
250
+ <p class="special-price">
251
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
252
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
253
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmountInclTaxes, false) ?>
254
+ </span>
255
+ </p>
256
+ <?php endif; ?>
257
+
258
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
259
+ <p class="old-price">
260
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
261
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
262
+ <?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
263
+ </span>
264
+ </p>
265
+
266
+ <p class="special-price">
267
+ <?php if ($_taxHelper->displayBothPrices()): ?>
268
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
269
+ <span class="price-excluding-tax">
270
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
271
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
272
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
273
+ </span>
274
+ </span>
275
+ <span class="weee">(
276
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
277
+ <?php echo $_weeeSeparator; ?>
278
+ <?php echo $_weeeTaxAttribute->getName(); ?>
279
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
280
+ <?php $_weeeSeparator = ' + '; ?>
281
+ <?php endforeach; ?>
282
+ )</span>
283
+ <span class="price-including-tax">
284
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
285
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
286
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
287
+ </span>
288
+ </span>
289
+ <?php else: ?>
290
+ <p class="special-price">
291
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
292
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
293
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmountInclTaxes, false) ?>
294
+ </span>
295
+ </p>
296
+ <span class="weee">(
297
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
298
+ <?php echo $_weeeSeparator; ?>
299
+ <?php echo $_weeeTaxAttribute->getName(); ?>
300
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
301
+ <?php $_weeeSeparator = ' + '; ?>
302
+ <?php endforeach; ?>
303
+ )</span>
304
+ <?php endif; ?>
305
+ </p>
306
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
307
+ <p class="old-price">
308
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
309
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
310
+ <?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
311
+ </span>
312
+ </p>
313
+
314
+ <p class="special-price">
315
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
316
+ <span class="price-excluding-tax">
317
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
318
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
319
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
320
+ </span>
321
+ </span>
322
+ <span class="weee">(
323
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
324
+ <?php echo $_weeeSeparator; ?>
325
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
326
+ <?php $_weeeSeparator = ' + '; ?>
327
+ <?php endforeach; ?>
328
+ )</span>
329
+ <span class="price-including-tax">
330
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
331
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
332
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
333
+ </span>
334
+ </span>
335
+ </p>
336
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
337
+ <p class="old-price">
338
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
339
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
340
+ <?php echo $_coreHelper->formatPrice($_regularPrice, false) ?>
341
+ </span>
342
+ </p>
343
+
344
+ <p class="special-price">
345
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
346
+ <span class="price-excluding-tax">
347
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
348
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
349
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
350
+ </span>
351
+ </span>
352
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
353
+ <span class="weee">
354
+ <?php echo $_weeeTaxAttribute->getName(); ?>
355
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
356
+ </span>
357
+ <?php endforeach; ?>
358
+ <span class="price-including-tax">
359
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
360
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
361
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
362
+ </span>
363
+ </span>
364
+ </p>
365
+ <?php else: // excl. ?>
366
+ <p class="old-price">
367
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
368
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
369
+ <?php echo $_coreHelper->formatPrice($_regularPrice, false) ?>
370
+ </span>
371
+ </p>
372
+
373
+ <?php if ($_taxHelper->displayBothPrices()): ?>
374
+ <p class="special-price">
375
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
376
+ <span class="price-excluding-tax">
377
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
378
+ <span class="price"
379
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
380
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
381
+ </span>
382
+ </span>
383
+ <span class="price-including-tax">
384
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
385
+ <span class="price"
386
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
387
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax, false) ?>
388
+ </span>
389
+ </span>
390
+ </p>
391
+ <?php else: ?>
392
+ <p class="special-price">
393
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
394
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
395
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
396
+ </span>
397
+ </p>
398
+ <?php endif; ?>
399
+ <?php endif; ?>
400
+
401
+ <?php endif; /* if ($_finalPrice == $_price): */ ?>
402
+
403
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_convertedFinalPrice): ?>
404
+
405
+ <?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
406
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1, 4))): ?>
407
+ <?php $_minimalPriceDisplayValue = $_minimalPrice + $_weeeTaxAmount; ?>
408
+ <?php endif; ?>
409
+
410
+ <?php if ($this->getUseLinkForAsLowAs()): ?>
411
+ <a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
412
+ <?php else: ?>
413
+ <span class="minimal-price-link">
414
+ <?php endif ?>
415
+ <span class="label"><?php echo $this->__('As low as:') ?></span>
416
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
417
+ <?php echo $_coreHelper->formatPrice($_minimalPriceDisplayValue, false) ?>
418
+ </span>
419
+ <?php if ($this->getUseLinkForAsLowAs()): ?>
420
+ </a>
421
+ <?php else: ?>
422
+ </span>
423
+ <?php endif ?>
424
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
425
+ </div>
426
+
427
+ <?php else: /* if (!$_product->isGrouped()): */ ?>
428
+ <?php
429
+ $showMinPrice = $this->getDisplayMinimalPrice();
430
+ if ($showMinPrice && $_minimalPriceValue) {
431
+ $_exclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue);
432
+ $_inclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue, true);
433
+ $price = $showMinPrice ? $_minimalPriceValue : 0;
434
+ } else {
435
+ $price = $_convertedFinalPrice;
436
+ $_exclTax = $_taxHelper->getPrice($_product, $price);
437
+ $_inclTax = $_taxHelper->getPrice($_product, $price, true);
438
+ }
439
+ ?>
440
+ <?php if ($price): ?>
441
+ <div class="price-box">
442
+ <p<?php if ($showMinPrice): ?> class="minimal-price"<?php endif ?>>
443
+ <?php if ($showMinPrice): ?>
444
+ <span class="price-label"><?php echo $this->__('Starting at:') ?></span>
445
+ <?php endif ?>
446
+ <?php if ($_taxHelper->displayBothPrices()): ?>
447
+ <span class="price-excluding-tax">
448
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
449
+ <span class="price"
450
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
451
+ <?php echo $_coreHelper->formatPrice($_exclTax, false) ?>
452
+ </span>
453
+ </span>
454
+ <span class="price-including-tax">
455
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
456
+ <span class="price"
457
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
458
+ <?php echo $_coreHelper->formatPrice($_inclTax, false) ?>
459
+ </span>
460
+ </span>
461
+ <?php else: ?>
462
+ <?php
463
+ $_showPrice = $_inclTax;
464
+ if (!$_taxHelper->displayPriceIncludingTax()) {
465
+ $_showPrice = $_exclTax;
466
+ }
467
+ ?>
468
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
469
+ <?php echo $_coreHelper->formatPrice($_showPrice, false) ?>
470
+ </span>
471
+ <?php endif; ?>
472
+ </p>
473
+ </div>
474
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
475
+ <?php endif; /* if (!$_product->isGrouped()): */ ?>
476
+ <?php
477
+ else:
478
+ $url=Mage::getBaseUrl().'customer/account/login/';
479
+ echo "<b><a href='".$url."'>Login</a> to see Price</b>";
480
+ endif;?>
app/design/frontend/base/default/template/hideprice/catalog/product/price.phtml~ ADDED
@@ -0,0 +1,480 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+
28
+ <?php
29
+ /**
30
+ * Template for displaying product price in different places (products grid, product view page etc)
31
+ *
32
+ * @see Mage_Catalog_Block_Product_Abstract
33
+ */
34
+ ?>
35
+ <?php
36
+ $configValue = Mage::getStoreConfig('tab1/general/dropdown');
37
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes'): ?>
38
+
39
+ <?php
40
+ $_coreHelper = $this->helper('core');
41
+ $_weeeHelper = $this->helper('weee');
42
+ $_taxHelper = $this->helper('tax');
43
+ /* @var $_coreHelper Mage_Core_Helper_Data */
44
+ /* @var $_weeeHelper Mage_Weee_Helper_Data */
45
+ /* @var $_taxHelper Mage_Tax_Helper_Data */
46
+
47
+ $_product = $this->getProduct();
48
+ $_storeId = $_product->getStoreId();
49
+ $_store = $_product->getStore();
50
+ $_id = $_product->getId();
51
+ $_weeeSeparator = '';
52
+ $_simplePricesTax = ($_taxHelper->displayPriceIncludingTax() || $_taxHelper->displayBothPrices());
53
+ $_minimalPriceValue = $_product->getMinimalPrice();
54
+ $_minimalPriceValue = $_store->roundPrice($_store->convertPrice($_minimalPriceValue));
55
+ $_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
56
+ $_convertedFinalPrice = $_store->roundPrice($_store->convertPrice($_product->getFinalPrice()));
57
+ $_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStoreLabel();
58
+ ?>
59
+
60
+ <?php if (!$_product->isGrouped()): ?>
61
+ <?php $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product); ?>
62
+ <?php $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true); ?>
63
+ <?php $_weeeTaxAmountInclTaxes = $_weeeTaxAmount; ?>
64
+ <?php if ($_weeeHelper->isTaxable()): ?>
65
+ <?php $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_weeeTaxAttributes); ?>
66
+ <?php endif; ?>
67
+ <?php $_weeeTaxAmount = $_store->roundPrice($_store->convertPrice($_weeeTaxAmount)); ?>
68
+ <?php $_weeeTaxAmountInclTaxes = $_store->roundPrice($_store->convertPrice($_weeeTaxAmountInclTaxes)); ?>
69
+
70
+ <div class="price-box">
71
+ <?php $_convertedPrice = $_store->roundPrice($_store->convertPrice($_product->getPrice())); ?>
72
+ <?php $_price = $_taxHelper->getPrice($_product, $_convertedPrice); ?>
73
+ <?php $_regularPrice = $_taxHelper->getPrice($_product, $_convertedPrice, $_simplePricesTax); ?>
74
+ <?php $_finalPrice = $_taxHelper->getPrice($_product, $_convertedFinalPrice) ?>
75
+ <?php $_finalPriceInclTax = $_taxHelper->getPrice($_product, $_convertedFinalPrice, true) ?>
76
+ <?php $_weeeDisplayType = $_weeeHelper->getPriceDisplayType(); ?>
77
+ <?php if ($_finalPrice >= $_price): ?>
78
+ <?php if ($_taxHelper->displayBothPrices()): ?>
79
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
80
+ <span class="price-excluding-tax">
81
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
82
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
83
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
84
+ </span>
85
+ </span>
86
+ <span class="price-including-tax">
87
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
88
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
89
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
90
+ </span>
91
+ </span>
92
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
93
+ <span class="price-excluding-tax">
94
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
95
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
96
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
97
+ </span>
98
+ </span>
99
+ <span class="weee">(
100
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
101
+ <?php echo $_weeeSeparator; ?>
102
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
103
+ <?php $_weeeSeparator = ' + '; ?>
104
+ <?php endforeach; ?>
105
+ )</span>
106
+ <span class="price-including-tax">
107
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
108
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
109
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
110
+ </span>
111
+ </span>
112
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
113
+ <span class="price-excluding-tax">
114
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
115
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
116
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
117
+ </span>
118
+ </span>
119
+ <span class="price-including-tax">
120
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
121
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
122
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
123
+ </span>
124
+ <span class="weee">(
125
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
126
+ <?php echo $_weeeSeparator; ?>
127
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
128
+ <?php $_weeeSeparator = ' + '; ?>
129
+ <?php endforeach; ?>
130
+ )</span>
131
+ </span>
132
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
133
+ <span class="price-excluding-tax">
134
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
135
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
136
+ <?php echo $_coreHelper->formatPrice($_price, false) ?>
137
+ </span>
138
+ </span>
139
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
140
+ <span class="weee">
141
+ <?php echo $_weeeTaxAttribute->getName(); ?>
142
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
143
+ </span>
144
+ <?php endforeach; ?>
145
+ <span class="price-including-tax">
146
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
147
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
148
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
149
+ </span>
150
+ </span>
151
+ <?php else: ?>
152
+ <span class="price-excluding-tax">
153
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
154
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
155
+ <?php if ($_finalPrice == $_price): ?>
156
+ <?php echo $_coreHelper->formatPrice($_price, false) ?>
157
+ <?php else: ?>
158
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
159
+ <?php endif; ?>
160
+ </span>
161
+ </span>
162
+ <span class="price-including-tax">
163
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
164
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
165
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax, false) ?>
166
+ </span>
167
+ </span>
168
+ <?php endif; ?>
169
+ <?php else: ?>
170
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1))): // including ?>
171
+ <?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
172
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
173
+ <?php echo $_coreHelper->currency($_price + $weeeAmountToDisplay, true, true) ?>
174
+ </span>
175
+
176
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // show description ?>
177
+ <span class="weee">(
178
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
179
+ <?php echo $_weeeSeparator; ?>
180
+ <?php echo $_weeeTaxAttribute->getName(); ?>
181
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + ($_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAttribute->getTaxAmount() : 0), true, true); ?>
182
+ <?php $_weeeSeparator = ' + '; ?>
183
+ <?php endforeach; ?>
184
+ )</span>
185
+ <?php endif; ?>
186
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
187
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
188
+ <?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, true) ?>
189
+ </span>
190
+ <span class="weee">(
191
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
192
+ <?php echo $_weeeSeparator; ?>
193
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
194
+ <?php $_weeeSeparator = ' + '; ?>
195
+ <?php endforeach; ?>
196
+ )</span>
197
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
198
+ <span class="regular-price"><?php echo $_coreHelper->formatPrice($_price, true) ?></span><br/>
199
+ <?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
200
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
201
+ <span class="weee">
202
+ <?php echo $_weeeTaxAttribute->getName(); ?>
203
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + ($_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAttribute->getTaxAmount() : 0), true, true); ?>
204
+ </span>
205
+ <?php endforeach; ?>
206
+ <span class="regular-price"
207
+ id="product-price-weee-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
208
+ <?php echo $_coreHelper->currency($_price + $weeeAmountToDisplay, true, true) ?>
209
+ </span>
210
+ <?php else: ?>
211
+ <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
212
+ <?php if ($_finalPrice == $_price): ?>
213
+ <?php echo $_coreHelper->formatPrice($_price, true) ?>
214
+ <?php else: ?>
215
+ <?php echo $_coreHelper->formatPrice($_finalPrice, true) ?>
216
+ <?php endif; ?>
217
+ </span>
218
+ <?php endif; ?>
219
+ <?php endif; ?>
220
+ <?php else: /* if ($_finalPrice == $_price): */ ?>
221
+ <?php $_originalWeeeTaxAmount = $_weeeHelper->getOriginalAmount($_product); ?>
222
+ <?php $_originalWeeeTaxAmount = $_store->roundPrice($_store->convertPrice($_originalWeeeTaxAmount)) ?>
223
+
224
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
225
+ <p class="old-price">
226
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
227
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
228
+ <?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
229
+ </span>
230
+ </p>
231
+
232
+ <?php if ($_taxHelper->displayBothPrices()): ?>
233
+ <p class="special-price">
234
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
235
+ <span class="price-excluding-tax">
236
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
237
+ <span class="price"
238
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
239
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
240
+ </span>
241
+ </span>
242
+ <span class="price-including-tax">
243
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
244
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
245
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
246
+ </span>
247
+ </span>
248
+ </p>
249
+ <?php else: ?>
250
+ <p class="special-price">
251
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
252
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
253
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmountInclTaxes, false) ?>
254
+ </span>
255
+ </p>
256
+ <?php endif; ?>
257
+
258
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
259
+ <p class="old-price">
260
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
261
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
262
+ <?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
263
+ </span>
264
+ </p>
265
+
266
+ <p class="special-price">
267
+ <?php if ($_taxHelper->displayBothPrices()): ?>
268
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
269
+ <span class="price-excluding-tax">
270
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
271
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
272
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
273
+ </span>
274
+ </span>
275
+ <span class="weee">(
276
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
277
+ <?php echo $_weeeSeparator; ?>
278
+ <?php echo $_weeeTaxAttribute->getName(); ?>
279
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
280
+ <?php $_weeeSeparator = ' + '; ?>
281
+ <?php endforeach; ?>
282
+ )</span>
283
+ <span class="price-including-tax">
284
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
285
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
286
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
287
+ </span>
288
+ </span>
289
+ <?php else: ?>
290
+ <p class="special-price">
291
+ <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
292
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
293
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmountInclTaxes, false) ?>
294
+ </span>
295
+ </p>
296
+ <span class="weee">(
297
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
298
+ <?php echo $_weeeSeparator; ?>
299
+ <?php echo $_weeeTaxAttribute->getName(); ?>
300
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
301
+ <?php $_weeeSeparator = ' + '; ?>
302
+ <?php endforeach; ?>
303
+ )</span>
304
+ <?php endif; ?>
305
+ </p>
306
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
307
+ <p class="old-price">
308
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
309
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
310
+ <?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
311
+ </span>
312
+ </p>
313
+
314
+ <p class="special-price">
315
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
316
+ <span class="price-excluding-tax">
317
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
318
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
319
+ <?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
320
+ </span>
321
+ </span>
322
+ <span class="weee">(
323
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
324
+ <?php echo $_weeeSeparator; ?>
325
+ <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
326
+ <?php $_weeeSeparator = ' + '; ?>
327
+ <?php endforeach; ?>
328
+ )</span>
329
+ <span class="price-including-tax">
330
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
331
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
332
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
333
+ </span>
334
+ </span>
335
+ </p>
336
+ <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
337
+ <p class="old-price">
338
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
339
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
340
+ <?php echo $_coreHelper->formatPrice($_regularPrice, false) ?>
341
+ </span>
342
+ </p>
343
+
344
+ <p class="special-price">
345
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
346
+ <span class="price-excluding-tax">
347
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
348
+ <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
349
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
350
+ </span>
351
+ </span>
352
+ <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
353
+ <span class="weee">
354
+ <?php echo $_weeeTaxAttribute->getName(); ?>
355
+ : <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
356
+ </span>
357
+ <?php endforeach; ?>
358
+ <span class="price-including-tax">
359
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
360
+ <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
361
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
362
+ </span>
363
+ </span>
364
+ </p>
365
+ <?php else: // excl. ?>
366
+ <p class="old-price">
367
+ <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
368
+ <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
369
+ <?php echo $_coreHelper->formatPrice($_regularPrice, false) ?>
370
+ </span>
371
+ </p>
372
+
373
+ <?php if ($_taxHelper->displayBothPrices()): ?>
374
+ <p class="special-price">
375
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
376
+ <span class="price-excluding-tax">
377
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
378
+ <span class="price"
379
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
380
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
381
+ </span>
382
+ </span>
383
+ <span class="price-including-tax">
384
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
385
+ <span class="price"
386
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
387
+ <?php echo $_coreHelper->formatPrice($_finalPriceInclTax, false) ?>
388
+ </span>
389
+ </span>
390
+ </p>
391
+ <?php else: ?>
392
+ <p class="special-price">
393
+ <span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
394
+ <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
395
+ <?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
396
+ </span>
397
+ </p>
398
+ <?php endif; ?>
399
+ <?php endif; ?>
400
+
401
+ <?php endif; /* if ($_finalPrice == $_price): */ ?>
402
+
403
+ <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_convertedFinalPrice): ?>
404
+
405
+ <?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
406
+ <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1, 4))): ?>
407
+ <?php $_minimalPriceDisplayValue = $_minimalPrice + $_weeeTaxAmount; ?>
408
+ <?php endif; ?>
409
+
410
+ <?php if ($this->getUseLinkForAsLowAs()): ?>
411
+ <a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
412
+ <?php else: ?>
413
+ <span class="minimal-price-link">
414
+ <?php endif ?>
415
+ <span class="label"><?php echo $this->__('As low as:') ?></span>
416
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
417
+ <?php echo $_coreHelper->formatPrice($_minimalPriceDisplayValue, false) ?>
418
+ </span>
419
+ <?php if ($this->getUseLinkForAsLowAs()): ?>
420
+ </a>
421
+ <?php else: ?>
422
+ </span>
423
+ <?php endif ?>
424
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
425
+ </div>
426
+
427
+ <?php else: /* if (!$_product->isGrouped()): */ ?>
428
+ <?php
429
+ $showMinPrice = $this->getDisplayMinimalPrice();
430
+ if ($showMinPrice && $_minimalPriceValue) {
431
+ $_exclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue);
432
+ $_inclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue, true);
433
+ $price = $showMinPrice ? $_minimalPriceValue : 0;
434
+ } else {
435
+ $price = $_convertedFinalPrice;
436
+ $_exclTax = $_taxHelper->getPrice($_product, $price);
437
+ $_inclTax = $_taxHelper->getPrice($_product, $price, true);
438
+ }
439
+ ?>
440
+ <?php if ($price): ?>
441
+ <div class="price-box">
442
+ <p<?php if ($showMinPrice): ?> class="minimal-price"<?php endif ?>>
443
+ <?php if ($showMinPrice): ?>
444
+ <span class="price-label"><?php echo $this->__('Starting at:') ?></span>
445
+ <?php endif ?>
446
+ <?php if ($_taxHelper->displayBothPrices()): ?>
447
+ <span class="price-excluding-tax">
448
+ <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
449
+ <span class="price"
450
+ id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
451
+ <?php echo $_coreHelper->formatPrice($_exclTax, false) ?>
452
+ </span>
453
+ </span>
454
+ <span class="price-including-tax">
455
+ <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
456
+ <span class="price"
457
+ id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
458
+ <?php echo $_coreHelper->formatPrice($_inclTax, false) ?>
459
+ </span>
460
+ </span>
461
+ <?php else: ?>
462
+ <?php
463
+ $_showPrice = $_inclTax;
464
+ if (!$_taxHelper->displayPriceIncludingTax()) {
465
+ $_showPrice = $_exclTax;
466
+ }
467
+ ?>
468
+ <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
469
+ <?php echo $_coreHelper->formatPrice($_showPrice, false) ?>
470
+ </span>
471
+ <?php endif; ?>
472
+ </p>
473
+ </div>
474
+ <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
475
+ <?php endif; /* if (!$_product->isGrouped()): */ ?>
476
+ <?php
477
+ else:
478
+ $url=Mage::getBaseUrl().'customer/account/login/';
479
+ echo "<b><a href='".$url."'>Login</a> to see Price</b>";
480
+ endif;?>
app/design/frontend/base/default/template/hideprice/catalog/product/view.phtml ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Product view template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View
31
+ * @see Mage_Review_Block_Product_View
32
+ */
33
+ ?>
34
+ <?php $_helper = $this->helper('catalog/output'); ?>
35
+ <?php $_product = $this->getProduct(); ?>
36
+ <script type="text/javascript">
37
+ var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
38
+ </script>
39
+ <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
40
+ <div class="product-view">
41
+ <div class="product-essential">
42
+ <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
43
+ <?php echo $this->getBlockHtml('formkey') ?>
44
+ <div class="no-display">
45
+ <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
46
+ <input type="hidden" name="related_product" id="related-products-field" value="" />
47
+ </div>
48
+
49
+ <div class="product-shop">
50
+ <div class="product-name">
51
+ <h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
52
+ </div>
53
+
54
+ <?php if ($this->canEmailToFriend()): ?>
55
+ <p class="email-friend"><a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a></p>
56
+ <?php endif; ?>
57
+
58
+ <?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
59
+ <?php echo $this->getChildHtml('alert_urls') ?>
60
+ <?php echo $this->getChildHtml('product_type_data') ?>
61
+ <?php echo $this->getTierPriceHtml() ?>
62
+ <?php echo $this->getChildHtml('extrahint') ?>
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 if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
69
+ <span class="or"><?php echo $this->__('OR') ?></span>
70
+ <?php endif; ?>
71
+ <?php endif; ?>
72
+ <?php echo $this->getChildHtml('addto') ?>
73
+ </div>
74
+ <?php echo $this->getChildHtml('extra_buttons') ?>
75
+ <?php elseif (!$_product->isSaleable()): ?>
76
+ <div class="add-to-box">
77
+ <?php echo $this->getChildHtml('addto') ?>
78
+ </div>
79
+ <?php endif; ?>
80
+
81
+ <?php if ($_product->getShortDescription()):?>
82
+ <div class="short-description">
83
+ <h2><?php echo $this->__('Quick Overview') ?></h2>
84
+ <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
85
+ </div>
86
+ <?php endif;?>
87
+
88
+ <?php echo $this->getChildHtml('other');?>
89
+
90
+ <?php if ($_product->isSaleable() && $this->hasOptions()):?>
91
+ <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
92
+ <?php endif;?>
93
+
94
+ </div>
95
+
96
+ <div class="product-img-box">
97
+ <?php echo $this->getChildHtml('media') ?>
98
+ </div>
99
+
100
+ <div class="clearer"></div>
101
+ <?php if ($_product->isSaleable() && $this->hasOptions()):?>
102
+ <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
103
+ <?php endif;?>
104
+ </form>
105
+ <script type="text/javascript">
106
+ //<![CDATA[
107
+ var productAddToCartForm = new VarienForm('product_addtocart_form');
108
+ productAddToCartForm.submit = function(button, url) {
109
+ if (this.validator.validate()) {
110
+ var form = this.form;
111
+ var oldUrl = form.action;
112
+
113
+ if (url) {
114
+ form.action = url;
115
+ }
116
+ var e = null;
117
+ try {
118
+ this.form.submit();
119
+ } catch (e) {
120
+ }
121
+ this.form.action = oldUrl;
122
+ if (e) {
123
+ throw e;
124
+ }
125
+
126
+ if (button && button != 'undefined') {
127
+ button.disabled = true;
128
+ }
129
+ }
130
+ }.bind(productAddToCartForm);
131
+
132
+ productAddToCartForm.submitLight = function(button, url){
133
+ if(this.validator) {
134
+ var nv = Validation.methods;
135
+ delete Validation.methods['required-entry'];
136
+ delete Validation.methods['validate-one-required'];
137
+ delete Validation.methods['validate-one-required-by-name'];
138
+ // Remove custom datetime validators
139
+ for (var methodName in Validation.methods) {
140
+ if (methodName.match(/^validate-datetime-.*/i)) {
141
+ delete Validation.methods[methodName];
142
+ }
143
+ }
144
+
145
+ if (this.validator.validate()) {
146
+ if (url) {
147
+ this.form.action = url;
148
+ }
149
+ this.form.submit();
150
+ }
151
+ Object.extend(Validation.methods, nv);
152
+ }
153
+ }.bind(productAddToCartForm);
154
+ //]]>
155
+ </script>
156
+ </div>
157
+
158
+ <div class="product-collateral">
159
+ <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
160
+ <div class="box-collateral <?php echo "box-{$alias}"?>">
161
+ <?php if ($title = $this->getChildData($alias, 'title')):?>
162
+ <h2><?php echo $this->escapeHtml($title); ?></h2>
163
+ <?php endif;?>
164
+ <?php echo $html; ?>
165
+ </div>
166
+ <?php endforeach;?>
167
+ <?php echo $this->getChildHtml('upsell_products') ?>
168
+ <?php echo $this->getChildHtml('product_additional_data') ?>
169
+ </div>
170
+ </div>
app/design/frontend/base/default/template/hideprice/catalog/product/view.phtml~ ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+
27
+ /**
28
+ * Product view template
29
+ *
30
+ * @see Mage_Catalog_Block_Product_View
31
+ * @see Mage_Review_Block_Product_View
32
+ */
33
+ ?>
34
+ <?php $_helper = $this->helper('catalog/output'); ?>
35
+ <?php $_product = $this->getProduct(); ?>
36
+ <script type="text/javascript">
37
+ var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
38
+ </script>
39
+ <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
40
+ <div class="product-view">
41
+ <div class="product-essential">
42
+ <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
43
+ <?php echo $this->getBlockHtml('formkey') ?>
44
+ <div class="no-display">
45
+ <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
46
+ <input type="hidden" name="related_product" id="related-products-field" value="" />
47
+ </div>
48
+
49
+ <div class="product-shop">
50
+ <div class="product-name">
51
+ <h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
52
+ </div>
53
+
54
+ <?php if ($this->canEmailToFriend()): ?>
55
+ <p class="email-friend"><a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a></p>
56
+ <?php endif; ?>
57
+
58
+ <?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
59
+ <?php echo $this->getChildHtml('alert_urls') ?>
60
+ <?php echo $this->getChildHtml('product_type_data') ?>
61
+ <?php echo $this->getTierPriceHtml() ?>
62
+ <?php echo $this->getChildHtml('extrahint') ?>
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 if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
69
+ <span class="or"><?php echo $this->__('OR') ?></span>
70
+ <?php endif; ?>
71
+ <?php endif; ?>
72
+ <?php echo $this->getChildHtml('addto') ?>
73
+ </div>
74
+ <?php echo $this->getChildHtml('extra_buttons') ?>
75
+ <?php elseif (!$_product->isSaleable()): ?>
76
+ <div class="add-to-box">
77
+ <?php echo $this->getChildHtml('addto') ?>
78
+ </div>
79
+ <?php endif; ?>
80
+
81
+ <?php if ($_product->getShortDescription()):?>
82
+ <div class="short-description">
83
+ <h2><?php echo $this->__('Quick Overview') ?></h2>
84
+ <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
85
+ </div>
86
+ <?php endif;?>
87
+
88
+ <?php echo $this->getChildHtml('other');?>
89
+
90
+ <?php if ($_product->isSaleable() && $this->hasOptions()):?>
91
+ <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
92
+ <?php endif;?>
93
+
94
+ </div>
95
+
96
+ <div class="product-img-box">
97
+ <?php echo $this->getChildHtml('media') ?>
98
+ </div>
99
+
100
+ <div class="clearer"></div>
101
+ <?php if ($_product->isSaleable() && $this->hasOptions()):?>
102
+ <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
103
+ <?php endif;?>
104
+ </form>
105
+ <script type="text/javascript">
106
+ //<![CDATA[
107
+ var productAddToCartForm = new VarienForm('product_addtocart_form');
108
+ productAddToCartForm.submit = function(button, url) {
109
+ if (this.validator.validate()) {
110
+ var form = this.form;
111
+ var oldUrl = form.action;
112
+
113
+ if (url) {
114
+ form.action = url;
115
+ }
116
+ var e = null;
117
+ try {
118
+ this.form.submit();
119
+ } catch (e) {
120
+ }
121
+ this.form.action = oldUrl;
122
+ if (e) {
123
+ throw e;
124
+ }
125
+
126
+ if (button && button != 'undefined') {
127
+ button.disabled = true;
128
+ }
129
+ }
130
+ }.bind(productAddToCartForm);
131
+
132
+ productAddToCartForm.submitLight = function(button, url){
133
+ if(this.validator) {
134
+ var nv = Validation.methods;
135
+ delete Validation.methods['required-entry'];
136
+ delete Validation.methods['validate-one-required'];
137
+ delete Validation.methods['validate-one-required-by-name'];
138
+ // Remove custom datetime validators
139
+ for (var methodName in Validation.methods) {
140
+ if (methodName.match(/^validate-datetime-.*/i)) {
141
+ delete Validation.methods[methodName];
142
+ }
143
+ }
144
+
145
+ if (this.validator.validate()) {
146
+ if (url) {
147
+ this.form.action = url;
148
+ }
149
+ this.form.submit();
150
+ }
151
+ Object.extend(Validation.methods, nv);
152
+ }
153
+ }.bind(productAddToCartForm);
154
+ //]]>
155
+ </script>
156
+ </div>
157
+
158
+ <div class="product-collateral">
159
+ <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
160
+ <div class="box-collateral <?php echo "box-{$alias}"?>">
161
+ <?php if ($title = $this->getChildData($alias, 'title')):?>
162
+ <h2><?php echo $this->escapeHtml($title); ?></h2>
163
+ <?php endif;?>
164
+ <?php echo $html; ?>
165
+ </div>
166
+ <?php endforeach;?>
167
+ <?php echo $this->getChildHtml('upsell_products') ?>
168
+ <?php echo $this->getChildHtml('product_additional_data') ?>
169
+ </div>
170
+ </div>
app/design/frontend/base/default/template/hideprice/catalog/product/view/addtocart.phtml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ $configValue = Mage::getStoreConfig('tab1/general/active');
29
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes'): ?>
30
+
31
+ <?php $_product = $this->getProduct(); ?>
32
+ <?php $buttonTitle = $this->__('Add to Cart'); ?>
33
+ <?php if($_product->isSaleable()): ?>
34
+ <div class="add-to-cart">
35
+ <?php if(!$_product->isGrouped()): ?>
36
+ <label for="qty"><?php echo $this->__('Qty:') ?></label>
37
+ <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
38
+ <?php endif; ?>
39
+ <button type="button" title="<?php echo $buttonTitle ?>" id="product-addtocart-button" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
40
+ <?php echo $this->getChildHtml('', true, true) ?>
41
+ </div>
42
+ <?php endif; ?>
43
+ <?php
44
+ else:
45
+ ?><div class="add-to-cart"><?php
46
+ $url=Mage::getBaseUrl().'customer/account/login/';
47
+ echo "<b><a href='".$url."'>Login</a> to see Add to Cart Button</b>";?>
48
+ </div>
49
+ <?php endif;?>
50
+
app/design/frontend/base/default/template/hideprice/catalog/product/view/addtocart.phtml~ ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ $configValue = Mage::getStoreConfig('tab1/general/active');
29
+ if(Mage::getSingleton('customer/session')->isLoggedIn() || $configValue=='Yes'): ?>
30
+
31
+ <?php $_product = $this->getProduct(); ?>
32
+ <?php $buttonTitle = $this->__('Add to Cart'); ?>
33
+ <?php if($_product->isSaleable()): ?>
34
+ <div class="add-to-cart">
35
+ <?php if(!$_product->isGrouped()): ?>
36
+ <label for="qty"><?php echo $this->__('Qty:') ?></label>
37
+ <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
38
+ <?php endif; ?>
39
+ <button type="button" title="<?php echo $buttonTitle ?>" id="product-addtocart-button" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
40
+ <?php echo $this->getChildHtml('', true, true) ?>
41
+ </div>
42
+ <?php endif; ?>
43
+ <?php
44
+ else:
45
+ ?><div class="add-to-cart"><?php
46
+ $url=Mage::getBaseUrl().'customer/account/login/';
47
+ echo "<b><a href='".$url."'>Login</a> to see Add to Cart Button</b>";?>
48
+ </div>
49
+ <?php endif;?>
50
+
app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/column/new_default_list.phtml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="block block-products">
30
+ <div class="block-title">
31
+ <strong><span><?php echo $this->__('New Products') ?></span></strong>
32
+ </div>
33
+ <div class="block-content">
34
+ <?php echo $this->getPagerHtml() ?>
35
+ <?php $suffix = $this->getNameInLayout(); ?>
36
+ <ol class="mini-products-list" id="widget-new-products-<?php echo $suffix; ?>">
37
+ <?php foreach ($_products->getItems() as $_product): ?>
38
+ <li class="item">
39
+ <a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(50) ?>" width="50" height="50" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
40
+ <div class="product-details">
41
+ <p class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></p>
42
+ <?php echo $this->getPriceHtml($_product, true, '-widget-new-'.$suffix) ?>
43
+ <?php if ($_product->getIsSalable()): ?>
44
+ <a href="<?php echo $this->getAddToCartUrl($_product) ?>" class="link-cart"><?php echo $this->__('Add to Cart') ?></a>
45
+ <?php else: ?>
46
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
47
+ <?php endif; ?>
48
+ </div>
49
+ </li>
50
+ <?php endforeach; ?>
51
+ </ol>
52
+ <script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ <?php endif; ?>
app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/column/new_default_list.phtml~ ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="block block-products">
30
+ <div class="block-title">
31
+ <strong><span><?php echo $this->__('New Products') ?></span></strong>
32
+ </div>
33
+ <div class="block-content">
34
+ <?php echo $this->getPagerHtml() ?>
35
+ <?php $suffix = $this->getNameInLayout(); ?>
36
+ <ol class="mini-products-list" id="widget-new-products-<?php echo $suffix; ?>">
37
+ <?php foreach ($_products->getItems() as $_product): ?>
38
+ <li class="item">
39
+ <a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(50) ?>" width="50" height="50" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
40
+ <div class="product-details">
41
+ <p class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></p>
42
+ <?php echo $this->getPriceHtml($_product, true, '-widget-new-'.$suffix) ?>
43
+ <?php if ($_product->getIsSalable()): ?>
44
+ <a href="<?php echo $this->getAddToCartUrl($_product) ?>" class="link-cart"><?php echo $this->__('Add to Cart') ?></a>
45
+ <?php else: ?>
46
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
47
+ <?php endif; ?>
48
+ </div>
49
+ </li>
50
+ <?php endforeach; ?>
51
+ </ol>
52
+ <script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ <?php endif; ?>
app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/column/new_images_list.phtml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="block block-list">
30
+ <div class="block-title">
31
+ <strong><span><?php echo $this->__('New Products') ?></span></strong>
32
+ </div>
33
+ <div class="block-content">
34
+ <?php echo $this->getPagerHtml() ?>
35
+ <?php $suffix = $this->getNameInLayout(); ?>
36
+ <ol class="mini-products-images-list" id="widget-new-products-<?php echo $suffix; ?>">
37
+ <?php foreach ($_products->getItems() as $_product): ?>
38
+ <li class="item">
39
+ <a class="product-image" href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(76) ?>" width="76" height="76" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
40
+ </li>
41
+ <?php endforeach; ?>
42
+ </ol>
43
+ <script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <?php endif; ?>
app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/column/new_names_list.phtml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="block block-list">
30
+ <div class="block-title">
31
+ <strong><span><?php echo $this->__('New Products') ?></span></strong>
32
+ </div>
33
+ <div class="block-content">
34
+ <?php echo $this->getPagerHtml() ?>
35
+ <?php $suffix = $this->getNameInLayout(); ?>
36
+ <ol id="widget-new-products-<?php echo $suffix; ?>">
37
+ <?php foreach ($_products->getItems() as $_product): ?>
38
+ <li class="item">
39
+ <p class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></p>
40
+ </li>
41
+ <?php endforeach; ?>
42
+ </ol>
43
+ <script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <?php endif; ?>
app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/content/new_grid.phtml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="widget-title">
30
+ <h2><?php echo $this->__('New Products') ?></h2>
31
+ </div>
32
+ <div class="widget-products">
33
+ <?php echo $this->getPagerHtml() ?>
34
+ <?php $_columnCount = $this->getColumnCount(); ?>
35
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
36
+ <?php if ($i++%$_columnCount==0): ?>
37
+ <ul class="products-grid">
38
+ <?php endif ?>
39
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
40
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(85) ?>" width="85" height="85" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
41
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></h3>
42
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
43
+ <?php echo $this->getPriceHtml($_product, true, '-widget-new-grid') ?>
44
+ <div class="actions">
45
+ <?php if ($_product->isSaleable()): ?>
46
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
47
+ <?php else: ?>
48
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
49
+ <?php endif; ?>
50
+ <ul class="add-to-links">
51
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
52
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
53
+ <?php endif; ?>
54
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
55
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
56
+ <?php endif; ?>
57
+ </ul>
58
+ </div>
59
+ </li>
60
+ <?php if ($i%$_columnCount==0 || $i==count($_products)): ?>
61
+ </ul>
62
+ <?php endif ?>
63
+ <?php endforeach; ?>
64
+ </div>
65
+ </div>
66
+ <?php endif; ?>
app/design/frontend/base/default/template/hideprice/catalog/product/widget/new/content/new_grid.phtml~ ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2014 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php if (($_products = $this->getProductCollection()) && $_products->getSize()): ?>
28
+ <div class="widget widget-new-products">
29
+ <div class="widget-title">
30
+ <h2><?php echo $this->__('New Products') ?></h2>
31
+ </div>
32
+ <div class="widget-products">
33
+ <?php echo $this->getPagerHtml() ?>
34
+ <?php $_columnCount = $this->getColumnCount(); ?>
35
+ <?php $i=0; foreach ($_products->getItems() as $_product): ?>
36
+ <?php if ($i++%$_columnCount==0): ?>
37
+ <ul class="products-grid">
38
+ <?php endif ?>
39
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
40
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(85) ?>" width="85" height="85" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" /></a>
41
+ <h3 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>)"><?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getName() , 'name') ?></a></h3>
42
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
43
+ <?php echo $this->getPriceHtml($_product, true, '-widget-new-grid') ?>
44
+ <div class="actions">
45
+ <?php if ($_product->isSaleable()): ?>
46
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
47
+ <?php else: ?>
48
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
49
+ <?php endif; ?>
50
+ <ul class="add-to-links">
51
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
52
+ <li><a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
53
+ <?php endif; ?>
54
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
55
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
56
+ <?php endif; ?>
57
+ </ul>
58
+ </div>
59
+ </li>
60
+ <?php if ($i%$_columnCount==0 || $i==count($_products)): ?>
61
+ </ul>
62
+ <?php endif ?>
63
+ <?php endforeach; ?>
64
+ </div>
65
+ </div>
66
+ <?php endif; ?>
app/etc/modules/Wli_Hideprice.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Wli_Hideprice>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ </Wli_Hideprice>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>hidepricebywebline</name>
4
+ <version>0.1.0</version>
5
+ <stability>stable</stability>
6
+ <license>GNU</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Hideprice by webline stable version release</summary>
10
+ <description>Hideprice by webline stable version release</description>
11
+ <notes>Hideprice by webline stable version release</notes>
12
+ <authors><author><name>Atul Mehta</name><user>Weblineindia</user><email>partners@weblineindia.com</email></author></authors>
13
+ <date>2015-08-11</date>
14
+ <time>10:57:34</time>
15
+ <contents><target name="magelocal"><dir name="Wli"><dir name="Hideprice"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Values.php" hash="df3c500c9010d03ef28a54039e49d9f6"/><file name="Values.php~" hash="df3c500c9010d03ef28a54039e49d9f6"/></dir></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="bcd2bc9e7bf067c74d06774e48ca3010"/><file name="adminhtml.xml~" hash="bcd2bc9e7bf067c74d06774e48ca3010"/><file name="config.xml" hash="4a5b3a59c3f78f842e698427af11d968"/><file name="config.xml~" hash="4a5b3a59c3f78f842e698427af11d968"/><file name="system.xml" hash="8726fa9acf9da115904c7f47454b7c50"/><file name="system.xml~" hash="8726fa9acf9da115904c7f47454b7c50"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wli_Hideprice.xml" hash="da1bad5bd400278f1f40b25dc47383e6"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="hideprice"><dir name="catalog"><dir name="product"><dir name="compare"><file name="list.phtml" hash="91f8994f400516a674d2aae589a92b1e"/><file name="list.phtml~" hash="91f8994f400516a674d2aae589a92b1e"/></dir><file name="list.phtml" hash="d103a46468efa4ccc2388237c3013119"/><file name="list.phtml~" hash="d103a46468efa4ccc2388237c3013119"/><file name="price.phtml" hash="b9ce04ce9a2737717f37b30b4a56fd54"/><file name="price.phtml~" hash="b9ce04ce9a2737717f37b30b4a56fd54"/><dir name="view"><file name="addtocart.phtml" hash="bba2eb857a3fab9966e57c52ab13f75f"/><file name="addtocart.phtml~" hash="bba2eb857a3fab9966e57c52ab13f75f"/></dir><file name="view.phtml" hash="4bbafc14286a318f0b98fe4a7425eac2"/><file name="view.phtml~" hash="4bbafc14286a318f0b98fe4a7425eac2"/><dir name="widget"><dir name="new"><dir name="column"><file name="new_default_list.phtml" hash="dcf590457d8452a484982d92b07d4ddb"/><file name="new_default_list.phtml~" hash="dcf590457d8452a484982d92b07d4ddb"/><file name="new_images_list.phtml" hash="3857d8040dc4bdade3bf6f6bf61f7133"/><file name="new_names_list.phtml" hash="f6634f4255ab4cffd99460d9909a59c6"/></dir><dir name="content"><file name="new_grid.phtml" hash="fcc88367a6195d901ac6fd01d2061ac5"/><file name="new_grid.phtml~" hash="fcc88367a6195d901ac6fd01d2061ac5"/></dir></dir></dir></dir></dir></dir></dir><dir name="layout"><file name="hideprice.xml" hash="b9e59cd6c30d39514f5bd412917e830e"/></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>