Version Notes
stable version release
Download this release
Release Info
Developer | SSTech |
Extension | SSTech_Session |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/SSTech/Session/etc/adminhtml.xml +22 -0
- app/code/community/SSTech/Session/etc/config.xml +30 -0
- app/code/community/SSTech/Session/etc/system.xml +90 -0
- app/design/frontend/default/default/layout/hideprice.xml +70 -0
- app/design/frontend/default/default/template/hideprice/addto.phtml +23 -0
- app/design/frontend/default/default/template/hideprice/addtocart.phtml +18 -0
- app/design/frontend/default/default/template/hideprice/compare/list.phtml +153 -0
- app/design/frontend/default/default/template/hideprice/list.phtml +175 -0
- app/design/frontend/default/default/template/hideprice/price.phtml +396 -0
- app/design/frontend/default/default/template/hideprice/related.phtml +70 -0
- app/design/frontend/default/default/template/hideprice/summary.phtml +19 -0
- app/design/frontend/default/default/template/hideprice/summary_short.phtml +20 -0
- app/design/frontend/default/default/template/hideprice/view.phtml +164 -0
- app/etc/modules/SSTech_Session.xml +9 -0
- package.xml +18 -0
app/code/community/SSTech/Session/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 |
+
<itemconfig>
|
12 |
+
<title>Tab #1</title>
|
13 |
+
</itemconfig>
|
14 |
+
</children>
|
15 |
+
</config>
|
16 |
+
</children>
|
17 |
+
</system>
|
18 |
+
</children>
|
19 |
+
</admin>
|
20 |
+
</resources>
|
21 |
+
</acl>
|
22 |
+
</config>
|
app/code/community/SSTech/Session/etc/config.xml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<SSTech_Session>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</SSTech_Session>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<layout>
|
10 |
+
<updates>
|
11 |
+
<session>
|
12 |
+
<file>hideprice.xml</file>
|
13 |
+
</session>
|
14 |
+
</updates>
|
15 |
+
</layout>
|
16 |
+
</frontend>
|
17 |
+
<default>
|
18 |
+
<itemconfig>
|
19 |
+
<session_config>
|
20 |
+
<active>1</active>
|
21 |
+
</session_config>
|
22 |
+
<attribute_config>
|
23 |
+
<price>0</price>
|
24 |
+
<addtocart>0</addtocart>
|
25 |
+
<wc>0</wc>
|
26 |
+
<review>0</review>
|
27 |
+
</attribute_config>
|
28 |
+
</itemconfig>
|
29 |
+
</default>
|
30 |
+
</config>
|
app/code/community/SSTech/Session/etc/system.xml
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<sstech translate="label">
|
5 |
+
<label>SSTech Extension</label>
|
6 |
+
<sort_order>150</sort_order>
|
7 |
+
</sstech>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<itemconfig translate="label" module="adminhtml">
|
11 |
+
<label>Hide For Non Register</label>
|
12 |
+
<tab>sstech</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 |
+
<session_config translate="label">
|
19 |
+
<label>Hide For Non Register</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 |
+
<active translate="label comment">
|
26 |
+
<label>Enable Module</label>
|
27 |
+
<frontend_type>select</frontend_type>
|
28 |
+
<sort_order>51</sort_order>
|
29 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
30 |
+
<show_in_default>1</show_in_default>
|
31 |
+
<show_in_website>1</show_in_website>
|
32 |
+
<show_in_store>1</show_in_store>
|
33 |
+
</active>
|
34 |
+
</fields>
|
35 |
+
</session_config>
|
36 |
+
</groups>
|
37 |
+
<groups>
|
38 |
+
<listitem>
|
39 |
+
<label>System Configuration</label>
|
40 |
+
<sort_order>52</sort_order>
|
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 |
+
<fields>
|
45 |
+
<price translate="label comment">
|
46 |
+
<label>Show Price</label>
|
47 |
+
<frontend_type>select</frontend_type>
|
48 |
+
<sort_order>53</sort_order>
|
49 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
+
<comment>Yes to show price for non register user</comment>
|
54 |
+
</price>
|
55 |
+
<addtocart translate="label comment">
|
56 |
+
<label>Show Add to cart</label>
|
57 |
+
<frontend_type>select</frontend_type>
|
58 |
+
<sort_order>54</sort_order>
|
59 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
60 |
+
<show_in_default>1</show_in_default>
|
61 |
+
<show_in_website>1</show_in_website>
|
62 |
+
<show_in_store>1</show_in_store>
|
63 |
+
<comment>Yes to show addtocart for non register user</comment>
|
64 |
+
</addtocart>
|
65 |
+
<wc translate="label comment">
|
66 |
+
<label>Show Wishlist and Compare</label>
|
67 |
+
<frontend_type>select</frontend_type>
|
68 |
+
<sort_order>55</sort_order>
|
69 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
70 |
+
<show_in_default>1</show_in_default>
|
71 |
+
<show_in_website>1</show_in_website>
|
72 |
+
<show_in_store>1</show_in_store>
|
73 |
+
<comment>Yes to show compare and wishlist for non register user</comment>
|
74 |
+
</wc>
|
75 |
+
<review translate="label comment">
|
76 |
+
<label>Show Reviews</label>
|
77 |
+
<frontend_type>select</frontend_type>
|
78 |
+
<sort_order>56</sort_order>
|
79 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
80 |
+
<show_in_default>1</show_in_default>
|
81 |
+
<show_in_website>1</show_in_website>
|
82 |
+
<show_in_store>1</show_in_store>
|
83 |
+
<comment>Yes to show review for non register user</comment>
|
84 |
+
</review>
|
85 |
+
</fields>
|
86 |
+
</listitem>
|
87 |
+
</groups>
|
88 |
+
</itemconfig>
|
89 |
+
</sections>
|
90 |
+
</config>
|
app/design/frontend/default/default/layout/hideprice.xml
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="catalog_product_price_template">
|
5 |
+
<action method="addPriceBlockType" ifconfig="itemconfig/session_config/active" ><type>simple</type><block>catalog/product_price</block><template>hideprice/price.phtml</template></action>
|
6 |
+
<action method="addPriceBlockType" ifconfig="itemconfig/session_config/active"><type>grouped</type><block>catalog/product_price</block><template>hideprice/price.phtml</template></action>
|
7 |
+
<action method="addPriceBlockType" ifconfig="itemconfig/session_config/active"><type>configurable</type><block>catalog/product_price</block><template>hideprice/price.phtml</template></action>
|
8 |
+
<action method="addPriceBlockType" ifconfig="itemconfig/session_config/active"><type>virtual</type><block>catalog/product_price</block><template>hideprice/price.phtml</template></action>
|
9 |
+
<action method="addPriceBlockType" ifconfig="itemconfig/session_config/active"><type>bundled</type><block>catalog/product_price</block><template>hideprice/price.phtml</template></action>
|
10 |
+
</reference>
|
11 |
+
</default>
|
12 |
+
<catalog_category_default>
|
13 |
+
<reference name="product_list">
|
14 |
+
<action method="setTemplate" ifconfig="itemconfig/session_config/active"><template>hideprice/list.phtml</template></action>
|
15 |
+
<action method="addReviewSummaryTemplate" ifconfig="itemconfig/session_config/active"><type>default</type><template>hideprice/summary.phtml</template></action>
|
16 |
+
<action method="addReviewSummaryTemplate" ifconfig="itemconfig/session_config/active"><type>short</type><template>hideprice/summary_short.phtml</template></action>
|
17 |
+
</reference>
|
18 |
+
</catalog_category_default>
|
19 |
+
|
20 |
+
<catalog_category_layered>
|
21 |
+
<reference name="product_list">
|
22 |
+
<action method="setTemplate" ifconfig="itemconfig/session_config/active"><template>hideprice/list.phtml</template></action>
|
23 |
+
</reference>
|
24 |
+
</catalog_category_layered>
|
25 |
+
|
26 |
+
<catalog_product_view>
|
27 |
+
<reference name="product.info.addtocart">
|
28 |
+
<action method="setTemplate" ifconfig="itemconfig/session_config/active"><template>hideprice/addtocart.phtml</template></action>
|
29 |
+
</reference>
|
30 |
+
</catalog_product_view>
|
31 |
+
<catalog_product_view>
|
32 |
+
<reference name="product.info.addto">
|
33 |
+
<action method="setTemplate" ifconfig="itemconfig/session_config/active"><template>hideprice/addto.phtml</template></action>
|
34 |
+
</reference>
|
35 |
+
<!--<reference name="product.info.addto">
|
36 |
+
<action method="setTemplate" ifconfig="itemconfig/session_config/active"><template>hideprice/addto.phtml</template></action>
|
37 |
+
</reference> -->
|
38 |
+
</catalog_product_view>
|
39 |
+
<catalog_product_view>
|
40 |
+
<reference name="content">
|
41 |
+
<reference name="product.info">
|
42 |
+
<action method="addReviewSummaryTemplate" ifconfig="itemconfig/session_config/active"><type>default</type><template>hideprice/summary.phtml</template></action>
|
43 |
+
<action method="setTemplate" ifconfig="itemconfig/session_config/active"><template>hideprice/view.phtml</template></action>
|
44 |
+
</reference>
|
45 |
+
</reference>
|
46 |
+
<reference name="product.info.upsell">
|
47 |
+
<action method="addReviewSummaryTemplate" ifconfig="itemconfig/session_config/active"><type>default</type><template>hideprice/summary.phtml</template></action>
|
48 |
+
</reference>
|
49 |
+
<reference name="right">
|
50 |
+
<reference name="catalog.product.related">
|
51 |
+
<action method="setTemplate" ifconfig="itemconfig/session_config/active"><template>hideprice/related.phtml</template></action>
|
52 |
+
</reference>
|
53 |
+
</reference>
|
54 |
+
</catalog_product_view>
|
55 |
+
<catalog_product_compare_index>
|
56 |
+
<reference name="catalog.compare.list">
|
57 |
+
<action method="setTemplate" ifconfig="itemconfig/session_config/active"><template>hideprice/compare/list.phtml</template></action>
|
58 |
+
</reference>
|
59 |
+
</catalog_product_compare_index>
|
60 |
+
<tag_product_list translate="label">
|
61 |
+
<reference name="content">
|
62 |
+
<reference name="tag_products">
|
63 |
+
<reference name="search_result_list">
|
64 |
+
<action method="setTemplate" ifconfig="itemconfig/session_config/active"><template>hideprice/list.phtml</template></action>
|
65 |
+
</reference>
|
66 |
+
</reference>
|
67 |
+
</reference>
|
68 |
+
</tag_product_list>
|
69 |
+
|
70 |
+
</layout>
|
app/design/frontend/default/default/template/hideprice/addto.phtml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
added by developer condition to check the non register user
|
4 |
+
*/
|
5 |
+
|
6 |
+
?>
|
7 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
8 |
+
<?php $_product = $this->getProduct(); ?>
|
9 |
+
<?php $_wishlistSubmitUrl = $this->helper('wishlist')->getAddUrl($_product); ?>
|
10 |
+
|
11 |
+
<ul class="add-to-links">
|
12 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
13 |
+
<li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, this.href); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
14 |
+
<?php endif; ?>
|
15 |
+
<?php
|
16 |
+
$_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
|
17 |
+
?>
|
18 |
+
<?php if($_compareUrl) : ?>
|
19 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
20 |
+
<?php endif; ?>
|
21 |
+
|
22 |
+
</ul>
|
23 |
+
<?php } ?>
|
app/design/frontend/default/default/template/hideprice/addtocart.phtml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/addtocart')) ) { ?>
|
2 |
+
<?php $_product = $this->getProduct(); ?>
|
3 |
+
<?php $buttonTitle = $this->__('Add to Cart'); ?>
|
4 |
+
<?php if($_product->isSaleable()): ?>
|
5 |
+
<div class="add-to-cart">
|
6 |
+
<?php if(!$_product->isGrouped()): ?>
|
7 |
+
<div class="qty-wrapper">
|
8 |
+
<label for="qty"><?php echo $this->__('Qty:') ?></label>
|
9 |
+
<input type="text" pattern="\d*" name="qty" id="qty" maxlength="12" value="<?php echo max($this->getProductDefaultQty() * 1, 1) ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
|
10 |
+
</div>
|
11 |
+
<?php endif; ?>
|
12 |
+
<div class="add-to-cart-buttons">
|
13 |
+
<button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
|
14 |
+
<?php echo $this->getChildHtml('', true, true) ?>
|
15 |
+
</div>
|
16 |
+
</div>
|
17 |
+
<?php endif; ?>
|
18 |
+
<?php } ?>
|
app/design/frontend/default/default/template/hideprice/compare/list.phtml
ADDED
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="page-title title-buttons">
|
2 |
+
<h1><?php echo $this->__('Compare Products') ?></h1>
|
3 |
+
<a href="#" onclick="window.print(); return false;" class="link-print"><?php echo $this->__('Print This Page') ?></a>
|
4 |
+
</div>
|
5 |
+
<?php $_total=$this->getItems()->count() ?>
|
6 |
+
<?php if($_total): ?>
|
7 |
+
<table class="data-table compare-table" id="product_comparison">
|
8 |
+
<?php $_i=0 ?>
|
9 |
+
<?php foreach($this->getItems() as $_item): ?>
|
10 |
+
<?php if($_i++%10==0): ?>
|
11 |
+
<col width="1" />
|
12 |
+
<?php endif; ?>
|
13 |
+
<col width="<?php echo floor(100/$_total); ?>%" />
|
14 |
+
<?php endforeach; ?>
|
15 |
+
<?php if ($_total>2): ?>
|
16 |
+
<thead>
|
17 |
+
<tr>
|
18 |
+
<?php $_i=0 ?>
|
19 |
+
<?php foreach($this->getItems() as $_item): ?>
|
20 |
+
<?php if($_i++%10==0): ?>
|
21 |
+
<th> </th>
|
22 |
+
<?php endif; ?>
|
23 |
+
<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>
|
24 |
+
<?php endforeach; ?>
|
25 |
+
</tr>
|
26 |
+
</thead>
|
27 |
+
<?php endif ?>
|
28 |
+
<tbody>
|
29 |
+
<tr class="product-shop-row top">
|
30 |
+
<?php $_i=0 ?>
|
31 |
+
<?php foreach($this->getItems() as $_item): ?>
|
32 |
+
<?php if($_i++%10==0): ?>
|
33 |
+
<th> </th>
|
34 |
+
<?php endif; ?>
|
35 |
+
<td>
|
36 |
+
<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>
|
37 |
+
<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>
|
38 |
+
<?php echo $this->getReviewsSummaryHtml($_item, 'short') ?>
|
39 |
+
<?php echo $this->getPriceHtml($_item, true, '-compare-list-top') ?>
|
40 |
+
</td>
|
41 |
+
<?php endforeach; ?>
|
42 |
+
</tr>
|
43 |
+
<tr class="product-shop-row bottom">
|
44 |
+
<?php $_i=0 ?>
|
45 |
+
<?php foreach($this->getItems() as $_item): ?>
|
46 |
+
<?php if($_i++%10==0): ?>
|
47 |
+
<th> </th>
|
48 |
+
<?php endif; ?>
|
49 |
+
<td>
|
50 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/addtocart')) ) { ?>
|
51 |
+
<?php if($_item->isSaleable()): ?>
|
52 |
+
<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 Cartssss') ?></span></span></button></p>
|
53 |
+
<?php else: ?>
|
54 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
55 |
+
<?php endif; ?>
|
56 |
+
<?php }?>
|
57 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
58 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
59 |
+
<ul class="add-to-links">
|
60 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlistsss') ?></a></li>
|
61 |
+
</ul>
|
62 |
+
<?php endif; ?>
|
63 |
+
<?php }?>
|
64 |
+
</td>
|
65 |
+
<?php endforeach; ?>
|
66 |
+
</tr>
|
67 |
+
</tbody>
|
68 |
+
<tbody>
|
69 |
+
<?php foreach ($this->getAttributes() as $_attribute): ?>
|
70 |
+
<tr>
|
71 |
+
<?php $_i=0 ?>
|
72 |
+
<?php foreach($this->getItems() as $_item): ?>
|
73 |
+
<?php if($_i++%10==0): ?>
|
74 |
+
<th><span class="nobr"><?php echo $_attribute->getStoreLabel() ?></span></th>
|
75 |
+
<?php endif; ?>
|
76 |
+
<td>
|
77 |
+
<?php switch ($_attribute->getAttributeCode()) {
|
78 |
+
case "price": ?>
|
79 |
+
<?php echo $this->getPriceHtml($_item, true, '-compare-list-' . $_attribute->getCode()) ?>
|
80 |
+
<?php break;
|
81 |
+
case "small_image": ?>
|
82 |
+
<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()) ?>" />
|
83 |
+
<?php break;
|
84 |
+
case "date":
|
85 |
+
echo substr($this->getProductAttributeValue($_item, $_attribute),0,10);
|
86 |
+
break;
|
87 |
+
default: ?>
|
88 |
+
<div class="std">
|
89 |
+
<?php echo $this->helper('catalog/output')->productAttribute($_item, $this->getProductAttributeValue($_item, $_attribute), $_attribute->getAttributeCode()) ?>
|
90 |
+
</div>
|
91 |
+
<?php break;
|
92 |
+
} ?>
|
93 |
+
</td>
|
94 |
+
<?php endforeach; ?>
|
95 |
+
</tr>
|
96 |
+
<?php endforeach; ?>
|
97 |
+
</tbody>
|
98 |
+
<tbody>
|
99 |
+
<tr class="add-to-row">
|
100 |
+
<?php $_i=0 ?>
|
101 |
+
<?php foreach($this->getItems() as $_item): ?>
|
102 |
+
<?php if($_i++%10==0): ?>
|
103 |
+
<th> </th>
|
104 |
+
<?php endif; ?>
|
105 |
+
<td>
|
106 |
+
<?php echo $this->getPriceHtml($_item, true, '-compare-list-bottom') ?>
|
107 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/addtocart')) ) { ?>
|
108 |
+
<?php if($_item->isSaleable()): ?>
|
109 |
+
<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 Cartzzzz') ?></span></span></button></p>
|
110 |
+
<?php else: ?>
|
111 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
112 |
+
<?php endif; ?>
|
113 |
+
<?php }?>
|
114 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
115 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
116 |
+
<ul class="add-to-links">
|
117 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_item);?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist0000') ?></a></li>
|
118 |
+
</ul>
|
119 |
+
<?php endif; ?>
|
120 |
+
<?php }?>
|
121 |
+
</td>
|
122 |
+
<?php endforeach; ?>
|
123 |
+
</tr>
|
124 |
+
</tbody>
|
125 |
+
</table>
|
126 |
+
<div class="buttons-set">
|
127 |
+
<button type="button" title="<?php echo $this->__('Close Window') ?>" class="button" onclick="window.close();"><span><span><?php echo $this->__('Close Window') ?></span></span></button>
|
128 |
+
<span class="please-wait" id="compare-list-please-wait" style="display:none;">
|
129 |
+
<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...') ?>
|
130 |
+
</span>
|
131 |
+
</div>
|
132 |
+
<script type="text/javascript">
|
133 |
+
decorateTable('product_comparison');
|
134 |
+
|
135 |
+
/**
|
136 |
+
* Send remove item request, after that reload windows
|
137 |
+
*/
|
138 |
+
function removeItem(url)
|
139 |
+
{
|
140 |
+
new Ajax.Request(url, {
|
141 |
+
parameters: {isAjax: 1, method: 'POST'},
|
142 |
+
onLoading: function(){$('compare-list-please-wait').show();},
|
143 |
+
onSuccess: function(transport) {
|
144 |
+
$('compare-list-please-wait').hide();
|
145 |
+
window.location.reload();
|
146 |
+
window.opener.location.reload();
|
147 |
+
}
|
148 |
+
});
|
149 |
+
}
|
150 |
+
</script>
|
151 |
+
<?php else: ?>
|
152 |
+
<script type="text/javascript">window.close();</script>
|
153 |
+
<?php endif; ?>
|
app/design/frontend/default/default/template/hideprice/list.phtml
ADDED
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
added by developer condition to check the non register user
|
4 |
+
*/
|
5 |
+
|
6 |
+
?>
|
7 |
+
<?php
|
8 |
+
$_productCollection=$this->getLoadedProductCollection();
|
9 |
+
$_helper = $this->helper('catalog/output');
|
10 |
+
?>
|
11 |
+
<?php if(!$_productCollection->count()): ?>
|
12 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
13 |
+
<?php else: ?>
|
14 |
+
<div class="category-products">
|
15 |
+
<?php echo $this->getToolbarHtml() ?>
|
16 |
+
<?php // List mode ?>
|
17 |
+
<?php if($this->getMode()!='grid'): ?>
|
18 |
+
<?php $_iterator = 0; ?>
|
19 |
+
<ol class="products-list" id="products-list">
|
20 |
+
<?php foreach ($_productCollection as $_product): ?>
|
21 |
+
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
22 |
+
<?php // Product Image ?>
|
23 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
24 |
+
<?php /* Based on the native RWD styling, product images are displayed at a max of ~400px wide when viewed on a
|
25 |
+
one column page layout with four product columns from a 1280px viewport. For bandwidth reasons,
|
26 |
+
we are going to serve a 300px image, as it will look fine at 400px and most of the times, the image
|
27 |
+
will be displayed at a smaller size (eg, if two column are being used or viewport is smaller than 1280px).
|
28 |
+
This $_imgSize value could even be decreased further, based on the page layout
|
29 |
+
(one column, two column, three column) and number of product columns. */ ?>
|
30 |
+
<?php $_imgSize = 300; ?>
|
31 |
+
<img id="product-collection-image-<?php echo $_product->getId(); ?>"
|
32 |
+
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->keepFrame(false)->resize($_imgSize); ?>"
|
33 |
+
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
34 |
+
</a>
|
35 |
+
<?php // Product description ?>
|
36 |
+
<div class="product-shop">
|
37 |
+
<div class="f-fix">
|
38 |
+
<div class="product-primary">
|
39 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
40 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
|
41 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/review')) ) { ?>
|
42 |
+
<?php if($_product->getRatingSummary()): ?>
|
43 |
+
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
44 |
+
<?php endif; ?>
|
45 |
+
<?php } ?>
|
46 |
+
<?php
|
47 |
+
$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
|
48 |
+
foreach($_nameAfterChildren as $_nameAfterChildName):
|
49 |
+
$_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
|
50 |
+
$_nameAfterChild->setProduct($_product);
|
51 |
+
?>
|
52 |
+
<?php echo $_nameAfterChild->toHtml(); ?>
|
53 |
+
<?php endforeach; ?>
|
54 |
+
</div>
|
55 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/price')) ) { ?>
|
56 |
+
<div class="product-secondary">
|
57 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
58 |
+
</div>
|
59 |
+
<?php }?>
|
60 |
+
|
61 |
+
<div class="product-secondary">
|
62 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/addtocart')) ) { ?>
|
63 |
+
<?php if($_product->isSaleable() && !$_product->canConfigure()): ?>
|
64 |
+
<p class="action"><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></p>
|
65 |
+
<?php elseif($_product->isSaleable()): ?>
|
66 |
+
<p class="action"><a title="<?php echo $this->__('View Details') ?>" class="button" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('View Details') ?></a></p>
|
67 |
+
<?php else: ?>
|
68 |
+
<p class="action availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
69 |
+
<?php endif; ?>
|
70 |
+
<?php }?>
|
71 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
72 |
+
<ul class="add-to-links">
|
73 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
74 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
75 |
+
<?php endif; ?>
|
76 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
77 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
78 |
+
<?php endif; ?>
|
79 |
+
</ul> <?php }?>
|
80 |
+
</div>
|
81 |
+
|
82 |
+
<div class="desc std">
|
83 |
+
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
84 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
</li>
|
89 |
+
<?php endforeach; ?>
|
90 |
+
</ol>
|
91 |
+
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
|
92 |
+
|
93 |
+
<?php else: ?>
|
94 |
+
|
95 |
+
<?php // Grid Mode ?>
|
96 |
+
|
97 |
+
<?php $_collectionSize = $_productCollection->count() ?>
|
98 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
99 |
+
<ul class="products-grid products-grid--max-<?php echo $_columnCount; ?>-col">
|
100 |
+
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
101 |
+
<?php /*if ($i++%$_columnCount==0): ?>
|
102 |
+
<?php endif*/ ?>
|
103 |
+
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
104 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
105 |
+
<?php $_imgSize = 210; ?>
|
106 |
+
<img id="product-collection-image-<?php echo $_product->getId(); ?>"
|
107 |
+
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($_imgSize); ?>"
|
108 |
+
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
109 |
+
</a>
|
110 |
+
<div class="product-info">
|
111 |
+
<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>
|
112 |
+
|
113 |
+
<?php
|
114 |
+
$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
|
115 |
+
foreach($_nameAfterChildren as $_nameAfterChildName):
|
116 |
+
$_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
|
117 |
+
$_nameAfterChild->setProduct($_product);
|
118 |
+
?>
|
119 |
+
<?php echo $_nameAfterChild->toHtml(); ?>
|
120 |
+
<?php endforeach; ?>
|
121 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/price')) ) { ?>
|
122 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
123 |
+
<?php } ?>
|
124 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/review')) ) { ?>
|
125 |
+
<?php if($_product->getRatingSummary()): ?>
|
126 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
127 |
+
<?php endif; ?>
|
128 |
+
<?php } ?>
|
129 |
+
<div class="actions">
|
130 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/addtocart')) ) { ?>
|
131 |
+
<?php if($_product->isSaleable() && !$_product->canConfigure()): ?>
|
132 |
+
<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>
|
133 |
+
<?php elseif($_product->isSaleable()): ?>
|
134 |
+
<a title="<?php echo $this->__('View Details') ?>" class="button" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('View Details') ?></a>
|
135 |
+
<?php else: ?>
|
136 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
137 |
+
<?php endif; ?>
|
138 |
+
<?php }?>
|
139 |
+
|
140 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
141 |
+
<ul class="add-to-links">
|
142 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
143 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
144 |
+
<?php endif; ?>
|
145 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
146 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
147 |
+
<?php endif; ?>
|
148 |
+
</ul>
|
149 |
+
<?php }?>
|
150 |
+
</div>
|
151 |
+
|
152 |
+
</div>
|
153 |
+
</li>
|
154 |
+
<?php /*if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
155 |
+
<?php endif*/ ?>
|
156 |
+
<?php endforeach ?>
|
157 |
+
</ul>
|
158 |
+
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
159 |
+
<?php endif; ?>
|
160 |
+
|
161 |
+
<div class="toolbar-bottom">
|
162 |
+
<?php echo $this->getToolbarHtml() ?>
|
163 |
+
</div>
|
164 |
+
</div>
|
165 |
+
<?php endif; ?>
|
166 |
+
|
167 |
+
<?php
|
168 |
+
//set product collection on after blocks
|
169 |
+
$_afterChildren = $this->getChild('after')->getSortedChildren();
|
170 |
+
foreach($_afterChildren as $_afterChildName):
|
171 |
+
$_afterChild = $this->getChild('after')->getChild($_afterChildName);
|
172 |
+
$_afterChild->setProductCollection($_productCollection);
|
173 |
+
?>
|
174 |
+
<?php echo $_afterChild->toHtml(); ?>
|
175 |
+
<?php endforeach; ?>
|
app/design/frontend/default/default/template/hideprice/price.phtml
ADDED
@@ -0,0 +1,396 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/price')) ) { ?>
|
2 |
+
<?php
|
3 |
+
$_coreHelper = $this->helper('core');
|
4 |
+
$_weeeHelper = $this->helper('weee');
|
5 |
+
$_taxHelper = $this->helper('tax');
|
6 |
+
/* @var $_coreHelper Mage_Core_Helper_Data */
|
7 |
+
/* @var $_weeeHelper Mage_Weee_Helper_Data */
|
8 |
+
/* @var $_taxHelper Mage_Tax_Helper_Data */
|
9 |
+
|
10 |
+
$_product = $this->getProduct();
|
11 |
+
$_storeId = $_product->getStoreId();
|
12 |
+
$_id = $_product->getId();
|
13 |
+
$_weeeSeparator = '';
|
14 |
+
$_simplePricesTax = ($_taxHelper->displayPriceIncludingTax() || $_taxHelper->displayBothPrices());
|
15 |
+
$_minimalPriceValue = $_product->getMinimalPrice();
|
16 |
+
$_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
|
17 |
+
?>
|
18 |
+
|
19 |
+
<?php if (!$_product->isGrouped()): ?>
|
20 |
+
<?php $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product); ?>
|
21 |
+
<?php if ($_weeeHelper->typeOfDisplay($_product, array(Mage_Weee_Model_Tax::DISPLAY_INCL_DESCR, Mage_Weee_Model_Tax::DISPLAY_EXCL_DESCR_INCL, 4))): ?>
|
22 |
+
<?php $_weeeTaxAmount = $_weeeHelper->getAmount($_product); ?>
|
23 |
+
<?php $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForDisplay($_product); ?>
|
24 |
+
<?php endif; ?>
|
25 |
+
<?php $_weeeTaxAmountInclTaxes = $_weeeTaxAmount; ?>
|
26 |
+
<?php if ($_weeeHelper->isTaxable() && !$_taxHelper->priceIncludesTax($_storeId)): ?>
|
27 |
+
<?php $_attributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true); ?>
|
28 |
+
<?php $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_attributes); ?>
|
29 |
+
<?php endif; ?>
|
30 |
+
|
31 |
+
<div class="price-box">
|
32 |
+
<?php $_price = $_taxHelper->getPrice($_product, $_product->getPrice()) ?>
|
33 |
+
<?php $_regularPrice = $_taxHelper->getPrice($_product, $_product->getPrice(), $_simplePricesTax) ?>
|
34 |
+
<?php $_finalPrice = $_taxHelper->getPrice($_product, $_product->getFinalPrice()) ?>
|
35 |
+
<?php $_finalPriceInclTax = $_taxHelper->getPrice($_product, $_product->getFinalPrice(), true) ?>
|
36 |
+
<?php $_weeeDisplayType = $_weeeHelper->getPriceDisplayType(); ?>
|
37 |
+
<?php if ($_finalPrice >= $_price): ?>
|
38 |
+
<?php if ($_taxHelper->displayBothPrices()): ?>
|
39 |
+
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
|
40 |
+
<span class="price-excluding-tax">
|
41 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
42 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
43 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, false) ?>
|
44 |
+
</span>
|
45 |
+
</span>
|
46 |
+
<span class="price-including-tax">
|
47 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
48 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
49 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
50 |
+
</span>
|
51 |
+
</span>
|
52 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
|
53 |
+
<span class="price-excluding-tax">
|
54 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
55 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
56 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, false) ?>
|
57 |
+
</span>
|
58 |
+
</span>
|
59 |
+
<span class="price-including-tax">
|
60 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
61 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
62 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
63 |
+
</span>
|
64 |
+
<span class="weee">(
|
65 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
66 |
+
<?php echo $_weeeSeparator; ?>
|
67 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
68 |
+
<?php $_weeeSeparator = ' + '; ?>
|
69 |
+
<?php endforeach; ?>
|
70 |
+
)</span>
|
71 |
+
</span>
|
72 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
|
73 |
+
<span class="price-excluding-tax">
|
74 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
75 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
76 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, false) ?>
|
77 |
+
</span>
|
78 |
+
</span>
|
79 |
+
<span class="price-including-tax">
|
80 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
81 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
82 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
83 |
+
</span>
|
84 |
+
<span class="weee">(
|
85 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
86 |
+
<?php echo $_weeeSeparator; ?>
|
87 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
|
88 |
+
<?php $_weeeSeparator = ' + '; ?>
|
89 |
+
<?php endforeach; ?>
|
90 |
+
)</span>
|
91 |
+
</span>
|
92 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
|
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->currency($_price, true, false) ?>
|
97 |
+
</span>
|
98 |
+
</span>
|
99 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
100 |
+
<span class="weee">
|
101 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
102 |
+
</span>
|
103 |
+
<?php endforeach; ?>
|
104 |
+
<span class="price-including-tax">
|
105 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
106 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
107 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
108 |
+
</span>
|
109 |
+
</span>
|
110 |
+
<?php else: ?>
|
111 |
+
<span class="price-excluding-tax">
|
112 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
113 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
114 |
+
<?php if ($_finalPrice == $_price): ?>
|
115 |
+
<?php echo $_coreHelper->currency($_price, true, false) ?>
|
116 |
+
<?php else: ?>
|
117 |
+
<?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
|
118 |
+
<?php endif; ?>
|
119 |
+
</span>
|
120 |
+
</span>
|
121 |
+
<span class="price-including-tax">
|
122 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
123 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
124 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax, true, false) ?>
|
125 |
+
</span>
|
126 |
+
</span>
|
127 |
+
<?php endif; ?>
|
128 |
+
<?php else: ?>
|
129 |
+
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
|
130 |
+
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
131 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
|
132 |
+
</span>
|
133 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
|
134 |
+
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
135 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
|
136 |
+
</span>
|
137 |
+
<span class="weee">(
|
138 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
139 |
+
<?php echo $_weeeSeparator; ?>
|
140 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
141 |
+
<?php $_weeeSeparator = ' + '; ?>
|
142 |
+
<?php endforeach; ?>
|
143 |
+
)</span>
|
144 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
|
145 |
+
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
146 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
|
147 |
+
</span>
|
148 |
+
<span class="weee">(
|
149 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
150 |
+
<?php echo $_weeeSeparator; ?>
|
151 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
|
152 |
+
<?php $_weeeSeparator = ' + '; ?>
|
153 |
+
<?php endforeach; ?>
|
154 |
+
)</span>
|
155 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
|
156 |
+
<span class="regular-price"><?php echo $_coreHelper->currency($_price,true,true) ?></span><br />
|
157 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
158 |
+
<span class="weee">
|
159 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
160 |
+
</span>
|
161 |
+
<?php endforeach; ?>
|
162 |
+
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
163 |
+
<?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
|
164 |
+
</span>
|
165 |
+
<?php else: ?>
|
166 |
+
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
167 |
+
<?php if ($_finalPrice == $_price): ?>
|
168 |
+
<?php echo $_coreHelper->currency($_price, true, true) ?>
|
169 |
+
<?php else: ?>
|
170 |
+
<?php echo $_coreHelper->currency($_finalPrice, true, true) ?>
|
171 |
+
<?php endif; ?>
|
172 |
+
</span>
|
173 |
+
<?php endif; ?>
|
174 |
+
<?php endif; ?>
|
175 |
+
<?php else: /* if ($_finalPrice == $_price): */ ?>
|
176 |
+
<?php $_originalWeeeTaxAmount = $_weeeHelper->getOriginalAmount($_product); ?>
|
177 |
+
|
178 |
+
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
|
179 |
+
<p class="old-price">
|
180 |
+
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
181 |
+
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
182 |
+
<?php echo $_coreHelper->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?>
|
183 |
+
</span>
|
184 |
+
</p>
|
185 |
+
|
186 |
+
<?php if ($_taxHelper->displayBothPrices()): ?>
|
187 |
+
<p class="special-price">
|
188 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
189 |
+
<span class="price-excluding-tax">
|
190 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
191 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
192 |
+
<?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmount, true, false) ?>
|
193 |
+
</span>
|
194 |
+
</span>
|
195 |
+
<span class="price-including-tax">
|
196 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
197 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
198 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
199 |
+
</span>
|
200 |
+
</span>
|
201 |
+
</p>
|
202 |
+
<?php else: ?>
|
203 |
+
<p class="special-price">
|
204 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
205 |
+
<span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
206 |
+
<?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmountInclTaxes, true, false) ?>
|
207 |
+
</span>
|
208 |
+
</p>
|
209 |
+
<?php endif; ?>
|
210 |
+
|
211 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
|
212 |
+
<p class="old-price">
|
213 |
+
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
214 |
+
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
215 |
+
<?php echo $_coreHelper->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?>
|
216 |
+
</span>
|
217 |
+
</p>
|
218 |
+
|
219 |
+
<p class="special-price">
|
220 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
221 |
+
<span class="price-excluding-tax">
|
222 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
223 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
224 |
+
<?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmount, true, false) ?>
|
225 |
+
</span>
|
226 |
+
</span>
|
227 |
+
<span class="weee">(
|
228 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
229 |
+
<?php echo $_weeeSeparator; ?>
|
230 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
231 |
+
<?php $_weeeSeparator = ' + '; ?>
|
232 |
+
<?php endforeach; ?>
|
233 |
+
)</span>
|
234 |
+
<span class="price-including-tax">
|
235 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
236 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
237 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
238 |
+
</span>
|
239 |
+
</span>
|
240 |
+
</p>
|
241 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
|
242 |
+
<p class="old-price">
|
243 |
+
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
244 |
+
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
245 |
+
<?php echo $_coreHelper->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?>
|
246 |
+
</span>
|
247 |
+
</p>
|
248 |
+
|
249 |
+
<p class="special-price">
|
250 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
251 |
+
<span class="price-excluding-tax">
|
252 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
253 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
254 |
+
<?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmount, true, false) ?>
|
255 |
+
</span>
|
256 |
+
</span>
|
257 |
+
<span class="weee">(
|
258 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
259 |
+
<?php echo $_weeeSeparator; ?>
|
260 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
|
261 |
+
<?php $_weeeSeparator = ' + '; ?>
|
262 |
+
<?php endforeach; ?>
|
263 |
+
)</span>
|
264 |
+
<span class="price-including-tax">
|
265 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
266 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
267 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
268 |
+
</span>
|
269 |
+
</span>
|
270 |
+
</p>
|
271 |
+
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
|
272 |
+
<p class="old-price">
|
273 |
+
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
274 |
+
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
275 |
+
<?php echo $_coreHelper->currency($_regularPrice, true, false) ?>
|
276 |
+
</span>
|
277 |
+
</p>
|
278 |
+
|
279 |
+
<p class="special-price">
|
280 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
281 |
+
<span class="price-excluding-tax">
|
282 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
283 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
284 |
+
<?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
|
285 |
+
</span>
|
286 |
+
</span>
|
287 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
288 |
+
<span class="weee">
|
289 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
290 |
+
</span>
|
291 |
+
<?php endforeach; ?>
|
292 |
+
<span class="price-including-tax">
|
293 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
294 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
295 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
|
296 |
+
</span>
|
297 |
+
</span>
|
298 |
+
</p>
|
299 |
+
<?php else: // excl. ?>
|
300 |
+
<p class="old-price">
|
301 |
+
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
302 |
+
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
303 |
+
<?php echo $_coreHelper->currency($_regularPrice, true, false) ?>
|
304 |
+
</span>
|
305 |
+
</p>
|
306 |
+
|
307 |
+
<?php if ($_taxHelper->displayBothPrices()): ?>
|
308 |
+
<p class="special-price">
|
309 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
310 |
+
<span class="price-excluding-tax">
|
311 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
312 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
313 |
+
<?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
|
314 |
+
</span>
|
315 |
+
</span>
|
316 |
+
<span class="price-including-tax">
|
317 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
318 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
319 |
+
<?php echo $_coreHelper->currency($_finalPriceInclTax, true, false) ?>
|
320 |
+
</span>
|
321 |
+
</span>
|
322 |
+
</p>
|
323 |
+
<?php else: ?>
|
324 |
+
<p class="special-price">
|
325 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
326 |
+
<span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
327 |
+
<?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
|
328 |
+
</span>
|
329 |
+
</p>
|
330 |
+
<?php endif; ?>
|
331 |
+
<?php endif; ?>
|
332 |
+
|
333 |
+
<?php endif; /* if ($_finalPrice == $_price): */ ?>
|
334 |
+
|
335 |
+
<?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_product->getFinalPrice()): ?>
|
336 |
+
|
337 |
+
<?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
|
338 |
+
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1, 4))): ?>
|
339 |
+
<?php $_minimalPriceDisplayValue = $_minimalPrice + $_weeeTaxAmount; ?>
|
340 |
+
<?php endif; ?>
|
341 |
+
|
342 |
+
<?php if ($this->getUseLinkForAsLowAs()):?>
|
343 |
+
<a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
|
344 |
+
<?php else:?>
|
345 |
+
<span class="minimal-price-link">
|
346 |
+
<?php endif?>
|
347 |
+
<span class="label"><?php echo $this->__('As low as:') ?></span>
|
348 |
+
<span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
349 |
+
<?php echo $_coreHelper->currency($_minimalPriceDisplayValue, true, false) ?>
|
350 |
+
</span>
|
351 |
+
<?php if ($this->getUseLinkForAsLowAs()):?>
|
352 |
+
</a>
|
353 |
+
<?php else:?>
|
354 |
+
</span>
|
355 |
+
<?php endif?>
|
356 |
+
<?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
|
357 |
+
</div>
|
358 |
+
|
359 |
+
<?php else: /* if (!$_product->isGrouped()): */ ?>
|
360 |
+
<?php
|
361 |
+
$_exclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue);
|
362 |
+
$_inclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue, true);
|
363 |
+
?>
|
364 |
+
<?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue): ?>
|
365 |
+
<div class="price-box">
|
366 |
+
<p class="minimal-price">
|
367 |
+
<span class="price-label"><?php echo $this->__('Starting at:') ?></span>
|
368 |
+
<?php if ($_taxHelper->displayBothPrices()): ?>
|
369 |
+
<span class="price-excluding-tax">
|
370 |
+
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
371 |
+
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
372 |
+
<?php echo $_coreHelper->currency($_exclTax, true, false) ?>
|
373 |
+
</span>
|
374 |
+
</span>
|
375 |
+
<span class="price-including-tax">
|
376 |
+
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
377 |
+
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
378 |
+
<?php echo $_coreHelper->currency($_inclTax, true, false) ?>
|
379 |
+
</span>
|
380 |
+
</span>
|
381 |
+
<?php else: ?>
|
382 |
+
<?php
|
383 |
+
$_showPrice = $_inclTax;
|
384 |
+
if (!$_taxHelper->displayPriceIncludingTax()) {
|
385 |
+
$_showPrice = $_exclTax;
|
386 |
+
}
|
387 |
+
?>
|
388 |
+
<span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
389 |
+
<?php echo $_coreHelper->currency($_showPrice, true, false) ?>
|
390 |
+
</span>
|
391 |
+
<?php endif; ?>
|
392 |
+
</p>
|
393 |
+
</div>
|
394 |
+
<?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
|
395 |
+
<?php endif; /* if (!$_product->isGrouped()): */ ?>
|
396 |
+
<?php } ?>
|
app/design/frontend/default/default/template/hideprice/related.phtml
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if($this->getItems()->getSize()): ?>
|
2 |
+
<div class="block block-related">
|
3 |
+
<div class="block-title">
|
4 |
+
<h2><?php echo $this->__('Related Products') ?></h2>
|
5 |
+
</div>
|
6 |
+
<div class="block-content">
|
7 |
+
<p class="block-subtitle"><?php echo $this->__('Check items to add to the cart or') ?> <a href="#" onclick="selectAllRelated(this); return false;"><?php echo $this->__('select all') ?></a></p>
|
8 |
+
<ol class="mini-products-list" id="block-related">
|
9 |
+
<?php foreach($this->getItems() as $_item): ?>
|
10 |
+
<li class="item">
|
11 |
+
<?php if(!$_item->isComposite() && $_item->isSaleable()): ?>
|
12 |
+
<?php if (!$_item->getRequiredOptions()): ?>
|
13 |
+
<input type="checkbox" class="checkbox related-checkbox" id="related-checkbox<?php echo $_item->getId() ?>" name="related_products[]" value="<?php echo $_item->getId() ?>" />
|
14 |
+
<?php endif; ?>
|
15 |
+
<?php endif; ?>
|
16 |
+
<div class="product">
|
17 |
+
<a href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_item->getName()) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(75) ?>" width="75" height="75" alt="<?php echo $this->escapeHtml($_item->getName()) ?>" /></a>
|
18 |
+
<div class="product-details">
|
19 |
+
<p class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->escapeHtml($_item->getName()) ?></a></p>
|
20 |
+
<?php echo $this->getPriceHtml($_item, true, '-related') ?>
|
21 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
22 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
23 |
+
<a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a>
|
24 |
+
<?php endif; ?>
|
25 |
+
<?php } ?>
|
26 |
+
</div>
|
27 |
+
</div>
|
28 |
+
</li>
|
29 |
+
<?php endforeach ?>
|
30 |
+
</ol>
|
31 |
+
<script type="text/javascript">decorateList('block-related', 'none-recursive')</script>
|
32 |
+
</div>
|
33 |
+
<script type="text/javascript">
|
34 |
+
//<![CDATA[
|
35 |
+
$$('.related-checkbox').each(function(elem){
|
36 |
+
Event.observe(elem, 'click', addRelatedToProduct)
|
37 |
+
});
|
38 |
+
|
39 |
+
var relatedProductsCheckFlag = false;
|
40 |
+
function selectAllRelated(txt){
|
41 |
+
if (relatedProductsCheckFlag == false) {
|
42 |
+
$$('.related-checkbox').each(function(elem){
|
43 |
+
elem.checked = true;
|
44 |
+
});
|
45 |
+
relatedProductsCheckFlag = true;
|
46 |
+
txt.innerHTML="<?php echo $this->__('unselect all') ?>";
|
47 |
+
} else {
|
48 |
+
$$('.related-checkbox').each(function(elem){
|
49 |
+
elem.checked = false;
|
50 |
+
});
|
51 |
+
relatedProductsCheckFlag = false;
|
52 |
+
txt.innerHTML="<?php echo $this->__('select all') ?>";
|
53 |
+
}
|
54 |
+
addRelatedToProduct();
|
55 |
+
}
|
56 |
+
|
57 |
+
function addRelatedToProduct(){
|
58 |
+
var checkboxes = $$('.related-checkbox');
|
59 |
+
var values = [];
|
60 |
+
for(var i=0;i<checkboxes.length;i++){
|
61 |
+
if(checkboxes[i].checked) values.push(checkboxes[i].value);
|
62 |
+
}
|
63 |
+
if($('related-products-field')){
|
64 |
+
$('related-products-field').value = values.join(',');
|
65 |
+
}
|
66 |
+
}
|
67 |
+
//]]>
|
68 |
+
</script>
|
69 |
+
</div>
|
70 |
+
<?php endif ?>
|
app/design/frontend/default/default/template/hideprice/summary.phtml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/review')) ) { ?>
|
3 |
+
<?php if ($this->getReviewsCount()): ?>
|
4 |
+
<div class="ratings">
|
5 |
+
<?php if ($this->getRatingSummary()):?>
|
6 |
+
<div class="rating-box">
|
7 |
+
<div class="rating" style="width:<?php echo $this->getRatingSummary() ?>%"></div>
|
8 |
+
</div>
|
9 |
+
<?php endif;?>
|
10 |
+
<p class="rating-links">
|
11 |
+
<a href="<?php echo $this->getReviewsUrl() ?>"><?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?></a>
|
12 |
+
<span class="separator">|</span>
|
13 |
+
<a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Add Your Review') ?></a>
|
14 |
+
</p>
|
15 |
+
</div>
|
16 |
+
<?php elseif ($this->getDisplayIfEmpty()): ?>
|
17 |
+
<p class="no-rating"><a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Be the first to review this product') ?></a></p>
|
18 |
+
<?php endif; ?>
|
19 |
+
<?php } ?>
|
app/design/frontend/default/default/template/hideprice/summary_short.phtml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
added by developer condition to check the non register user
|
4 |
+
*/
|
5 |
+
|
6 |
+
?>
|
7 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/review')) ) { ?>
|
8 |
+
<?php if ($this->getReviewsCount()): ?>
|
9 |
+
<div class="ratings">
|
10 |
+
<?php if ($this->getRatingSummary()):?>
|
11 |
+
<div class="rating-box">
|
12 |
+
<div class="rating" style="width:<?php echo $this->getRatingSummary() ?>%"></div>
|
13 |
+
</div>
|
14 |
+
<?php endif;?>
|
15 |
+
<span class="amount"><a href="#" onclick="var t = opener ? opener.window : window; t.location.href='<?php echo $this->getReviewsUrl() ?>'; return false;"><?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?></a></span>
|
16 |
+
</div>
|
17 |
+
<?php elseif ($this->getDisplayIfEmpty()): ?>
|
18 |
+
<p class="no-rating"><a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Be the first to review this product') ?></a></p>
|
19 |
+
<?php endif; ?>
|
20 |
+
<?php } ?>
|
app/design/frontend/default/default/template/hideprice/view.phtml
ADDED
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
added by developer condition to check the non register user
|
4 |
+
*/
|
5 |
+
|
6 |
+
?>
|
7 |
+
<?php $_helper = $this->helper('catalog/output'); ?>
|
8 |
+
<?php $_product = $this->getProduct(); ?>
|
9 |
+
<script type="text/javascript">
|
10 |
+
var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
|
11 |
+
</script>
|
12 |
+
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
|
13 |
+
<div class="product-view">
|
14 |
+
<div class="product-essential">
|
15 |
+
<form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
|
16 |
+
<?php echo $this->getBlockHtml('formkey') ?>
|
17 |
+
<div class="no-display">
|
18 |
+
<input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
|
19 |
+
<input type="hidden" name="related_product" id="related-products-field" value="" />
|
20 |
+
</div>
|
21 |
+
|
22 |
+
<div class="product-img-box">
|
23 |
+
<div class="product-name">
|
24 |
+
<h1><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h1>
|
25 |
+
</div>
|
26 |
+
<?php echo $this->getChildHtml('media') ?>
|
27 |
+
</div>
|
28 |
+
|
29 |
+
<div class="product-shop">
|
30 |
+
<div class="product-name">
|
31 |
+
<span class="h1"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></span>
|
32 |
+
</div>
|
33 |
+
|
34 |
+
<div class="price-info">
|
35 |
+
<?php echo $this->getPriceHtml($_product); ?>
|
36 |
+
<?php echo $this->getChildHtml('bundle_prices') ?>
|
37 |
+
<?php echo $this->getTierPriceHtml() ?>
|
38 |
+
</div>
|
39 |
+
|
40 |
+
<div class="extra-info">
|
41 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'default', false)?>
|
42 |
+
<?php echo $this->getChildHtml('product_type_availability'); ?>
|
43 |
+
</div>
|
44 |
+
|
45 |
+
<?php echo $this->getChildHtml('alert_urls') ?>
|
46 |
+
|
47 |
+
<?php if ($_product->getShortDescription()):?>
|
48 |
+
<div class="short-description">
|
49 |
+
<div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>
|
50 |
+
</div>
|
51 |
+
<?php endif;?>
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
<?php echo $this->getChildHtml('other');?>
|
57 |
+
|
58 |
+
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
|
59 |
+
<?php echo $this->getChildChildHtml('container1', '', true, true) ?>
|
60 |
+
<?php endif;?>
|
61 |
+
|
62 |
+
</div>
|
63 |
+
|
64 |
+
<div class="add-to-cart-wrapper">
|
65 |
+
<?php echo $this->getChildHtml('product_type_data') ?>
|
66 |
+
<?php echo $this->getChildHtml('extrahint') ?>
|
67 |
+
|
68 |
+
<?php if (!$this->hasOptions()):?>
|
69 |
+
<div class="add-to-box">
|
70 |
+
<?php if($_product->isSaleable()): ?>
|
71 |
+
<?php echo $this->getChildHtml('addtocart') ?>
|
72 |
+
<?php if( $this->helper('wishlist')->isAllow() || $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product)): ?>
|
73 |
+
<span class="or"><?php echo $this->__('OR') ?></span>
|
74 |
+
<?php endif; ?>
|
75 |
+
<?php endif; ?>
|
76 |
+
<?php echo $this->getChildHtml('addto') ?>
|
77 |
+
<?php echo $this->getChildHtml('sharing') ?>
|
78 |
+
</div>
|
79 |
+
<?php echo $this->getChildHtml('extra_buttons') ?>
|
80 |
+
<?php elseif (!$_product->isSaleable()): ?>
|
81 |
+
<div class="add-to-box">
|
82 |
+
<?php echo $this->getChildHtml('addto') ?>
|
83 |
+
<?php echo $this->getChildHtml('sharing') ?>
|
84 |
+
</div>
|
85 |
+
<?php endif; ?>
|
86 |
+
</div>
|
87 |
+
|
88 |
+
<?php echo $this->getChildHtml('related_products') ?>
|
89 |
+
|
90 |
+
<div class="clearer"></div>
|
91 |
+
<?php if ($_product->isSaleable() && $this->hasOptions()):?>
|
92 |
+
<?php echo $this->getChildChildHtml('container2', '', true, true) ?>
|
93 |
+
<?php endif;?>
|
94 |
+
</form>
|
95 |
+
<script type="text/javascript">
|
96 |
+
//<![CDATA[
|
97 |
+
var productAddToCartForm = new VarienForm('product_addtocart_form');
|
98 |
+
productAddToCartForm.submit = function(button, url) {
|
99 |
+
if (this.validator.validate()) {
|
100 |
+
var form = this.form;
|
101 |
+
var oldUrl = form.action;
|
102 |
+
|
103 |
+
if (url) {
|
104 |
+
form.action = url;
|
105 |
+
}
|
106 |
+
var e = null;
|
107 |
+
try {
|
108 |
+
this.form.submit();
|
109 |
+
} catch (e) {
|
110 |
+
}
|
111 |
+
this.form.action = oldUrl;
|
112 |
+
if (e) {
|
113 |
+
throw e;
|
114 |
+
}
|
115 |
+
|
116 |
+
if (button && button != 'undefined') {
|
117 |
+
button.disabled = true;
|
118 |
+
}
|
119 |
+
}
|
120 |
+
}.bind(productAddToCartForm);
|
121 |
+
|
122 |
+
productAddToCartForm.submitLight = function(button, url){
|
123 |
+
if(this.validator) {
|
124 |
+
var nv = Validation.methods;
|
125 |
+
delete Validation.methods['required-entry'];
|
126 |
+
delete Validation.methods['validate-one-required'];
|
127 |
+
delete Validation.methods['validate-one-required-by-name'];
|
128 |
+
// Remove custom datetime validators
|
129 |
+
for (var methodName in Validation.methods) {
|
130 |
+
if (methodName.match(/^validate-datetime-.*/i)) {
|
131 |
+
delete Validation.methods[methodName];
|
132 |
+
}
|
133 |
+
}
|
134 |
+
|
135 |
+
if (this.validator.validate()) {
|
136 |
+
if (url) {
|
137 |
+
this.form.action = url;
|
138 |
+
}
|
139 |
+
this.form.submit();
|
140 |
+
}
|
141 |
+
Object.extend(Validation.methods, nv);
|
142 |
+
}
|
143 |
+
}.bind(productAddToCartForm);
|
144 |
+
//]]>
|
145 |
+
</script>
|
146 |
+
</div>
|
147 |
+
|
148 |
+
<div class="product-collateral toggle-content tabs">
|
149 |
+
<?php if ($detailedInfoGroup = $this->getChildGroup('detailed_info', 'getChildHtml')):?>
|
150 |
+
<dl id="collateral-tabs" class="collateral-tabs">
|
151 |
+
<?php foreach ($detailedInfoGroup as $alias => $html):?>
|
152 |
+
<dt class="tab"><span><?php echo $this->escapeHtml($this->getChildData($alias, 'title')) ?></span></dt>
|
153 |
+
<dd class="tab-container">
|
154 |
+
<div class="tab-content"><?php echo $html ?></div>
|
155 |
+
</dd>
|
156 |
+
<?php endforeach;?>
|
157 |
+
</dl>
|
158 |
+
<?php endif; ?>
|
159 |
+
</div>
|
160 |
+
|
161 |
+
<?php echo $this->getChildHtml('upsell_products') ?>
|
162 |
+
<?php echo $this->getChildHtml('product_additional_data') ?>
|
163 |
+
|
164 |
+
</div>
|
app/etc/modules/SSTech_Session.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<SSTech_Session>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</SSTech_Session>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>SSTech_Session</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>Open Source License</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Extension which will allow to hide the price ,add to cart ,compare ,wishlist for the non register user </summary>
|
10 |
+
<description>Extension which will allow to hide the price ,add to cart ,compare ,wishlist for the non register user </description>
|
11 |
+
<notes>stable version release</notes>
|
12 |
+
<authors><author><name>SSTech</name><user>SSTech</user><email>sandynaresh@gmail.com</email></author></authors>
|
13 |
+
<date>2014-10-04</date>
|
14 |
+
<time>11:03:21</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="SSTech_Session.xml" hash="100cb696672c6185c3cddec15a3433bc"/></dir></target><target name="magecommunity"><dir name="SSTech"><dir name="Session"><dir name="etc"><file name="adminhtml.xml" hash="cf6de83e20fffeb7ae63dc744c91fc4c"/><file name="config.xml" hash="7d4fc435baf554cbda2778ec2d6e84ed"/><file name="system.xml" hash="634b152b9d51987d17f72ad31a9d34d7"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="hideprice.xml" hash="6739161bd703cdefd6f072a4b00e82df"/></dir><dir name="template"><dir name="hideprice"><file name="addto.phtml" hash="14158eed28624ed6ca4f410c1160fcd8"/><file name="addtocart.phtml" hash="58a45f5679c9db15f3639dc5316168cd"/><dir name="compare"><file name="list.phtml" hash="9fed5c61ac5f34462bdca4ce66ef2cbd"/></dir><file name="list.phtml" hash="0e6df20acebeadda3ad8390f8868c8ed"/><file name="price.phtml" hash="4822c6510d4ba3f6577b8373b6ed0ac3"/><file name="related.phtml" hash="a0fc75097f67222ae560c06d5976329e"/><file name="summary.phtml" hash="2a65597335cc47323997fb1ea6b791b4"/><file name="summary_short.phtml" hash="3c3cf629251065eadd7697e37278fce6"/><file name="view.phtml" hash="0aa7424744ab083e102f16a52591bb42"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|