Pre_Order - Version 1.0.3

Version Notes

Pre-Order extension can increase your website's effectiveness by allowing customer to order products which is not in stock currently but would be in stock in future. This extension extends native Magento functionality with an ability to show available date of products in list and product detail page as well as cart page also. This extension gives you the flexibility to show details for another theme also.For magento ver 1.9, it would work for default package not for rwd package. You can set available date text and easily manage via admin therefore its fully flexible and useful for your website to increase your site's sale.


Installation Process


If extension is not being installed from connect then you can download this extension from below link
http://freegento.com/ddl-magento-extension.php


Note


Please see screenshot. I shown all setting in screenshot. There is no config setting.

Download this release

Release Info

Developer Anupam Tiwari
Extension Pre_Order
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/design/frontend/base/default/template/preorder/cart/item/default.phtml ADDED
@@ -0,0 +1,1263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2012 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
+ $version = substr(Mage::getVersion(), 0,3);
29
+ ?>
30
+ <?php $_item = $this->getItem()?>
31
+ <?php
32
+ if($version == '1.4'): ?>
33
+ <tr>
34
+ <td><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" class="product-image"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></td>
35
+ <td>
36
+ <h2 class="product-name">
37
+ <?php if ($this->hasProductUrl()):?>
38
+ <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a>
39
+ <?php else: ?>
40
+ <?php echo $this->htmlEscape($this->getProductName()) ?>
41
+ <?php endif; ?>
42
+ </h2>
43
+ <?php if ($_options = $this->getOptionList()):?>
44
+ <dl class="item-options">
45
+ <?php foreach ($_options as $_option) : ?>
46
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
47
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
48
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
49
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
50
+ <div class="truncated_full_value">
51
+ <dl class="item-options">
52
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
53
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
54
+ </dl>
55
+ </div>
56
+ <?php endif; ?>
57
+ </dd>
58
+ <?php endforeach; ?>
59
+ </dl>
60
+ <?php endif;?>
61
+ <?php if ($messages = $this->getMessages()): ?>
62
+ <?php foreach ($messages as $message): ?>
63
+ <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $message['text'] ?></p>
64
+ <?php endforeach; ?>
65
+ <?php endif; ?>
66
+ <?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
67
+ <?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
68
+ <?php endif;?>
69
+ <?php if($_item->getPreOrder() && ($_item->getPreOrderNote()!='')): ?>
70
+ <span class="pre_order_note_text"><?php echo $_item->getPreOrderNote(); ?></span>
71
+ <?php endif; ?>
72
+ </td>
73
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
74
+ <td class="a-center">
75
+ <input type="checkbox" value="1" name="cart[<?php echo $_item->getId() ?>][wishlist]" title="<?php echo $this->__('Move to Wishlist') ?>" class="checkbox" />
76
+ </td>
77
+ <?php endif ?>
78
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
79
+ <td class="a-right">
80
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
81
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
82
+ <?php else: ?>
83
+ <span class="cart-price">
84
+ <?php endif; ?>
85
+
86
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
87
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
88
+ <?php else: ?>
89
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
90
+ <?php endif; ?>
91
+
92
+ </span>
93
+
94
+
95
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
96
+
97
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
98
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
99
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
100
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
101
+ <?php endforeach; ?>
102
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
103
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
104
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
105
+ <?php endforeach; ?>
106
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
107
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
108
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
109
+ <?php endforeach; ?>
110
+ <?php endif; ?>
111
+ </div>
112
+
113
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
114
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
115
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
116
+ </div>
117
+ <?php endif; ?>
118
+ <?php endif; ?>
119
+ </td>
120
+ <?php endif; ?>
121
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
122
+ <td>
123
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
124
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
125
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
126
+ <?php else: ?>
127
+ <span class="cart-price">
128
+ <?php endif; ?>
129
+
130
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
131
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
132
+ <?php else: ?>
133
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
134
+ <?php endif; ?>
135
+
136
+ </span>
137
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
138
+
139
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
140
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
141
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
142
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
143
+ <?php endforeach; ?>
144
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
145
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
146
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
147
+ <?php endforeach; ?>
148
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
149
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
150
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
151
+ <?php endforeach; ?>
152
+ <?php endif; ?>
153
+ </div>
154
+
155
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
156
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
157
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
158
+ </div>
159
+ <?php endif; ?>
160
+ <?php endif; ?>
161
+ </td>
162
+ <?php endif; ?>
163
+ <td class="a-center">
164
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12" />
165
+ </td>
166
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
167
+ <td class="a-right">
168
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
169
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
170
+ <?php else: ?>
171
+ <span class="cart-price">
172
+ <?php endif; ?>
173
+
174
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
175
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
176
+ <?php else: ?>
177
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
178
+ <?php endif; ?>
179
+
180
+ </span>
181
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
182
+
183
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
184
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
185
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
186
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
187
+ <?php endforeach; ?>
188
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
189
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
190
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
191
+ <?php endforeach; ?>
192
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
193
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
194
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
195
+ <?php endforeach; ?>
196
+ <?php endif; ?>
197
+ </div>
198
+
199
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
200
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
201
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
202
+ </div>
203
+ <?php endif; ?>
204
+ <?php endif; ?>
205
+ </td>
206
+ <?php endif; ?>
207
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
208
+ <td>
209
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
210
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
211
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
212
+ <?php else: ?>
213
+ <span class="cart-price">
214
+ <?php endif; ?>
215
+
216
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
217
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
218
+ <?php else: ?>
219
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
220
+ <?php endif; ?>
221
+
222
+ </span>
223
+
224
+
225
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
226
+
227
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
228
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
229
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
230
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
231
+ <?php endforeach; ?>
232
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
233
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
234
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
235
+ <?php endforeach; ?>
236
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
237
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
238
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
239
+ <?php endforeach; ?>
240
+ <?php endif; ?>
241
+ </div>
242
+
243
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
244
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
245
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
246
+ </div>
247
+ <?php endif; ?>
248
+ <?php endif; ?>
249
+ </td>
250
+ <?php endif; ?>
251
+ <td class="a-center"><a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo $this->__('Remove item')?>" class="btn-remove btn-remove2"><?php echo $this->__('Remove item')?></a></td>
252
+ </tr>
253
+ <?php endif; ?>
254
+
255
+ <?php if($version == '1.5'): ?>
256
+ <?php
257
+
258
+ $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
259
+ ?>
260
+ <tr>
261
+ <td><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" class="product-image"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></td>
262
+ <td>
263
+ <h2 class="product-name">
264
+ <?php if ($this->hasProductUrl()):?>
265
+ <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a>
266
+ <?php else: ?>
267
+ <?php echo $this->htmlEscape($this->getProductName()) ?>
268
+ <?php endif; ?>
269
+ </h2>
270
+ <?php if ($_options = $this->getOptionList()):?>
271
+ <dl class="item-options">
272
+ <?php foreach ($_options as $_option) : ?>
273
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
274
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
275
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
276
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
277
+ <div class="truncated_full_value">
278
+ <dl class="item-options">
279
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
280
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
281
+ </dl>
282
+ </div>
283
+ <?php endif; ?>
284
+ </dd>
285
+ <?php endforeach; ?>
286
+ </dl>
287
+ <?php endif;?>
288
+ <?php if ($messages = $this->getMessages()): ?>
289
+ <?php foreach ($messages as $message): ?>
290
+ <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $message['text'] ?></p>
291
+ <?php endforeach; ?>
292
+ <?php endif; ?>
293
+ <?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
294
+ <?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
295
+ <?php endif;?>
296
+ <?php if($_item->getPreOrder() && ($_item->getPreOrderNote()!='')): ?>
297
+ <span class="pre_order_note_text"><?php echo $_item->getPreOrderNote(); ?></span>
298
+ <?php endif; ?>
299
+ </td>
300
+ <td class="a-center">
301
+ <?php if ($isVisibleProduct): ?>
302
+ <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
303
+ <?php endif ?>
304
+ </td>
305
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
306
+ <td class="a-center">
307
+ <?php if ($isVisibleProduct): ?>
308
+ <input type="checkbox" value="1" name="cart[<?php echo $_item->getId() ?>][wishlist]" title="<?php echo $this->__('Move to Wishlist') ?>" class="checkbox" />
309
+ <?php endif ?>
310
+ </td>
311
+ <?php endif ?>
312
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
313
+ <td class="a-right">
314
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
315
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
316
+ <?php else: ?>
317
+ <span class="cart-price">
318
+ <?php endif; ?>
319
+
320
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
321
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
322
+ <?php else: ?>
323
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
324
+ <?php endif; ?>
325
+
326
+ </span>
327
+
328
+
329
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
330
+
331
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
332
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
333
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
334
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
335
+ <?php endforeach; ?>
336
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
337
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
338
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
339
+ <?php endforeach; ?>
340
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
341
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
342
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
343
+ <?php endforeach; ?>
344
+ <?php endif; ?>
345
+ </div>
346
+
347
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
348
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
349
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
350
+ </div>
351
+ <?php endif; ?>
352
+ <?php endif; ?>
353
+ </td>
354
+ <?php endif; ?>
355
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
356
+ <td>
357
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
358
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
359
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
360
+ <?php else: ?>
361
+ <span class="cart-price">
362
+ <?php endif; ?>
363
+
364
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
365
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
366
+ <?php else: ?>
367
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
368
+ <?php endif; ?>
369
+
370
+ </span>
371
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
372
+
373
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
374
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
375
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
376
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
377
+ <?php endforeach; ?>
378
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
379
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
380
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
381
+ <?php endforeach; ?>
382
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
383
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
384
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
385
+ <?php endforeach; ?>
386
+ <?php endif; ?>
387
+ </div>
388
+
389
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
390
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
391
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
392
+ </div>
393
+ <?php endif; ?>
394
+ <?php endif; ?>
395
+ </td>
396
+ <?php endif; ?>
397
+ <td class="a-center">
398
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12" />
399
+ </td>
400
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
401
+ <td class="a-right">
402
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
403
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
404
+ <?php else: ?>
405
+ <span class="cart-price">
406
+ <?php endif; ?>
407
+
408
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
409
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
410
+ <?php else: ?>
411
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
412
+ <?php endif; ?>
413
+
414
+ </span>
415
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
416
+
417
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
418
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
419
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
420
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
421
+ <?php endforeach; ?>
422
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
423
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
424
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
425
+ <?php endforeach; ?>
426
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
427
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
428
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
429
+ <?php endforeach; ?>
430
+ <?php endif; ?>
431
+ </div>
432
+
433
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
434
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
435
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
436
+ </div>
437
+ <?php endif; ?>
438
+ <?php endif; ?>
439
+ </td>
440
+ <?php endif; ?>
441
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
442
+ <td>
443
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
444
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
445
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
446
+ <?php else: ?>
447
+ <span class="cart-price">
448
+ <?php endif; ?>
449
+
450
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
451
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
452
+ <?php else: ?>
453
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
454
+ <?php endif; ?>
455
+
456
+ </span>
457
+
458
+
459
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
460
+
461
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
462
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
463
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
464
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
465
+ <?php endforeach; ?>
466
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
467
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
468
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
469
+ <?php endforeach; ?>
470
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
471
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
472
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
473
+ <?php endforeach; ?>
474
+ <?php endif; ?>
475
+ </div>
476
+
477
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
478
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
479
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
480
+ </div>
481
+ <?php endif; ?>
482
+ <?php endif; ?>
483
+ </td>
484
+ <?php endif; ?>
485
+ <td class="a-center"><a href="<?php echo $this->getDeleteUrl()?>" title="<?php echo $this->__('Remove item')?>" class="btn-remove btn-remove2"><?php echo $this->__('Remove item')?></a></td>
486
+ </tr>
487
+ <?php endif; ?>
488
+
489
+ <?php if($version == '1.6'): ?>
490
+ <?php
491
+
492
+ $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
493
+ $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
494
+ ?>
495
+ <tr>
496
+ <td><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" class="product-image"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></td>
497
+ <td>
498
+ <h2 class="product-name">
499
+ <?php if ($this->hasProductUrl()):?>
500
+ <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a>
501
+ <?php else: ?>
502
+ <?php echo $this->htmlEscape($this->getProductName()) ?>
503
+ <?php endif; ?>
504
+ </h2>
505
+ <?php if ($_options = $this->getOptionList()):?>
506
+ <dl class="item-options">
507
+ <?php foreach ($_options as $_option) : ?>
508
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
509
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
510
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
511
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
512
+ <div class="truncated_full_value">
513
+ <dl class="item-options">
514
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
515
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
516
+ </dl>
517
+ </div>
518
+ <?php endif; ?>
519
+ </dd>
520
+ <?php endforeach; ?>
521
+ </dl>
522
+ <?php endif;?>
523
+ <?php if ($messages = $this->getMessages()): ?>
524
+ <?php foreach ($messages as $message): ?>
525
+ <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $message['text'] ?></p>
526
+ <?php endforeach; ?>
527
+ <?php endif; ?>
528
+ <?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
529
+ <?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
530
+ <?php endif;?>
531
+ <?php if($_item->getPreOrder() && ($_item->getPreOrderNote()!='')): ?>
532
+ <span class="pre_order_note_text"><?php echo $_item->getPreOrderNote(); ?></span>
533
+ <?php endif; ?>
534
+ </td>
535
+ <td class="a-center">
536
+ <?php if ($isVisibleProduct): ?>
537
+ <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
538
+ <?php endif ?>
539
+ </td>
540
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
541
+ <td class="a-center">
542
+ <?php if ($isVisibleProduct): ?>
543
+ <input type="checkbox" value="1" name="cart[<?php echo $_item->getId() ?>][wishlist]" title="<?php echo $this->__('Move to Wishlist') ?>" class="checkbox" />
544
+ <?php endif ?>
545
+ </td>
546
+ <?php endif ?>
547
+
548
+ <?php if ($canApplyMsrp): ?>
549
+ <td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
550
+ <span class="cart-price">
551
+ <span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
552
+ <?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
553
+ <a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
554
+ <script type="text/javascript">
555
+ Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
556
+ </script>
557
+ </span>
558
+ </td>
559
+ <?php else: ?>
560
+
561
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
562
+ <td class="a-right">
563
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
564
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
565
+ <?php else: ?>
566
+ <span class="cart-price">
567
+ <?php endif; ?>
568
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
569
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
570
+ <?php else: ?>
571
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
572
+ <?php endif; ?>
573
+
574
+ </span>
575
+
576
+
577
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
578
+
579
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
580
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
581
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
582
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
583
+ <?php endforeach; ?>
584
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
585
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
586
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
587
+ <?php endforeach; ?>
588
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
589
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
590
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
591
+ <?php endforeach; ?>
592
+ <?php endif; ?>
593
+ </div>
594
+
595
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
596
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
597
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
598
+ </div>
599
+ <?php endif; ?>
600
+ <?php endif; ?>
601
+ </td>
602
+ <?php endif; ?>
603
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
604
+ <td>
605
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
606
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
607
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
608
+ <?php else: ?>
609
+ <span class="cart-price">
610
+ <?php endif; ?>
611
+
612
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
613
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
614
+ <?php else: ?>
615
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
616
+ <?php endif; ?>
617
+
618
+ </span>
619
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
620
+
621
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
622
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
623
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
624
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
625
+ <?php endforeach; ?>
626
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
627
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
628
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
629
+ <?php endforeach; ?>
630
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
631
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
632
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
633
+ <?php endforeach; ?>
634
+ <?php endif; ?>
635
+ </div>
636
+
637
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
638
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
639
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
640
+ </div>
641
+ <?php endif; ?>
642
+ <?php endif; ?>
643
+ </td>
644
+ <?php endif; ?>
645
+ <?php endif; ?>
646
+ <td class="a-center">
647
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12" />
648
+ </td>
649
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
650
+ <td class="a-right">
651
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
652
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
653
+ <?php else: ?>
654
+ <span class="cart-price">
655
+ <?php endif; ?>
656
+
657
+ <?php if ($canApplyMsrp): ?>
658
+ <span class="cart-msrp-subtotal">--</span>
659
+ <?php else: ?>
660
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
661
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
662
+ <?php else: ?>
663
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
664
+ <?php endif; ?>
665
+ <?php endif; ?>
666
+
667
+ </span>
668
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
669
+
670
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
671
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
672
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
673
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
674
+ <?php endforeach; ?>
675
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
676
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
677
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
678
+ <?php endforeach; ?>
679
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
680
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
681
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
682
+ <?php endforeach; ?>
683
+ <?php endif; ?>
684
+ </div>
685
+
686
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
687
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
688
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
689
+ </div>
690
+ <?php endif; ?>
691
+ <?php endif; ?>
692
+ </td>
693
+ <?php endif; ?>
694
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
695
+ <td>
696
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
697
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
698
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
699
+ <?php else: ?>
700
+ <span class="cart-price">
701
+ <?php endif; ?>
702
+
703
+ <?php if ($canApplyMsrp): ?>
704
+ <span class="cart-msrp-subtotal">--</span>
705
+ <?php else: ?>
706
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
707
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
708
+ <?php else: ?>
709
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
710
+ <?php endif; ?>
711
+ <?php endif; ?>
712
+
713
+ </span>
714
+
715
+
716
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
717
+
718
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
719
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
720
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
721
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
722
+ <?php endforeach; ?>
723
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
724
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
725
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
726
+ <?php endforeach; ?>
727
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
728
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
729
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
730
+ <?php endforeach; ?>
731
+ <?php endif; ?>
732
+ </div>
733
+
734
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
735
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
736
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
737
+ </div>
738
+ <?php endif; ?>
739
+ <?php endif; ?>
740
+ </td>
741
+ <?php endif; ?>
742
+ <td class="a-center"><a href="<?php echo $this->getDeleteUrl()?>" title="<?php echo $this->__('Remove item')?>" class="btn-remove btn-remove2"><?php echo $this->__('Remove item')?></a></td>
743
+ </tr>
744
+ <?php endif; ?>
745
+
746
+ <?php if($version == '1.7'): ?>
747
+ <?php
748
+
749
+ $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
750
+ $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
751
+ ?>
752
+ <tr>
753
+ <td><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->htmlEscape($this->getProductName()) ?>" class="product-image"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></td>
754
+ <td>
755
+ <h2 class="product-name">
756
+ <?php if ($this->hasProductUrl()):?>
757
+ <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a>
758
+ <?php else: ?>
759
+ <?php echo $this->htmlEscape($this->getProductName()) ?>
760
+ <?php endif; ?>
761
+ </h2>
762
+ <?php if ($_options = $this->getOptionList()):?>
763
+ <dl class="item-options">
764
+ <?php foreach ($_options as $_option) : ?>
765
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
766
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
767
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
768
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
769
+ <div class="truncated_full_value">
770
+ <dl class="item-options">
771
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
772
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
773
+ </dl>
774
+ </div>
775
+ <?php endif; ?>
776
+ </dd>
777
+ <?php endforeach; ?>
778
+ </dl>
779
+ <?php endif;?>
780
+ <?php if ($messages = $this->getMessages()): ?>
781
+ <?php foreach ($messages as $message): ?>
782
+ <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $this->escapeHtml($message['text']) ?></p>
783
+ <?php endforeach; ?>
784
+ <?php endif; ?>
785
+ <?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
786
+ <?php if ($addInfoBlock): ?>
787
+ <?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
788
+ <?php endif;?>
789
+ <?php if($_item->getPreOrder() && ($_item->getPreOrderNote()!='')): ?>
790
+ <span class="pre_order_note_text"><?php echo $_item->getPreOrderNote(); ?></span>
791
+ <?php endif; ?>
792
+ </td>
793
+ <td class="a-center">
794
+ <?php if ($isVisibleProduct): ?>
795
+ <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
796
+ <?php endif ?>
797
+ </td>
798
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
799
+ <td class="a-center">
800
+ <?php if ($isVisibleProduct): ?>
801
+ <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move'); ?></a>
802
+ <?php endif ?>
803
+ </td>
804
+ <?php endif ?>
805
+
806
+ <?php if ($canApplyMsrp): ?>
807
+ <td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
808
+ <span class="cart-price">
809
+ <span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
810
+ <?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
811
+ <a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
812
+ <script type="text/javascript">
813
+ Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
814
+ </script>
815
+ </span>
816
+ </td>
817
+ <?php else: ?>
818
+
819
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
820
+ <td class="a-right">
821
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
822
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
823
+ <?php else: ?>
824
+ <span class="cart-price">
825
+ <?php endif; ?>
826
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
827
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
828
+ <?php else: ?>
829
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
830
+ <?php endif; ?>
831
+
832
+ </span>
833
+
834
+
835
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
836
+
837
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
838
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
839
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
840
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
841
+ <?php endforeach; ?>
842
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
843
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
844
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
845
+ <?php endforeach; ?>
846
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
847
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
848
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
849
+ <?php endforeach; ?>
850
+ <?php endif; ?>
851
+ </div>
852
+
853
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
854
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
855
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
856
+ </div>
857
+ <?php endif; ?>
858
+ <?php endif; ?>
859
+ </td>
860
+ <?php endif; ?>
861
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
862
+ <td>
863
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
864
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
865
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
866
+ <?php else: ?>
867
+ <span class="cart-price">
868
+ <?php endif; ?>
869
+
870
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
871
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
872
+ <?php else: ?>
873
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
874
+ <?php endif; ?>
875
+
876
+ </span>
877
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
878
+
879
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
880
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
881
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
882
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
883
+ <?php endforeach; ?>
884
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
885
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
886
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
887
+ <?php endforeach; ?>
888
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
889
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
890
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
891
+ <?php endforeach; ?>
892
+ <?php endif; ?>
893
+ </div>
894
+
895
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
896
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
897
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
898
+ </div>
899
+ <?php endif; ?>
900
+ <?php endif; ?>
901
+ </td>
902
+ <?php endif; ?>
903
+ <?php endif; ?>
904
+ <td class="a-center">
905
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12" />
906
+ </td>
907
+ <?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
908
+ <td class="a-right">
909
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
910
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
911
+ <?php else: ?>
912
+ <span class="cart-price">
913
+ <?php endif; ?>
914
+
915
+ <?php if ($canApplyMsrp): ?>
916
+ <span class="cart-msrp-subtotal">--</span>
917
+ <?php else: ?>
918
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
919
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
920
+ <?php else: ?>
921
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
922
+ <?php endif; ?>
923
+ <?php endif; ?>
924
+
925
+ </span>
926
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
927
+
928
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
929
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
930
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
931
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
932
+ <?php endforeach; ?>
933
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
934
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
935
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
936
+ <?php endforeach; ?>
937
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
938
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
939
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
940
+ <?php endforeach; ?>
941
+ <?php endif; ?>
942
+ </div>
943
+
944
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
945
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
946
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
947
+ </div>
948
+ <?php endif; ?>
949
+ <?php endif; ?>
950
+ </td>
951
+ <?php endif; ?>
952
+ <?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
953
+ <td>
954
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
955
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
956
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
957
+ <?php else: ?>
958
+ <span class="cart-price">
959
+ <?php endif; ?>
960
+
961
+ <?php if ($canApplyMsrp): ?>
962
+ <span class="cart-msrp-subtotal">--</span>
963
+ <?php else: ?>
964
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
965
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
966
+ <?php else: ?>
967
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
968
+ <?php endif; ?>
969
+ <?php endif; ?>
970
+
971
+ </span>
972
+
973
+
974
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
975
+
976
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
977
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
978
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
979
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
980
+ <?php endforeach; ?>
981
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
982
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
983
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
984
+ <?php endforeach; ?>
985
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
986
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
987
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
988
+ <?php endforeach; ?>
989
+ <?php endif; ?>
990
+ </div>
991
+
992
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
993
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
994
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
995
+ </div>
996
+ <?php endif; ?>
997
+ <?php endif; ?>
998
+ </td>
999
+ <?php endif; ?>
1000
+ <td class="a-center"><a href="<?php echo $this->getDeleteUrl()?>" title="<?php echo $this->__('Remove item')?>" class="btn-remove btn-remove2"><?php echo $this->__('Remove item')?></a></td>
1001
+ </tr>
1002
+ <?php endif; ?>
1003
+
1004
+ <?php if($version == '1.8' || $version == '1.9'): ?>
1005
+ <?php
1006
+
1007
+ $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
1008
+ $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
1009
+ ?>
1010
+ <tr>
1011
+ <td><?php if ($this->hasProductUrl()):?><a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->escapeHtml($this->getProductName()) ?>" class="product-image"><?php endif;?><img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" width="75" height="75" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" /><?php if ($this->hasProductUrl()):?></a><?php endif;?></td>
1012
+ <td>
1013
+ <h2 class="product-name">
1014
+ <?php if ($this->hasProductUrl()):?>
1015
+ <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->escapeHtml($this->getProductName()) ?></a>
1016
+ <?php else: ?>
1017
+ <?php echo $this->escapeHtml($this->getProductName()) ?>
1018
+ <?php endif; ?>
1019
+ </h2>
1020
+ <?php if ($_options = $this->getOptionList()):?>
1021
+ <dl class="item-options">
1022
+ <?php foreach ($_options as $_option) : ?>
1023
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
1024
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
1025
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
1026
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
1027
+ <div class="truncated_full_value">
1028
+ <dl class="item-options">
1029
+ <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
1030
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
1031
+ </dl>
1032
+ </div>
1033
+ <?php endif; ?>
1034
+ </dd>
1035
+ <?php endforeach; ?>
1036
+ </dl>
1037
+ <?php endif;?>
1038
+ <?php if ($messages = $this->getMessages()): ?>
1039
+ <?php foreach ($messages as $message): ?>
1040
+ <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $this->escapeHtml($message['text']) ?></p>
1041
+ <?php endforeach; ?>
1042
+ <?php endif; ?>
1043
+ <?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
1044
+ <?php if ($addInfoBlock): ?>
1045
+ <?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
1046
+ <?php endif;?>
1047
+ <?php if($_item->getPreOrder() && ($_item->getPreOrderNote()!='')): ?>
1048
+ <span class="pre_order_note_text"><?php echo $_item->getPreOrderNote(); ?></span>
1049
+ <?php endif; ?>
1050
+ </td>
1051
+ <td class="a-center">
1052
+ <?php if ($isVisibleProduct): ?>
1053
+ <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
1054
+ <?php endif ?>
1055
+ </td>
1056
+ <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
1057
+ <td class="a-center">
1058
+ <?php if ($isVisibleProduct): ?>
1059
+ <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move'); ?></a>
1060
+ <?php endif ?>
1061
+ </td>
1062
+ <?php endif ?>
1063
+
1064
+ <?php if ($canApplyMsrp): ?>
1065
+ <td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
1066
+ <span class="cart-price">
1067
+ <span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
1068
+ <?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
1069
+ <a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
1070
+ <script type="text/javascript">
1071
+ Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
1072
+ </script>
1073
+ </span>
1074
+ </td>
1075
+ <?php else: ?>
1076
+
1077
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
1078
+ <td class="a-right">
1079
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1080
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
1081
+ <?php else: ?>
1082
+ <span class="cart-price">
1083
+ <?php endif; ?>
1084
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1085
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
1086
+ <?php else: ?>
1087
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
1088
+ <?php endif; ?>
1089
+
1090
+ </span>
1091
+
1092
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
1093
+
1094
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
1095
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1096
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1097
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
1098
+ <?php endforeach; ?>
1099
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1100
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1101
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
1102
+ <?php endforeach; ?>
1103
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1104
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1105
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
1106
+ <?php endforeach; ?>
1107
+ <?php endif; ?>
1108
+ </div>
1109
+
1110
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1111
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
1112
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
1113
+ </div>
1114
+ <?php endif; ?>
1115
+ <?php endif; ?>
1116
+ </td>
1117
+ <?php endif; ?><!-- inclusive price starts here -->
1118
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
1119
+ <td>
1120
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
1121
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1122
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
1123
+ <?php else: ?>
1124
+ <span class="cart-price">
1125
+ <?php endif; ?>
1126
+
1127
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1128
+ <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
1129
+ <?php else: ?>
1130
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
1131
+ <?php endif; ?>
1132
+
1133
+ </span>
1134
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
1135
+
1136
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
1137
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1138
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1139
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
1140
+ <?php endforeach; ?>
1141
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1142
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1143
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
1144
+ <?php endforeach; ?>
1145
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1146
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1147
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
1148
+ <?php endforeach; ?>
1149
+ <?php endif; ?>
1150
+ </div>
1151
+
1152
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1153
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
1154
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
1155
+ </div>
1156
+ <?php endif; ?>
1157
+ <?php endif; ?>
1158
+ </td>
1159
+ <?php endif; ?>
1160
+ <?php endif; ?>
1161
+ <td class="a-center">
1162
+ <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12" />
1163
+ </td>
1164
+
1165
+ <!--Sub total starts here -->
1166
+ <?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
1167
+ <td class="a-right">
1168
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1169
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
1170
+ <?php else: ?>
1171
+ <span class="cart-price">
1172
+ <?php endif; ?>
1173
+
1174
+ <?php if ($canApplyMsrp): ?>
1175
+ <span class="cart-msrp-subtotal">--</span>
1176
+ <?php else: ?>
1177
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1178
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
1179
+ <?php else: ?>
1180
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
1181
+ <?php endif; ?>
1182
+ <?php endif; ?>
1183
+
1184
+ </span>
1185
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
1186
+
1187
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
1188
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1189
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1190
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
1191
+ <?php endforeach; ?>
1192
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1193
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1194
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
1195
+ <?php endforeach; ?>
1196
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1197
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1198
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
1199
+ <?php endforeach; ?>
1200
+ <?php endif; ?>
1201
+ </div>
1202
+
1203
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1204
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
1205
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
1206
+ </div>
1207
+ <?php endif; ?>
1208
+ <?php endif; ?>
1209
+ </td>
1210
+ <?php endif; ?>
1211
+ <?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
1212
+ <td>
1213
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
1214
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1215
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
1216
+ <?php else: ?>
1217
+ <span class="cart-price">
1218
+ <?php endif; ?>
1219
+
1220
+ <?php if ($canApplyMsrp): ?>
1221
+ <span class="cart-msrp-subtotal">--</span>
1222
+ <?php else: ?>
1223
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1224
+ <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
1225
+ <?php else: ?>
1226
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
1227
+ <?php endif; ?>
1228
+ <?php endif; ?>
1229
+
1230
+ </span>
1231
+
1232
+
1233
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
1234
+
1235
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
1236
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1237
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1238
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
1239
+ <?php endforeach; ?>
1240
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1241
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1242
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
1243
+ <?php endforeach; ?>
1244
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1245
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
1246
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
1247
+ <?php endforeach; ?>
1248
+ <?php endif; ?>
1249
+ </div>
1250
+
1251
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
1252
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
1253
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
1254
+ </div>
1255
+ <?php endif; ?>
1256
+ <?php endif; ?>
1257
+ </td>
1258
+ <?php endif; ?>
1259
+ <td class="a-center"><a href="<?php echo $this->getDeleteUrl()?>" title="<?php echo $this->__('Remove item')?>" class="btn-remove btn-remove2"><?php echo $this->__('Remove item')?></a></td>
1260
+ </tr>
1261
+ <?php endif; ?>
1262
+
1263
+
app/design/frontend/base/default/template/preorder/product/all-list.phtml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Unicode Systems
4
+ * @category Uni
5
+ * @package Uni_Autoregister
6
+ * @copyright Copyright (c) 2010-2011 Unicode Systems. (http://www.unicodesystems.in)
7
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
8
+ */
9
+ ?>
10
+ <!-- Quick Details -->
11
+ <?php
12
+ $version = substr(Mage::getVersion(), 0,3);
13
+ $template = '';
14
+ switch ($version) {
15
+ case '1.4':
16
+ $template = $this->getChildHtml('list14');
17
+ break;
18
+ case '1.5':
19
+ $template = $this->getChildHtml('list15');
20
+ break;
21
+ case '1.6':
22
+ $template = $this->getChildHtml('list16');
23
+ break;
24
+ case '1.7':
25
+ $template = $this->getChildHtml('list17');
26
+ break;
27
+ default :
28
+ $template = $this->getChildHtml('list17');
29
+ break;
30
+ }
31
+ echo $template;
32
+ ?>
app/design/frontend/base/default/template/preorder/product/all-view.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Unicode Systems
4
+ * @category Uni
5
+ * @package Uni_Autoregister
6
+ * @copyright Copyright (c) 2010-2011 Unicode Systems. (http://www.unicodesystems.in)
7
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
8
+ */
9
+ ?>
10
+ <!-- Quick Details -->
11
+ <?php
12
+ $version = substr(Mage::getVersion(), 0,3);
13
+ $template = '';
14
+ switch ($version) {
15
+ case '1.3':
16
+ $template = $this->getChildHtml('addtocart14');
17
+ break;
18
+ case '1.4':
19
+ $template = $this->getChildHtml('addtocart14');
20
+ break;
21
+ case '1.7':
22
+ $template = $this->getChildHtml('addtocart17');
23
+ break;
24
+ default :
25
+ $template = $this->getChildHtml('addtocart17');
26
+ break;
27
+ }
28
+ echo $template;
29
+ ?>
app/design/frontend/base/default/template/preorder/product/list/list14.phtml ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Product list template
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List
32
+ */
33
+ ?>
34
+ <?php
35
+ $_productCollection=$this->getLoadedProductCollection();
36
+ $_helper = $this->helper('catalog/output');
37
+ ?>
38
+ <?php if(!$_productCollection->count()): ?>
39
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
40
+ <?php else: ?>
41
+ <div class="category-products">
42
+ <?php echo $this->getToolbarHtml() ?>
43
+ <?php // List mode ?>
44
+ <?php if($this->getMode()!='grid'): ?>
45
+ <?php $_iterator = 0; ?>
46
+ <ol class="products-list" id="products-list">
47
+ <?php foreach ($_productCollection as $_product): ?>
48
+ <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
49
+ <?php // Product Image ?>
50
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
51
+ <?php // Product description ?>
52
+ <div class="product-shop">
53
+ <div class="f-fix">
54
+ <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
55
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
56
+ <?php if($_product->getRatingSummary()): ?>
57
+ <?php echo $this->getReviewsSummaryHtml($_product) ?>
58
+ <?php endif; ?>
59
+ <?php echo $this->getPriceHtml($_product, true) ?>
60
+ <?php if($_product->isSaleable()): ?>
61
+ <p>
62
+ <?php if($_product->getPreOrder()): ?>
63
+ <button type="button" title="<?php echo $this->__('Pre-Order') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Pre-Order') ?></span></span></button>
64
+ <?php else: ?>
65
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
66
+ <?php endif; ?>
67
+ </p>
68
+ <?php else: ?>
69
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
70
+ <?php endif; ?>
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
+ <ul class="add-to-links">
76
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
77
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
78
+ <?php endif; ?>
79
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
80
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
81
+ <?php endif; ?>
82
+ </ul>
83
+ </div>
84
+ </div>
85
+ </li>
86
+ <?php endforeach; ?>
87
+ </ol>
88
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
89
+
90
+ <?php else: ?>
91
+
92
+ <?php // Grid Mode ?>
93
+
94
+ <?php $_collectionSize = $_productCollection->count() ?>
95
+ <?php $_columnCount = $this->getColumnCount(); ?>
96
+ <?php $i=0; foreach ($_productCollection as $_product): ?>
97
+ <?php if ($i++%$_columnCount==0): ?>
98
+ <ul class="products-grid">
99
+ <?php endif ?>
100
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
101
+ <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>
102
+ <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>
103
+ <?php if($_product->getRatingSummary()): ?>
104
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
105
+ <?php endif; ?>
106
+ <?php echo $this->getPriceHtml($_product, true) ?>
107
+ <div class="actions">
108
+ <?php if($_product->isSaleable()): ?>
109
+ <?php if($_product->getPreOrder()): ?>
110
+ <button type="button" title="<?php echo $this->__('Pre-Order') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Pre-Order') ?></span></span></button>
111
+ <?php else: ?>
112
+ <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>
113
+ <?php endif; ?>
114
+ <?php else: ?>
115
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
116
+ <?php endif; ?>
117
+ <ul class="add-to-links">
118
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
119
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
120
+ <?php endif; ?>
121
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
122
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
123
+ <?php endif; ?>
124
+ </ul>
125
+ </div>
126
+ </li>
127
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
128
+ </ul>
129
+ <?php endif ?>
130
+ <?php endforeach ?>
131
+ <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
132
+ <?php endif; ?>
133
+
134
+ <div class="toolbar-bottom">
135
+ <?php echo $this->getToolbarHtml() ?>
136
+ </div>
137
+ </div>
138
+ <?php endif; ?>
app/design/frontend/base/default/template/preorder/product/list/list15.phtml ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Product list template
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List
32
+ */
33
+ ?>
34
+ <?php
35
+ $_productCollection=$this->getLoadedProductCollection();
36
+ $_helper = $this->helper('catalog/output');
37
+ ?>
38
+ <?php if(!$_productCollection->count()): ?>
39
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
40
+ <?php else: ?>
41
+ <div class="category-products">
42
+ <?php echo $this->getToolbarHtml() ?>
43
+ <?php // List mode ?>
44
+ <?php if($this->getMode()!='grid'): ?>
45
+ <?php $_iterator = 0; ?>
46
+ <ol class="products-list" id="products-list">
47
+ <?php foreach ($_productCollection as $_product): ?>
48
+ <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
49
+ <?php // Product Image ?>
50
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
51
+ <?php // Product description ?>
52
+ <div class="product-shop">
53
+ <div class="f-fix">
54
+ <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
55
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
56
+ <?php if($_product->getRatingSummary()): ?>
57
+ <?php echo $this->getReviewsSummaryHtml($_product) ?>
58
+ <?php endif; ?>
59
+ <?php echo $this->getPriceHtml($_product, true) ?>
60
+ <?php if($_product->isSaleable()): ?>
61
+ <p>
62
+ <?php if($_product->getPreOrder()): ?>
63
+ <button type="button" title="<?php echo $this->__('Pre-Order') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Pre-Order') ?></span></span></button>
64
+ <?php else: ?>
65
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
66
+ <?php endif; ?>
67
+ </p>
68
+ <?php else: ?>
69
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
70
+ <?php endif; ?>
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
+ <ul class="add-to-links">
76
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
77
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
78
+ <?php endif; ?>
79
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
80
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
81
+ <?php endif; ?>
82
+ </ul>
83
+ </div>
84
+ </div>
85
+ </li>
86
+ <?php endforeach; ?>
87
+ </ol>
88
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
89
+
90
+ <?php else: ?>
91
+
92
+ <?php // Grid Mode ?>
93
+
94
+ <?php $_collectionSize = $_productCollection->count() ?>
95
+ <?php $_columnCount = $this->getColumnCount(); ?>
96
+ <?php $i=0; foreach ($_productCollection as $_product): ?>
97
+ <?php if ($i++%$_columnCount==0): ?>
98
+ <ul class="products-grid">
99
+ <?php endif ?>
100
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
101
+ <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>
102
+ <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>
103
+ <?php if($_product->getRatingSummary()): ?>
104
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
105
+ <?php endif; ?>
106
+ <?php echo $this->getPriceHtml($_product, true) ?>
107
+ <div class="actions">
108
+ <?php if($_product->isSaleable()): ?>
109
+ <?php if($_product->getPreOrder()): ?>
110
+ <button type="button" title="<?php echo $this->__('Pre-Order') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Pre-Order') ?></span></span></button>
111
+ <?php else: ?>
112
+ <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>
113
+ <?php endif; ?>
114
+ <?php else: ?>
115
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
116
+ <?php endif; ?>
117
+ <ul class="add-to-links">
118
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
119
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
120
+ <?php endif; ?>
121
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
122
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
123
+ <?php endif; ?>
124
+ </ul>
125
+ </div>
126
+ </li>
127
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
128
+ </ul>
129
+ <?php endif ?>
130
+ <?php endforeach ?>
131
+ <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
132
+ <?php endif; ?>
133
+
134
+ <div class="toolbar-bottom">
135
+ <?php echo $this->getToolbarHtml() ?>
136
+ </div>
137
+ </div>
138
+ <?php endif; ?>
app/design/frontend/base/default/template/preorder/product/list/list16.phtml ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2011 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Product list template
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List
32
+ */
33
+ ?>
34
+ <?php
35
+ $_productCollection=$this->getLoadedProductCollection();
36
+ $_helper = $this->helper('catalog/output');
37
+ ?>
38
+ <?php if(!$_productCollection->count()): ?>
39
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
40
+ <?php else: ?>
41
+ <div class="category-products">
42
+ <?php echo $this->getToolbarHtml() ?>
43
+ <?php // List mode ?>
44
+ <?php if($this->getMode()!='grid'): ?>
45
+ <?php $_iterator = 0; ?>
46
+ <ol class="products-list" id="products-list">
47
+ <?php foreach ($_productCollection as $_product): ?>
48
+ <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
49
+ <?php // Product Image ?>
50
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
51
+ <?php // Product description ?>
52
+ <div class="product-shop">
53
+ <div class="f-fix">
54
+ <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
55
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
56
+ <?php if($_product->getRatingSummary()): ?>
57
+ <?php echo $this->getReviewsSummaryHtml($_product) ?>
58
+ <?php endif; ?>
59
+ <?php echo $this->getPriceHtml($_product, true) ?>
60
+ <?php if($_product->isSaleable()): ?>
61
+ <p>
62
+ <?php if($_product->getPreOrder()): ?>
63
+ <button type="button" title="<?php echo $this->__('Pre-Order') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Pre-Order') ?></span></span></button>
64
+ <?php else: ?>
65
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
66
+ <?php endif; ?>
67
+ </p>
68
+ <?php else: ?>
69
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
70
+ <?php endif; ?>
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
+ <ul class="add-to-links">
76
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
77
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
78
+ <?php endif; ?>
79
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
80
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
81
+ <?php endif; ?>
82
+ </ul>
83
+ </div>
84
+ </div>
85
+ </li>
86
+ <?php endforeach; ?>
87
+ </ol>
88
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
89
+
90
+ <?php else: ?>
91
+
92
+ <?php // Grid Mode ?>
93
+
94
+ <?php $_collectionSize = $_productCollection->count() ?>
95
+ <?php $_columnCount = $this->getColumnCount(); ?>
96
+ <?php $i=0; foreach ($_productCollection as $_product): ?>
97
+ <?php if ($i++%$_columnCount==0): ?>
98
+ <ul class="products-grid">
99
+ <?php endif ?>
100
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
101
+ <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>
102
+ <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>
103
+ <?php if($_product->getRatingSummary()): ?>
104
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
105
+ <?php endif; ?>
106
+ <?php echo $this->getPriceHtml($_product, true) ?>
107
+ <div class="actions">
108
+ <?php if($_product->isSaleable()): ?>
109
+ <?php if($_product->getPreOrder()): ?>
110
+ <button type="button" title="<?php echo $this->__('Pre-Order') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Pre-Order') ?></span></span></button>
111
+ <?php else: ?>
112
+ <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>
113
+ <?php endif; ?>
114
+ <?php else: ?>
115
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
116
+ <?php endif; ?>
117
+ <ul class="add-to-links">
118
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
119
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
120
+ <?php endif; ?>
121
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
122
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
123
+ <?php endif; ?>
124
+ </ul>
125
+ </div>
126
+ </li>
127
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
128
+ </ul>
129
+ <?php endif ?>
130
+ <?php endforeach ?>
131
+ <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
132
+ <?php endif; ?>
133
+
134
+ <div class="toolbar-bottom">
135
+ <?php echo $this->getToolbarHtml() ?>
136
+ </div>
137
+ </div>
138
+ <?php endif; ?>
app/design/frontend/base/default/template/preorder/product/list/list17.phtml ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2012 Magento Inc. (http://www.magentocommerce.com)
24
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
+ */
26
+ ?>
27
+ <?php
28
+ /**
29
+ * Product list template
30
+ *
31
+ * @see Mage_Catalog_Block_Product_List
32
+ */
33
+ ?>
34
+ <?php
35
+ $_productCollection=$this->getLoadedProductCollection();
36
+ $_helper = $this->helper('catalog/output');
37
+ ?>
38
+ <?php if(!$_productCollection->count()): ?>
39
+ <p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
40
+ <?php else: ?>
41
+ <div class="category-products">
42
+ <?php echo $this->getToolbarHtml() ?>
43
+ <?php // List mode ?>
44
+ <?php if($this->getMode()!='grid'): ?>
45
+ <?php $_iterator = 0; ?>
46
+ <ol class="products-list" id="products-list">
47
+ <?php foreach ($_productCollection as $_product): ?>
48
+ <li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
49
+ <?php // Product Image ?>
50
+ <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
51
+ <?php // Product description ?>
52
+ <div class="product-shop">
53
+ <div class="f-fix">
54
+ <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
55
+ <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
56
+ <?php if($_product->getRatingSummary()): ?>
57
+ <?php echo $this->getReviewsSummaryHtml($_product) ?>
58
+ <?php endif; ?>
59
+ <?php echo $this->getPriceHtml($_product, true) ?>
60
+ <?php if($_product->isSaleable()): ?>
61
+ <p>
62
+ <?php if($_product->getPreOrder()): ?>
63
+ <button type="button" title="<?php echo $this->__('Pre-Order') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Pre-Order') ?></span></span></button>
64
+ <?php else: ?>
65
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
66
+ <?php endif; ?>
67
+ </p>
68
+ <?php else: ?>
69
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
70
+ <?php endif; ?>
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
+ <ul class="add-to-links">
76
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
77
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
78
+ <?php endif; ?>
79
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
80
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
81
+ <?php endif; ?>
82
+ </ul>
83
+ </div>
84
+ </div>
85
+ </li>
86
+ <?php endforeach; ?>
87
+ </ol>
88
+ <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
89
+
90
+ <?php else: ?>
91
+
92
+ <?php // Grid Mode ?>
93
+
94
+ <?php $_collectionSize = $_productCollection->count() ?>
95
+ <?php $_columnCount = $this->getColumnCount(); ?>
96
+ <?php $i=0; foreach ($_productCollection as $_product): ?>
97
+ <?php if ($i++%$_columnCount==0): ?>
98
+ <ul class="products-grid">
99
+ <?php endif ?>
100
+ <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
101
+ <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>
102
+ <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>
103
+ <?php if($_product->getRatingSummary()): ?>
104
+ <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
105
+ <?php endif; ?>
106
+ <?php echo $this->getPriceHtml($_product, true) ?>
107
+ <div class="actions">
108
+ <?php if($_product->isSaleable()): ?>
109
+ <?php if($_product->getPreOrder()): ?>
110
+ <button type="button" title="<?php echo $this->__('Pre-Order') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Pre-Order') ?></span></span></button>
111
+ <?php else: ?>
112
+ <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>
113
+ <?php endif; ?>
114
+ <?php else: ?>
115
+ <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
116
+ <?php endif; ?>
117
+ <ul class="add-to-links">
118
+ <?php if ($this->helper('wishlist')->isAllow()) : ?>
119
+ <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
120
+ <?php endif; ?>
121
+ <?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
122
+ <li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
123
+ <?php endif; ?>
124
+ </ul>
125
+ </div>
126
+ </li>
127
+ <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
128
+ </ul>
129
+ <?php endif ?>
130
+ <?php endforeach ?>
131
+ <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
132
+ <?php endif; ?>
133
+
134
+ <div class="toolbar-bottom">
135
+ <?php echo $this->getToolbarHtml() ?>
136
+ </div>
137
+ </div>
138
+ <?php endif; ?>
app/design/frontend/base/default/template/preorder/product/view/addtocart14.phtml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2010 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 $_product = $this->getProduct() ?>
29
+
30
+ <?php if($_product->isSaleable()): ?>
31
+ <?php if($_product->getPreOrder() && $_product->getPreOrderNote() != ''): ?>
32
+ <div class="view_pre_order_note"><?php echo $_product->getPreOrderNote() ?></div>
33
+ <?php endif; ?>
34
+ <div class="add-to-cart">
35
+ <?php if(!$_product->isGrouped()): ?>
36
+ <label for="qty"><?php echo $this->__('Qty:') ?></label>
37
+ <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getMinimalQty($_product) ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
38
+ <?php endif; ?>
39
+ <?php if($_product->getPreOrder()): ?>
40
+ <button type="button" title="<?php echo ($_product->getPreOrderNote()!=''?$_product->getPreOrderNote():'Pre-Order') ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $this->__('Pre-Order') ?></span></span></button>
41
+ <?php else: ?>
42
+ <button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
43
+ <?php endif; ?>
44
+ <?php echo $this->getChildHtml('', true, true) ?>
45
+ </div>
46
+ <?php endif; ?>
app/design/frontend/base/default/template/preorder/product/view/addtocart17.phtml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2012 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 $_product = $this->getProduct(); ?>
28
+ <?php $buttonTitle = $this->__('Add to Cart'); ?>
29
+ <?php if($_product->isSaleable()): ?>
30
+ <?php if($_product->getPreOrder() && $_product->getPreOrderNote() != ''): ?>
31
+ <div class="view_pre_order_note"><?php echo $_product->getPreOrderNote() ?></div>
32
+ <?php endif; ?>
33
+ <div class="add-to-cart">
34
+ <?php if(!$_product->isGrouped()): ?>
35
+ <label for="qty"><?php echo $this->__('Qty:') ?></label>
36
+ <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
37
+ <?php endif; ?>
38
+ <?php if($_product->getPreOrder()): ?>
39
+ <button type="button" title="<?php echo ($_product->getPreOrderNote()!=''?$_product->getPreOrderNote():'Pre-Order') ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $this->__('Pre-Order') ?></span></span></button>
40
+ <?php else: ?>
41
+ <button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
42
+ <?php endif; ?>
43
+ <?php echo $this->getChildHtml('', true, true) ?>
44
+ </div>
45
+ <?php endif; ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Pre_Order</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -28,9 +28,9 @@ http://freegento.com/ddl-magento-extension.php&#xD;
28
  &lt;h2&gt;Note&lt;/h2&gt;&#xD;
29
  Please see screenshot. I shown all setting in screenshot. There is no config setting.</notes>
30
  <authors><author><name>Anupam Tiwari</name><user>MAG002574387</user><email>vishwasnature30@gmail.com</email></author></authors>
31
- <date>2015-03-24</date>
32
- <time>12:02:53</time>
33
- <contents><target name="magecommunity"><dir name="Vishwasnature"><dir name="Preorder"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="2ccb89cf47a41b2661f41dde653123e7"/></dir></dir></dir></dir><dir name="Model"><file name="Observer.php" hash="dcbd532250e82216e8ea97345735f35b"/></dir><dir name="controllers"><file name="IndexController.php" hash="c0853f66f2a29e2f7fce4da70c7c9d58"/></dir><dir name="etc"><file name="config.xml" hash="528190ce375218e9f951eccfd8b66ef3"/></dir><dir name="sql"><dir name="vishwasnature_preorder_setup"><file name="mysql4-install-0.0.1.php" hash="438a1cfed120e1654620f510ac7b0365"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="preorder.xml" hash="9564221debc1659b6e85598f5b92076b"/></dir><dir name="template"><dir name="preorder"><dir name="sales"><dir name="order"><dir name="view"><dir name="info"><file name="info14.phtml" hash="3b648f3614c44d23aff8dc441040902c"/><file name="info15.phtml" hash="ebf9e3a11e422bfda35d7fd0a77c2228"/><file name="info17.phtml" hash="e68e0d2b214ffbc4262798087ea2285e"/><file name="info18.phtml" hash="0ca9803d835a920839fcdc6b74f6e754"/></dir><file name="info.phtml" hash="e31836166aa130ce4556a766291571af"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="preorder.xml" hash="c29eb73b4ac8377e83f1ab8ee46126d5"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="preorder"><dir name="css"><file name="custom.css" hash="225129aac029563506c974863166e2b7"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vishwasnature_Preorder.xml" hash="b596bae3461a9ba5472e5e9e62cb7db1"/></dir></target></contents>
34
  <compatible/>
35
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
36
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Pre_Order</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
28
  &lt;h2&gt;Note&lt;/h2&gt;&#xD;
29
  Please see screenshot. I shown all setting in screenshot. There is no config setting.</notes>
30
  <authors><author><name>Anupam Tiwari</name><user>MAG002574387</user><email>vishwasnature30@gmail.com</email></author></authors>
31
+ <date>2015-03-30</date>
32
+ <time>06:22:59</time>
33
+ <contents><target name="magecommunity"><dir name="Vishwasnature"><dir name="Preorder"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="2ccb89cf47a41b2661f41dde653123e7"/></dir></dir></dir></dir><dir name="Model"><file name="Observer.php" hash="dcbd532250e82216e8ea97345735f35b"/></dir><dir name="controllers"><file name="IndexController.php" hash="c0853f66f2a29e2f7fce4da70c7c9d58"/></dir><dir name="etc"><file name="config.xml" hash="528190ce375218e9f951eccfd8b66ef3"/></dir><dir name="sql"><dir name="vishwasnature_preorder_setup"><file name="mysql4-install-0.0.1.php" hash="438a1cfed120e1654620f510ac7b0365"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="preorder.xml" hash="9564221debc1659b6e85598f5b92076b"/></dir><dir name="template"><dir name="preorder"><dir name="sales"><dir name="order"><dir name="view"><dir name="info"><file name="info14.phtml" hash="3b648f3614c44d23aff8dc441040902c"/><file name="info15.phtml" hash="ebf9e3a11e422bfda35d7fd0a77c2228"/><file name="info17.phtml" hash="e68e0d2b214ffbc4262798087ea2285e"/><file name="info18.phtml" hash="0ca9803d835a920839fcdc6b74f6e754"/></dir><file name="info.phtml" hash="e31836166aa130ce4556a766291571af"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="preorder.xml" hash="c29eb73b4ac8377e83f1ab8ee46126d5"/></dir><dir name="template"><dir name="preorder"><dir name="cart"><dir name="item"><file name="default.phtml" hash="2a003c5400e11b9fddfd38f30eaf82aa"/></dir></dir><dir name="product"><file name="all-list.phtml" hash="05d1fdf2983d4685621d083de3d15b89"/><file name="all-view.phtml" hash="87db342808a4ae34730d7247a91fd5ad"/><dir name="list"><file name="list14.phtml" hash="953d1224590eb6a70e53b685971d25c7"/><file name="list15.phtml" hash="953d1224590eb6a70e53b685971d25c7"/><file name="list16.phtml" hash="c42b8c640153b53b846566f8422153f7"/><file name="list17.phtml" hash="c9f4d7d4f586a44039bda13b7142d3a0"/></dir><dir name="view"><file name="addtocart14.phtml" hash="e218e949dec92c2a545bea61d721956b"/><file name="addtocart17.phtml" hash="dd6f95236df3adcd3c306861d6a93a96"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="preorder"><dir name="css"><file name="custom.css" hash="225129aac029563506c974863166e2b7"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vishwasnature_Preorder.xml" hash="b596bae3461a9ba5472e5e9e62cb7db1"/></dir></target></contents>
34
  <compatible/>
35
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
36
  </package>