Version Notes
Update the layout changes
Download this release
Release Info
| Developer | SSTech |
| Extension | SSTech_Session |
| Version | 1.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/SSTech/Session/etc/config.xml +1 -1
- app/design/frontend/default/default/template/hideprice/addtocart.phtml +30 -8
- app/design/frontend/default/default/template/hideprice/compare/list.phtml +81 -64
- app/design/frontend/default/default/template/hideprice/list.phtml +92 -123
- app/design/frontend/default/default/template/hideprice/price.phtml +207 -130
- app/design/frontend/default/default/template/hideprice/related.phtml +30 -4
- app/design/frontend/default/default/template/hideprice/summary.phtml +26 -1
- app/design/frontend/default/default/template/hideprice/summary_short.phtml +25 -5
- app/design/frontend/default/default/template/hideprice/view.phtml +138 -132
- package.xml +6 -5
app/code/community/SSTech/Session/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<SSTech_Session>
|
| 5 |
-
<version>1.0.
|
| 6 |
</SSTech_Session>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<SSTech_Session>
|
| 5 |
+
<version>1.0.1</version>
|
| 6 |
</SSTech_Session>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
app/design/frontend/default/default/template/hideprice/addtocart.phtml
CHANGED
|
@@ -1,18 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
<
|
| 8 |
-
|
| 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 |
-
<
|
| 13 |
-
|
| 14 |
-
<?php echo $this->getChildHtml('', true, true) ?>
|
| 15 |
-
</div>
|
| 16 |
</div>
|
| 17 |
<?php endif; ?>
|
| 18 |
<?php } ?>
|
| 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 ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/addtocart')) ) { ?>
|
| 28 |
<?php $_product = $this->getProduct(); ?>
|
| 29 |
<?php $buttonTitle = $this->__('Add to Cart'); ?>
|
| 30 |
<?php if($_product->isSaleable()): ?>
|
| 31 |
<div class="add-to-cart">
|
| 32 |
<?php if(!$_product->isGrouped()): ?>
|
| 33 |
+
<label for="qty"><?php echo $this->__('Qty:') ?></label>
|
| 34 |
+
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
|
|
|
|
|
|
|
| 35 |
<?php endif; ?>
|
| 36 |
+
<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>
|
| 37 |
+
<?php echo $this->getChildHtml('', true, true) ?>
|
|
|
|
|
|
|
| 38 |
</div>
|
| 39 |
<?php endif; ?>
|
| 40 |
<?php } ?>
|
app/design/frontend/default/default/template/hideprice/compare/list.phtml
CHANGED
|
@@ -1,126 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()->
|
| 6 |
<?php if($_total): ?>
|
| 7 |
<table class="data-table compare-table" id="product_comparison">
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
<col width="<?php echo floor(100/$_total); ?>%" />
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 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 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 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 |
-
|
| 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
|
| 61 |
</ul>
|
| 62 |
<?php endif; ?>
|
| 63 |
<?php }?>
|
| 64 |
</td>
|
| 65 |
<?php endforeach; ?>
|
| 66 |
-
|
| 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 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
<?php endforeach; ?>
|
| 95 |
</tr>
|
| 96 |
<?php endforeach; ?>
|
| 97 |
</tbody>
|
| 98 |
<tbody>
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
<?php if($_i++%10==0): ?>
|
| 103 |
-
|
| 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
|
| 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 |
-
|
| 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
|
| 118 |
</ul>
|
| 119 |
<?php endif; ?>
|
| 120 |
<?php }?>
|
| 121 |
</td>
|
| 122 |
-
|
| 123 |
-
|
| 124 |
</tbody>
|
| 125 |
</table>
|
| 126 |
<div class="buttons-set">
|
| 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> </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> </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 ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/addtocart')) ) { ?>
|
| 68 |
<?php if($_item->isSaleable()): ?>
|
| 69 |
+
<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>
|
| 70 |
<?php else: ?>
|
| 71 |
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
| 72 |
<?php endif; ?>
|
| 73 |
<?php }?>
|
| 74 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
| 75 |
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
| 76 |
<ul class="add-to-links">
|
| 77 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
| 78 |
</ul>
|
| 79 |
<?php endif; ?>
|
| 80 |
<?php }?>
|
| 81 |
</td>
|
| 82 |
<?php endforeach; ?>
|
| 83 |
+
</tr>
|
| 84 |
</tbody>
|
| 85 |
<tbody>
|
| 86 |
<?php foreach ($this->getAttributes() as $_attribute): ?>
|
| 87 |
<tr>
|
| 88 |
<?php $_i=0 ?>
|
| 89 |
<?php foreach($this->getItems() as $_item): ?>
|
| 90 |
+
<?php if($_i++%10==0): ?>
|
| 91 |
+
<th><span class="nobr"><?php echo $_attribute->getStoreLabel() ?></span></th>
|
| 92 |
+
<?php endif; ?>
|
| 93 |
+
<td>
|
| 94 |
+
<?php switch ($_attribute->getAttributeCode()) {
|
| 95 |
+
case "price": ?>
|
| 96 |
+
<?php echo $this->getPriceHtml($_item, true, '-compare-list-' . $_attribute->getCode()) ?>
|
| 97 |
+
<?php break;
|
| 98 |
+
case "small_image": ?>
|
| 99 |
+
<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()) ?>" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
<?php break;
|
| 101 |
+
case "date":
|
| 102 |
+
echo substr($this->getProductAttributeValue($_item, $_attribute),0,10);
|
| 103 |
+
break;
|
| 104 |
+
default: ?>
|
| 105 |
+
<div class="std">
|
| 106 |
+
<?php echo $this->helper('catalog/output')->productAttribute($_item, $this->getProductAttributeValue($_item, $_attribute), $_attribute->getAttributeCode()) ?>
|
| 107 |
+
</div>
|
| 108 |
+
<?php break;
|
| 109 |
+
} ?>
|
| 110 |
+
</td>
|
| 111 |
<?php endforeach; ?>
|
| 112 |
</tr>
|
| 113 |
<?php endforeach; ?>
|
| 114 |
</tbody>
|
| 115 |
<tbody>
|
| 116 |
+
<tr class="add-to-row">
|
| 117 |
+
<?php $_i=0 ?>
|
| 118 |
+
<?php foreach($this->getItems() as $_item): ?>
|
| 119 |
<?php if($_i++%10==0): ?>
|
| 120 |
+
<th> </th>
|
| 121 |
<?php endif; ?>
|
| 122 |
<td>
|
| 123 |
<?php echo $this->getPriceHtml($_item, true, '-compare-list-bottom') ?>
|
| 124 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/addtocart')) ) { ?>
|
| 125 |
<?php if($_item->isSaleable()): ?>
|
| 126 |
+
<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>
|
| 127 |
<?php else: ?>
|
| 128 |
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
| 129 |
<?php endif; ?>
|
| 130 |
<?php }?>
|
| 131 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
| 132 |
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
| 133 |
<ul class="add-to-links">
|
| 134 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_item);?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
| 135 |
</ul>
|
| 136 |
<?php endif; ?>
|
| 137 |
<?php }?>
|
| 138 |
</td>
|
| 139 |
+
<?php endforeach; ?>
|
| 140 |
+
</tr>
|
| 141 |
</tbody>
|
| 142 |
</table>
|
| 143 |
<div class="buttons-set">
|
app/design/frontend/default/default/template/hideprice/list.phtml
CHANGED
|
@@ -1,8 +1,35 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
*/
|
| 5 |
-
|
| 6 |
?>
|
| 7 |
<?php
|
| 8 |
$_productCollection=$this->getLoadedProductCollection();
|
|
@@ -20,69 +47,41 @@ added by developer condition to check the non register user
|
|
| 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 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 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 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
<?php
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 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>
|
|
@@ -96,66 +95,46 @@ added by developer condition to check the non register user
|
|
| 96 |
|
| 97 |
<?php $_collectionSize = $_productCollection->count() ?>
|
| 98 |
<?php $_columnCount = $this->getColumnCount(); ?>
|
| 99 |
-
|
| 100 |
-
<?php $i
|
| 101 |
-
|
| 102 |
-
|
| 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 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 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 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
<?php endif; ?>
|
| 138 |
-
<?php
|
| 139 |
-
|
| 140 |
-
<?php
|
| 141 |
-
|
| 142 |
-
|
| 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 |
-
|
| 155 |
-
|
|
|
|
| 156 |
<?php endforeach ?>
|
| 157 |
-
|
| 158 |
-
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
| 159 |
<?php endif; ?>
|
| 160 |
|
| 161 |
<div class="toolbar-bottom">
|
|
@@ -163,13 +142,3 @@ added by developer condition to check the non register user
|
|
| 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; ?>
|
| 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();
|
| 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 ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/review')) ) { ?>
|
| 57 |
+
<?php if($_product->getRatingSummary()): ?>
|
| 58 |
+
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
| 59 |
+
<?php endif; ?>
|
| 60 |
+
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/price')) ) { ?>
|
| 62 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
| 63 |
+
<?php } ?>
|
| 64 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/addtocart')) ) { ?>
|
| 65 |
+
<?php if($_product->isSaleable()): ?>
|
| 66 |
+
<p><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>
|
| 67 |
+
<?php else: ?>
|
| 68 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
| 69 |
+
<?php endif; ?>
|
| 70 |
+
<?php }?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
<div class="desc std">
|
| 72 |
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
| 73 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
| 74 |
</div>
|
| 75 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
| 76 |
+
<ul class="add-to-links">
|
| 77 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
| 78 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
| 79 |
+
<?php endif; ?>
|
| 80 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
| 81 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
| 82 |
+
<?php endif; ?>
|
| 83 |
+
</ul>
|
| 84 |
+
<?php }?>
|
| 85 |
</div>
|
| 86 |
</div>
|
| 87 |
</li>
|
| 95 |
|
| 96 |
<?php $_collectionSize = $_productCollection->count() ?>
|
| 97 |
<?php $_columnCount = $this->getColumnCount(); ?>
|
| 98 |
+
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
| 99 |
+
<?php if ($i++%$_columnCount==0): ?>
|
| 100 |
+
<ul class="products-grid">
|
| 101 |
+
<?php endif ?>
|
| 102 |
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
| 103 |
+
<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>
|
| 104 |
+
<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>
|
| 105 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/review')) ) { ?>
|
| 106 |
+
<?php if($_product->getRatingSummary()): ?>
|
| 107 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
| 108 |
+
<?php endif; ?>
|
| 109 |
+
<?php }?>
|
| 110 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/price')) ) { ?>
|
| 111 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
| 112 |
+
<?php }?>
|
| 113 |
+
<div class="actions">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/addtocart')) ) { ?>
|
| 115 |
+
<?php if($_product->isSaleable()): ?>
|
| 116 |
+
<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>
|
| 117 |
+
<?php else: ?>
|
| 118 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
| 119 |
+
<?php endif; ?>
|
| 120 |
+
<?php }?>
|
| 121 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
| 122 |
+
<ul class="add-to-links">
|
| 123 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
| 124 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
| 125 |
<?php endif; ?>
|
| 126 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
| 127 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
| 128 |
+
<?php endif; ?>
|
| 129 |
+
</ul>
|
| 130 |
+
<?php }?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
</div>
|
| 132 |
</li>
|
| 133 |
+
<?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
| 134 |
+
</ul>
|
| 135 |
+
<?php endif ?>
|
| 136 |
<?php endforeach ?>
|
| 137 |
+
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
|
|
|
| 138 |
<?php endif; ?>
|
| 139 |
|
| 140 |
<div class="toolbar-bottom">
|
| 142 |
</div>
|
| 143 |
</div>
|
| 144 |
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/hideprice/price.phtml
CHANGED
|
@@ -1,38 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/price')) ) { ?>
|
| 2 |
<?php
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
?>
|
| 18 |
|
| 19 |
<?php if (!$_product->isGrouped()): ?>
|
| 20 |
<?php $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product); ?>
|
| 21 |
-
<?php
|
| 22 |
-
<?php $_weeeTaxAmount = $_weeeHelper->getAmount($_product); ?>
|
| 23 |
-
<?php $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForDisplay($_product); ?>
|
| 24 |
-
<?php endif; ?>
|
| 25 |
<?php $_weeeTaxAmountInclTaxes = $_weeeTaxAmount; ?>
|
| 26 |
-
<?php if ($_weeeHelper->isTaxable()
|
| 27 |
-
<?php $
|
| 28 |
-
<?php $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_attributes); ?>
|
| 29 |
<?php endif; ?>
|
|
|
|
|
|
|
| 30 |
|
| 31 |
<div class="price-box">
|
| 32 |
-
<?php $
|
| 33 |
-
<?php $
|
| 34 |
-
<?php $
|
| 35 |
-
<?php $
|
|
|
|
| 36 |
<?php $_weeeDisplayType = $_weeeHelper->getPriceDisplayType(); ?>
|
| 37 |
<?php if ($_finalPrice >= $_price): ?>
|
| 38 |
<?php if ($_taxHelper->displayBothPrices()): ?>
|
|
@@ -40,46 +77,46 @@
|
|
| 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->
|
| 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->
|
| 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->
|
| 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->
|
| 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->
|
| 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->
|
| 83 |
</span>
|
| 84 |
<span class="weee">(
|
| 85 |
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
|
@@ -93,18 +130,19 @@
|
|
| 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->
|
| 97 |
</span>
|
| 98 |
</span>
|
| 99 |
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 100 |
<span class="weee">
|
| 101 |
-
<?php echo $_weeeTaxAttribute->getName();
|
|
|
|
| 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->
|
| 108 |
</span>
|
| 109 |
</span>
|
| 110 |
<?php else: ?>
|
|
@@ -112,38 +150,39 @@
|
|
| 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->
|
| 116 |
<?php else: ?>
|
| 117 |
-
<?php echo $_coreHelper->
|
| 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->
|
| 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 |
-
|
| 132 |
</span>
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
<?php
|
| 142 |
-
|
| 143 |
-
|
| 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->
|
| 147 |
</span>
|
| 148 |
<span class="weee">(
|
| 149 |
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
|
@@ -153,105 +192,128 @@
|
|
| 153 |
<?php endforeach; ?>
|
| 154 |
)</span>
|
| 155 |
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
|
| 156 |
-
<span class="regular-price"><?php echo $_coreHelper->
|
|
|
|
| 157 |
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 158 |
<span class="weee">
|
| 159 |
-
|
|
|
|
| 160 |
</span>
|
| 161 |
<?php endforeach; ?>
|
| 162 |
-
<span class="regular-price"
|
| 163 |
-
|
|
|
|
| 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->
|
| 169 |
<?php else: ?>
|
| 170 |
-
<?php echo $_coreHelper->
|
| 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->
|
| 183 |
</span>
|
| 184 |
</p>
|
| 185 |
|
| 186 |
<?php if ($_taxHelper->displayBothPrices()): ?>
|
| 187 |
<p class="special-price">
|
| 188 |
-
<span class="price-label"><?php echo $
|
| 189 |
<span class="price-excluding-tax">
|
| 190 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 191 |
-
<span class="price"
|
| 192 |
-
|
|
|
|
| 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->
|
| 199 |
</span>
|
| 200 |
</span>
|
| 201 |
</p>
|
| 202 |
<?php else: ?>
|
| 203 |
-
|
| 204 |
-
|
| 205 |
<span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 206 |
-
<?php echo $_coreHelper->
|
| 207 |
</span>
|
| 208 |
-
|
| 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->
|
| 216 |
</span>
|
| 217 |
</p>
|
| 218 |
|
| 219 |
<p class="special-price">
|
| 220 |
-
|
|
|
|
| 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 |
-
|
| 225 |
</span>
|
| 226 |
</span>
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
|
|
|
| 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->
|
| 238 |
</span>
|
| 239 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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->
|
| 246 |
</span>
|
| 247 |
</p>
|
| 248 |
|
| 249 |
<p class="special-price">
|
| 250 |
-
<span class="price-label"><?php echo $
|
| 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->
|
| 255 |
</span>
|
| 256 |
</span>
|
| 257 |
<span class="weee">(
|
|
@@ -264,7 +326,7 @@
|
|
| 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->
|
| 268 |
</span>
|
| 269 |
</span>
|
| 270 |
</p>
|
|
@@ -272,27 +334,28 @@
|
|
| 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->
|
| 276 |
</span>
|
| 277 |
</p>
|
| 278 |
|
| 279 |
<p class="special-price">
|
| 280 |
-
<span class="price-label"><?php echo $
|
| 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->
|
| 285 |
</span>
|
| 286 |
</span>
|
| 287 |
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 288 |
<span class="weee">
|
| 289 |
-
<?php echo $_weeeTaxAttribute->getName();
|
|
|
|
| 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->
|
| 296 |
</span>
|
| 297 |
</span>
|
| 298 |
</p>
|
|
@@ -300,82 +363,96 @@
|
|
| 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->
|
| 304 |
</span>
|
| 305 |
</p>
|
| 306 |
|
| 307 |
<?php if ($_taxHelper->displayBothPrices()): ?>
|
| 308 |
<p class="special-price">
|
| 309 |
-
<span class="price-label"><?php echo $
|
| 310 |
<span class="price-excluding-tax">
|
| 311 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 312 |
-
<span class="price"
|
| 313 |
-
|
|
|
|
| 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"
|
| 319 |
-
|
|
|
|
| 320 |
</span>
|
| 321 |
</span>
|
| 322 |
</p>
|
| 323 |
<?php else: ?>
|
| 324 |
-
|
| 325 |
-
|
| 326 |
<span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 327 |
-
<?php echo $_coreHelper->
|
| 328 |
</span>
|
| 329 |
-
|
| 330 |
<?php endif; ?>
|
| 331 |
<?php endif; ?>
|
| 332 |
|
| 333 |
<?php endif; /* if ($_finalPrice == $_price): */ ?>
|
| 334 |
|
| 335 |
-
<?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $
|
| 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 |
-
|
| 344 |
-
<?php else
|
| 345 |
-
|
| 346 |
-
<?php endif?>
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
<?php echo $_coreHelper->
|
|
|
|
|
|
|
|
|
|
|
|
|
| 350 |
</span>
|
| 351 |
-
<?php
|
| 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 |
-
$
|
| 362 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 363 |
?>
|
| 364 |
-
<?php if ($
|
| 365 |
<div class="price-box">
|
| 366 |
-
<p class="minimal-price"
|
| 367 |
-
|
|
|
|
|
|
|
| 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"
|
| 372 |
-
|
|
|
|
| 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"
|
| 378 |
-
|
|
|
|
| 379 |
</span>
|
| 380 |
</span>
|
| 381 |
<?php else: ?>
|
|
@@ -385,12 +462,12 @@
|
|
| 385 |
$_showPrice = $_exclTax;
|
| 386 |
}
|
| 387 |
?>
|
| 388 |
-
|
| 389 |
-
<?php echo $_coreHelper->
|
| 390 |
</span>
|
| 391 |
<?php endif; ?>
|
| 392 |
</p>
|
| 393 |
</div>
|
| 394 |
<?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
|
| 395 |
<?php endif; /* if (!$_product->isGrouped()): */ ?>
|
| 396 |
-
<?php } ?>
|
| 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 if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/price')) ) { ?>
|
| 36 |
<?php
|
| 37 |
+
$_coreHelper = $this->helper('core');
|
| 38 |
+
$_weeeHelper = $this->helper('weee');
|
| 39 |
+
$_taxHelper = $this->helper('tax');
|
| 40 |
+
/* @var $_coreHelper Mage_Core_Helper_Data */
|
| 41 |
+
/* @var $_weeeHelper Mage_Weee_Helper_Data */
|
| 42 |
+
/* @var $_taxHelper Mage_Tax_Helper_Data */
|
| 43 |
|
| 44 |
+
$_product = $this->getProduct();
|
| 45 |
+
$_storeId = $_product->getStoreId();
|
| 46 |
+
$_store = $_product->getStore();
|
| 47 |
+
$_id = $_product->getId();
|
| 48 |
+
$_weeeSeparator = '';
|
| 49 |
+
$_simplePricesTax = ($_taxHelper->displayPriceIncludingTax() || $_taxHelper->displayBothPrices());
|
| 50 |
+
$_minimalPriceValue = $_product->getMinimalPrice();
|
| 51 |
+
$_minimalPriceValue = $_store->roundPrice($_store->convertPrice($_minimalPriceValue));
|
| 52 |
+
$_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
|
| 53 |
+
$_convertedFinalPrice = $_store->roundPrice($_store->convertPrice($_product->getFinalPrice()));
|
| 54 |
+
$_specialPriceStoreLabel = $this->getProductAttribute('special_price')->getStoreLabel();
|
| 55 |
?>
|
| 56 |
|
| 57 |
<?php if (!$_product->isGrouped()): ?>
|
| 58 |
<?php $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product); ?>
|
| 59 |
+
<?php $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true); ?>
|
|
|
|
|
|
|
|
|
|
| 60 |
<?php $_weeeTaxAmountInclTaxes = $_weeeTaxAmount; ?>
|
| 61 |
+
<?php if ($_weeeHelper->isTaxable()): ?>
|
| 62 |
+
<?php $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_weeeTaxAttributes); ?>
|
|
|
|
| 63 |
<?php endif; ?>
|
| 64 |
+
<?php $_weeeTaxAmount = $_store->roundPrice($_store->convertPrice($_weeeTaxAmount)); ?>
|
| 65 |
+
<?php $_weeeTaxAmountInclTaxes = $_store->roundPrice($_store->convertPrice($_weeeTaxAmountInclTaxes)); ?>
|
| 66 |
|
| 67 |
<div class="price-box">
|
| 68 |
+
<?php $_convertedPrice = $_store->roundPrice($_store->convertPrice($_product->getPrice())); ?>
|
| 69 |
+
<?php $_price = $_taxHelper->getPrice($_product, $_convertedPrice); ?>
|
| 70 |
+
<?php $_regularPrice = $_taxHelper->getPrice($_product, $_convertedPrice, $_simplePricesTax); ?>
|
| 71 |
+
<?php $_finalPrice = $_taxHelper->getPrice($_product, $_convertedFinalPrice) ?>
|
| 72 |
+
<?php $_finalPriceInclTax = $_taxHelper->getPrice($_product, $_convertedFinalPrice, true) ?>
|
| 73 |
<?php $_weeeDisplayType = $_weeeHelper->getPriceDisplayType(); ?>
|
| 74 |
<?php if ($_finalPrice >= $_price): ?>
|
| 75 |
<?php if ($_taxHelper->displayBothPrices()): ?>
|
| 77 |
<span class="price-excluding-tax">
|
| 78 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 79 |
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 80 |
+
<?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
|
| 81 |
</span>
|
| 82 |
</span>
|
| 83 |
<span class="price-including-tax">
|
| 84 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 85 |
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 86 |
+
<?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
|
| 87 |
</span>
|
| 88 |
</span>
|
| 89 |
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
|
| 90 |
<span class="price-excluding-tax">
|
| 91 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 92 |
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 93 |
+
<?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
|
| 94 |
</span>
|
| 95 |
</span>
|
| 96 |
+
<span class="weee">(
|
| 97 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 98 |
+
<?php echo $_weeeSeparator; ?>
|
| 99 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
| 100 |
+
<?php $_weeeSeparator = ' + '; ?>
|
| 101 |
+
<?php endforeach; ?>
|
| 102 |
+
)</span>
|
| 103 |
<span class="price-including-tax">
|
| 104 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 105 |
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 106 |
+
<?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
|
| 107 |
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
</span>
|
| 109 |
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
|
| 110 |
<span class="price-excluding-tax">
|
| 111 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 112 |
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 113 |
+
<?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, false) ?>
|
| 114 |
</span>
|
| 115 |
</span>
|
| 116 |
<span class="price-including-tax">
|
| 117 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 118 |
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 119 |
+
<?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
|
| 120 |
</span>
|
| 121 |
<span class="weee">(
|
| 122 |
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 130 |
<span class="price-excluding-tax">
|
| 131 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 132 |
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 133 |
+
<?php echo $_coreHelper->formatPrice($_price, false) ?>
|
| 134 |
</span>
|
| 135 |
</span>
|
| 136 |
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 137 |
<span class="weee">
|
| 138 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>
|
| 139 |
+
: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
|
| 140 |
</span>
|
| 141 |
<?php endforeach; ?>
|
| 142 |
<span class="price-including-tax">
|
| 143 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 144 |
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 145 |
+
<?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
|
| 146 |
</span>
|
| 147 |
</span>
|
| 148 |
<?php else: ?>
|
| 150 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 151 |
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 152 |
<?php if ($_finalPrice == $_price): ?>
|
| 153 |
+
<?php echo $_coreHelper->formatPrice($_price, false) ?>
|
| 154 |
<?php else: ?>
|
| 155 |
+
<?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
|
| 156 |
<?php endif; ?>
|
| 157 |
</span>
|
| 158 |
</span>
|
| 159 |
<span class="price-including-tax">
|
| 160 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 161 |
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 162 |
+
<?php echo $_coreHelper->formatPrice($_finalPriceInclTax, false) ?>
|
| 163 |
</span>
|
| 164 |
</span>
|
| 165 |
<?php endif; ?>
|
| 166 |
<?php else: ?>
|
| 167 |
+
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1))): // including ?>
|
| 168 |
+
<?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
|
| 169 |
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 170 |
+
<?php echo $_coreHelper->currency($_price + $weeeAmountToDisplay, true, true) ?>
|
| 171 |
</span>
|
| 172 |
+
|
| 173 |
+
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // show description ?>
|
| 174 |
+
<span class="weee">(
|
| 175 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 176 |
+
<?php echo $_weeeSeparator; ?>
|
| 177 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>
|
| 178 |
+
: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + ($_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAttribute->getTaxAmount() : 0), true, true); ?>
|
| 179 |
+
<?php $_weeeSeparator = ' + '; ?>
|
| 180 |
+
<?php endforeach; ?>
|
| 181 |
+
)</span>
|
| 182 |
+
<?php endif; ?>
|
| 183 |
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
|
| 184 |
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 185 |
+
<?php echo $_coreHelper->formatPrice($_price + $_weeeTaxAmount, true) ?>
|
| 186 |
</span>
|
| 187 |
<span class="weee">(
|
| 188 |
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 192 |
<?php endforeach; ?>
|
| 193 |
)</span>
|
| 194 |
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
|
| 195 |
+
<span class="regular-price"><?php echo $_coreHelper->formatPrice($_price, true) ?></span><br/>
|
| 196 |
+
<?php $weeeAmountToDisplay = $_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAmountInclTaxes : $_weeeTaxAmount ?>
|
| 197 |
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 198 |
<span class="weee">
|
| 199 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>
|
| 200 |
+
: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + ($_taxHelper->displayPriceIncludingTax() ? $_weeeTaxAttribute->getTaxAmount() : 0), true, true); ?>
|
| 201 |
</span>
|
| 202 |
<?php endforeach; ?>
|
| 203 |
+
<span class="regular-price"
|
| 204 |
+
id="product-price-weee-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 205 |
+
<?php echo $_coreHelper->currency($_price + $weeeAmountToDisplay, true, true) ?>
|
| 206 |
</span>
|
| 207 |
<?php else: ?>
|
| 208 |
<span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 209 |
<?php if ($_finalPrice == $_price): ?>
|
| 210 |
+
<?php echo $_coreHelper->formatPrice($_price, true) ?>
|
| 211 |
<?php else: ?>
|
| 212 |
+
<?php echo $_coreHelper->formatPrice($_finalPrice, true) ?>
|
| 213 |
<?php endif; ?>
|
| 214 |
</span>
|
| 215 |
<?php endif; ?>
|
| 216 |
<?php endif; ?>
|
| 217 |
<?php else: /* if ($_finalPrice == $_price): */ ?>
|
| 218 |
<?php $_originalWeeeTaxAmount = $_weeeHelper->getOriginalAmount($_product); ?>
|
| 219 |
+
<?php $_originalWeeeTaxAmount = $_store->roundPrice($_store->convertPrice($_originalWeeeTaxAmount)) ?>
|
| 220 |
|
| 221 |
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
|
| 222 |
<p class="old-price">
|
| 223 |
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
| 224 |
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 225 |
+
<?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
|
| 226 |
</span>
|
| 227 |
</p>
|
| 228 |
|
| 229 |
<?php if ($_taxHelper->displayBothPrices()): ?>
|
| 230 |
<p class="special-price">
|
| 231 |
+
<span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
|
| 232 |
<span class="price-excluding-tax">
|
| 233 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 234 |
+
<span class="price"
|
| 235 |
+
id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 236 |
+
<?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
|
| 237 |
</span>
|
| 238 |
</span>
|
| 239 |
<span class="price-including-tax">
|
| 240 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 241 |
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 242 |
+
<?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
|
| 243 |
</span>
|
| 244 |
</span>
|
| 245 |
</p>
|
| 246 |
<?php else: ?>
|
| 247 |
+
<p class="special-price">
|
| 248 |
+
<span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
|
| 249 |
<span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 250 |
+
<?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmountInclTaxes, false) ?>
|
| 251 |
</span>
|
| 252 |
+
</p>
|
| 253 |
<?php endif; ?>
|
| 254 |
|
| 255 |
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
|
| 256 |
<p class="old-price">
|
| 257 |
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
| 258 |
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 259 |
+
<?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
|
| 260 |
</span>
|
| 261 |
</p>
|
| 262 |
|
| 263 |
<p class="special-price">
|
| 264 |
+
<?php if ($_taxHelper->displayBothPrices()): ?>
|
| 265 |
+
<span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
|
| 266 |
<span class="price-excluding-tax">
|
| 267 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 268 |
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 269 |
+
<?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
|
| 270 |
</span>
|
| 271 |
</span>
|
| 272 |
+
<span class="weee">(
|
| 273 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 274 |
+
<?php echo $_weeeSeparator; ?>
|
| 275 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>
|
| 276 |
+
: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
| 277 |
+
<?php $_weeeSeparator = ' + '; ?>
|
| 278 |
+
<?php endforeach; ?>
|
| 279 |
+
)</span>
|
| 280 |
+
<span class="price-including-tax">
|
| 281 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 282 |
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 283 |
+
<?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
|
| 284 |
</span>
|
| 285 |
+
</span>
|
| 286 |
+
<?php else: ?>
|
| 287 |
+
<p class="special-price">
|
| 288 |
+
<span class="price-label"><?php echo $this->__('Special Price:') ?></span>
|
| 289 |
+
<span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 290 |
+
<?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmountInclTaxes, false) ?>
|
| 291 |
+
</span>
|
| 292 |
+
</p>
|
| 293 |
+
<span class="weee">(
|
| 294 |
+
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 295 |
+
<?php echo $_weeeSeparator; ?>
|
| 296 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>
|
| 297 |
+
: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
| 298 |
+
<?php $_weeeSeparator = ' + '; ?>
|
| 299 |
+
<?php endforeach; ?>
|
| 300 |
+
)</span>
|
| 301 |
+
<?php endif; ?>
|
| 302 |
</p>
|
| 303 |
<?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
|
| 304 |
<p class="old-price">
|
| 305 |
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
| 306 |
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 307 |
+
<?php echo $_coreHelper->formatPrice($_regularPrice + $_originalWeeeTaxAmount, false) ?>
|
| 308 |
</span>
|
| 309 |
</p>
|
| 310 |
|
| 311 |
<p class="special-price">
|
| 312 |
+
<span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
|
| 313 |
<span class="price-excluding-tax">
|
| 314 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 315 |
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 316 |
+
<?php echo $_coreHelper->formatPrice($_finalPrice + $_weeeTaxAmount, false) ?>
|
| 317 |
</span>
|
| 318 |
</span>
|
| 319 |
<span class="weee">(
|
| 326 |
<span class="price-including-tax">
|
| 327 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 328 |
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 329 |
+
<?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
|
| 330 |
</span>
|
| 331 |
</span>
|
| 332 |
</p>
|
| 334 |
<p class="old-price">
|
| 335 |
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
| 336 |
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 337 |
+
<?php echo $_coreHelper->formatPrice($_regularPrice, false) ?>
|
| 338 |
</span>
|
| 339 |
</p>
|
| 340 |
|
| 341 |
<p class="special-price">
|
| 342 |
+
<span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
|
| 343 |
<span class="price-excluding-tax">
|
| 344 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 345 |
<span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 346 |
+
<?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
|
| 347 |
</span>
|
| 348 |
</span>
|
| 349 |
<?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
|
| 350 |
<span class="weee">
|
| 351 |
+
<?php echo $_weeeTaxAttribute->getName(); ?>
|
| 352 |
+
: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
|
| 353 |
</span>
|
| 354 |
<?php endforeach; ?>
|
| 355 |
<span class="price-including-tax">
|
| 356 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 357 |
<span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 358 |
+
<?php echo $_coreHelper->formatPrice($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, false) ?>
|
| 359 |
</span>
|
| 360 |
</span>
|
| 361 |
</p>
|
| 363 |
<p class="old-price">
|
| 364 |
<span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
|
| 365 |
<span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 366 |
+
<?php echo $_coreHelper->formatPrice($_regularPrice, false) ?>
|
| 367 |
</span>
|
| 368 |
</p>
|
| 369 |
|
| 370 |
<?php if ($_taxHelper->displayBothPrices()): ?>
|
| 371 |
<p class="special-price">
|
| 372 |
+
<span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
|
| 373 |
<span class="price-excluding-tax">
|
| 374 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 375 |
+
<span class="price"
|
| 376 |
+
id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 377 |
+
<?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
|
| 378 |
</span>
|
| 379 |
</span>
|
| 380 |
<span class="price-including-tax">
|
| 381 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 382 |
+
<span class="price"
|
| 383 |
+
id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 384 |
+
<?php echo $_coreHelper->formatPrice($_finalPriceInclTax, false) ?>
|
| 385 |
</span>
|
| 386 |
</span>
|
| 387 |
</p>
|
| 388 |
<?php else: ?>
|
| 389 |
+
<p class="special-price">
|
| 390 |
+
<span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
|
| 391 |
<span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 392 |
+
<?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
|
| 393 |
</span>
|
| 394 |
+
</p>
|
| 395 |
<?php endif; ?>
|
| 396 |
<?php endif; ?>
|
| 397 |
|
| 398 |
<?php endif; /* if ($_finalPrice == $_price): */ ?>
|
| 399 |
|
| 400 |
+
<?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_convertedFinalPrice): ?>
|
| 401 |
|
| 402 |
<?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
|
| 403 |
<?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1, 4))): ?>
|
| 404 |
<?php $_minimalPriceDisplayValue = $_minimalPrice + $_weeeTaxAmount; ?>
|
| 405 |
<?php endif; ?>
|
| 406 |
|
| 407 |
+
<?php if ($this->getUseLinkForAsLowAs()): ?>
|
| 408 |
+
<a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
|
| 409 |
+
<?php else: ?>
|
| 410 |
+
<span class="minimal-price-link">
|
| 411 |
+
<?php endif ?>
|
| 412 |
+
<span class="label"><?php echo $this->__('As low as:') ?></span>
|
| 413 |
+
<span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 414 |
+
<?php echo $_coreHelper->formatPrice($_minimalPriceDisplayValue, false) ?>
|
| 415 |
+
</span>
|
| 416 |
+
<?php if ($this->getUseLinkForAsLowAs()): ?>
|
| 417 |
+
</a>
|
| 418 |
+
<?php else: ?>
|
| 419 |
</span>
|
| 420 |
+
<?php endif ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 421 |
<?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
|
| 422 |
</div>
|
| 423 |
|
| 424 |
<?php else: /* if (!$_product->isGrouped()): */ ?>
|
| 425 |
<?php
|
| 426 |
+
$showMinPrice = $this->getDisplayMinimalPrice();
|
| 427 |
+
if ($showMinPrice && $_minimalPriceValue) {
|
| 428 |
+
$_exclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue);
|
| 429 |
+
$_inclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue, true);
|
| 430 |
+
$price = $showMinPrice ? $_minimalPriceValue : 0;
|
| 431 |
+
} else {
|
| 432 |
+
$price = $_convertedFinalPrice;
|
| 433 |
+
$_exclTax = $_taxHelper->getPrice($_product, $price);
|
| 434 |
+
$_inclTax = $_taxHelper->getPrice($_product, $price, true);
|
| 435 |
+
}
|
| 436 |
?>
|
| 437 |
+
<?php if ($price): ?>
|
| 438 |
<div class="price-box">
|
| 439 |
+
<p<?php if ($showMinPrice): ?> class="minimal-price"<?php endif ?>>
|
| 440 |
+
<?php if ($showMinPrice): ?>
|
| 441 |
+
<span class="price-label"><?php echo $this->__('Starting at:') ?></span>
|
| 442 |
+
<?php endif ?>
|
| 443 |
<?php if ($_taxHelper->displayBothPrices()): ?>
|
| 444 |
<span class="price-excluding-tax">
|
| 445 |
<span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
|
| 446 |
+
<span class="price"
|
| 447 |
+
id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 448 |
+
<?php echo $_coreHelper->formatPrice($_exclTax, false) ?>
|
| 449 |
</span>
|
| 450 |
</span>
|
| 451 |
<span class="price-including-tax">
|
| 452 |
<span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
|
| 453 |
+
<span class="price"
|
| 454 |
+
id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 455 |
+
<?php echo $_coreHelper->formatPrice($_inclTax, false) ?>
|
| 456 |
</span>
|
| 457 |
</span>
|
| 458 |
<?php else: ?>
|
| 462 |
$_showPrice = $_exclTax;
|
| 463 |
}
|
| 464 |
?>
|
| 465 |
+
<span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
|
| 466 |
+
<?php echo $_coreHelper->formatPrice($_showPrice, false) ?>
|
| 467 |
</span>
|
| 468 |
<?php endif; ?>
|
| 469 |
</p>
|
| 470 |
</div>
|
| 471 |
<?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
|
| 472 |
<?php endif; /* if (!$_product->isGrouped()): */ ?>
|
| 473 |
+
<?php } ?>
|
app/design/frontend/default/default/template/hideprice/related.phtml
CHANGED
|
@@ -1,7 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<?php if($this->getItems()->getSize()): ?>
|
| 2 |
<div class="block block-related">
|
| 3 |
<div class="block-title">
|
| 4 |
-
<
|
| 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>
|
|
@@ -14,15 +40,15 @@
|
|
| 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(
|
| 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 |
-
|
| 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 |
-
|
| 26 |
</div>
|
| 27 |
</div>
|
| 28 |
</li>
|
| 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($this->getItems()->getSize()): ?>
|
| 28 |
<div class="block block-related">
|
| 29 |
<div class="block-title">
|
| 30 |
+
<strong><span><?php echo $this->__('Related Products') ?></span></strong>
|
| 31 |
</div>
|
| 32 |
<div class="block-content">
|
| 33 |
<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>
|
| 40 |
<?php endif; ?>
|
| 41 |
<?php endif; ?>
|
| 42 |
<div class="product">
|
| 43 |
+
<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(50) ?>" width="50" height="50" alt="<?php echo $this->escapeHtml($_item->getName()) ?>" /></a>
|
| 44 |
<div class="product-details">
|
| 45 |
<p class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->escapeHtml($_item->getName()) ?></a></p>
|
| 46 |
<?php echo $this->getPriceHtml($_item, true, '-related') ?>
|
| 47 |
+
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/wc')) ) { ?>
|
| 48 |
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
| 49 |
<a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a>
|
| 50 |
<?php endif; ?>
|
| 51 |
+
<?php } ?>
|
| 52 |
</div>
|
| 53 |
</div>
|
| 54 |
</li>
|
app/design/frontend/default/default/template/hideprice/summary.phtml
CHANGED
|
@@ -1,4 +1,29 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/review')) ) { ?>
|
| 3 |
<?php if ($this->getReviewsCount()): ?>
|
| 4 |
<div class="ratings">
|
| 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 ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/review')) ) { ?>
|
| 28 |
<?php if ($this->getReviewsCount()): ?>
|
| 29 |
<div class="ratings">
|
app/design/frontend/default/default/template/hideprice/summary_short.phtml
CHANGED
|
@@ -1,8 +1,28 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
*/
|
| 5 |
-
|
| 6 |
?>
|
| 7 |
<?php if ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/review')) ) { ?>
|
| 8 |
<?php if ($this->getReviewsCount()): ?>
|
|
@@ -17,4 +37,4 @@ added by developer condition to check the non register user
|
|
| 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 }
|
| 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 ((Mage::getSingleton('customer/session')->isLoggedIn()) || (Mage::getStoreConfig('itemconfig/listitem/review')) ) { ?>
|
| 28 |
<?php if ($this->getReviewsCount()): ?>
|
| 37 |
<?php elseif ($this->getDisplayIfEmpty()): ?>
|
| 38 |
<p class="no-rating"><a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Be the first to review this product') ?></a></p>
|
| 39 |
<?php endif; ?>
|
| 40 |
+
<?php }?>
|
app/design/frontend/default/default/template/hideprice/view.phtml
CHANGED
|
@@ -1,8 +1,35 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
*/
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
?>
|
| 7 |
<?php $_helper = $this->helper('catalog/output'); ?>
|
| 8 |
<?php $_product = $this->getProduct(); ?>
|
|
@@ -12,153 +39,132 @@ added by developer condition to check the non register user
|
|
| 12 |
<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
|
| 13 |
<div class="product-view">
|
| 14 |
<div class="product-essential">
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
</div>
|
| 21 |
|
| 22 |
-
|
| 23 |
-
<
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
</div>
|
| 26 |
-
<?php echo $this->getChildHtml('
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
<div class="product-name">
|
| 31 |
-
<span class="h1"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></span>
|
| 32 |
</div>
|
|
|
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
</div>
|
|
|
|
| 39 |
|
| 40 |
-
|
| 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('
|
| 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 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
}
|
| 119 |
}
|
| 120 |
-
}
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
}
|
|
|
|
| 134 |
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
}
|
| 139 |
-
this.form.submit();
|
| 140 |
}
|
| 141 |
-
|
| 142 |
}
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
|
|
|
|
|
|
| 146 |
</div>
|
| 147 |
|
| 148 |
-
<div class="product-collateral
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
<?php
|
| 159 |
</div>
|
| 160 |
-
|
| 161 |
-
<?php echo $this->getChildHtml('upsell_products') ?>
|
| 162 |
-
<?php echo $this->getChildHtml('product_additional_data') ?>
|
| 163 |
-
|
| 164 |
</div>
|
| 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(); ?>
|
| 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>
|
package.xml
CHANGED
|
@@ -1,18 +1,19 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>SSTech_Session</name>
|
| 4 |
-
<version>1.0.
|
| 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>
|
|
|
|
| 12 |
<authors><author><name>SSTech</name><user>SSTech</user><email>sandynaresh@gmail.com</email></author></authors>
|
| 13 |
-
<date>2014-10-
|
| 14 |
-
<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="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>SSTech_Session</name>
|
| 4 |
+
<version>1.0.1</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>Update the layout changes 
|
| 12 |
+
</notes>
|
| 13 |
<authors><author><name>SSTech</name><user>SSTech</user><email>sandynaresh@gmail.com</email></author></authors>
|
| 14 |
+
<date>2014-10-10</date>
|
| 15 |
+
<time>14:27:10</time>
|
| 16 |
+
<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="ce1b50439fd72525a885e18813c41abe"/><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="46946041e9584adf213e23ed84828a11"/><dir name="compare"><file name="list.phtml" hash="f63a979030bc9a13a3a4d3146414da2d"/></dir><file name="list.phtml" hash="61eb01be08e68816b9b94fcfceba171e"/><file name="price.phtml" hash="5cab4e2dc1f3fdf70f81ae6e1b0ab5a0"/><file name="related.phtml" hash="9e290f42c8410eb881485b5be9f56f59"/><file name="summary.phtml" hash="f27ffe6983876d3d58c41c0b0c25aea8"/><file name="summary_short.phtml" hash="0b41ec766f3fda9bb1ae998b9a693eb7"/><file name="view.phtml" hash="4bbafc14286a318f0b98fe4a7425eac2"/></dir></dir></dir></dir></dir></target></contents>
|
| 17 |
<compatible/>
|
| 18 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 19 |
</package>
|
