Advertisement
Guest User

Untitled

a guest
Mar 12th, 2013
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.24 KB | None | 0 0
  1. <?php
  2. $_item = $this->getItem();
  3. $_tierPricing = $this->getLayout()->createBlock(
  4. 'catalog/product_view',
  5. 'product.tierprices',
  6. array(
  7. 'product_id' => $_item->getProductId()
  8. )
  9. );
  10. $_tierPricing->setTemplate('catalog/product/view/tierprices.phtml');
  11. $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
  12. $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
  13. ?>
  14. <tr>
  15. <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>
  16. <td>
  17. <h2 class="product-name">
  18. <?php if ($this->hasProductUrl()):?>
  19. <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a>
  20. <?php else: ?>
  21. <?php echo $this->htmlEscape($this->getProductName()) ?>
  22. <?php endif; ?>
  23. </h2>
  24. <?php if ($_options = $this->getOptionList()):?>
  25. <dl class="item-options">
  26. <?php foreach ($_options as $_option) : ?>
  27. <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
  28. <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
  29. <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
  30. <?php if (isset($_formatedOptionValue['full_view'])): ?>
  31. <div class="truncated_full_value">
  32. <dl class="item-options">
  33. <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
  34. <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
  35. </dl>
  36. </div>
  37. <?php endif; ?>
  38. </dd>
  39. <?php endforeach; ?>
  40. </dl>
  41. <?php endif;?>
  42. <?php if ($messages = $this->getMessages()): ?>
  43. <?php foreach ($messages as $message): ?>
  44. <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $this->escapeHtml($message['text']) ?></p>
  45. <?php endforeach; ?>
  46. <?php endif; ?>
  47. <?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
  48. <?php if ($addInfoBlock): ?>
  49. <?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
  50. <?php endif;?>
  51. </td>
  52. <td style="width:400px;">
  53.  
  54. <?php
  55. $custom = Mage::getModel('catalog/product')->load($_item->getProductId());
  56. $_productDescription = $custom->getShortDescription();
  57. $_manufacturer = $custom->getAttributeText('manufacturer');
  58. $_manufacturerID = $custom->getManufacturerId();
  59. $_specialprice = $custom->getFinalPrice();
  60. $_sku = $custom->getSku();
  61. ?>
  62.  
  63. <span><?php echo $_productDescription; ?></span>
  64. <br /><br /><span><strong>Item:</strong> (<?php echo $_sku; ?>)</span>
  65. <br /><span><strong>MFG:</strong> <?php echo $_manufacturer; ?></span>
  66. <br /><span><strong>MFG ID:</strong> <?php echo $_manufacturerID; ?></span>
  67. <br /><span><strong>Each Item:</strong> $<?php echo number_format($_specialprice,2); ?></span>
  68. <br /><span><?php echo $_tierPricing->getTierPriceHtml(); ?></span>
  69. </td>
  70. <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
  71. <td class="a-center">
  72. <?php if ($isVisibleProduct): ?>
  73. <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move'); ?></a>
  74. <?php endif ?>
  75. </td>
  76. <?php endif ?>
  77.  
  78. <?php if ($canApplyMsrp): ?>
  79. <td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
  80. <span class="cart-price">
  81. <span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
  82. <?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
  83. <a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
  84. <script type="text/javascript">
  85. Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
  86. </script>
  87. </span>
  88. </td>
  89. <?php else: ?>
  90.  
  91. <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
  92. <td class="a-right">
  93. <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  94. <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
  95. <?php else: ?>
  96. <span class="cart-price">
  97. <?php endif; ?>
  98. <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  99. <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
  100. <?php else: ?>
  101. <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
  102. <?php endif; ?>
  103.  
  104. </span>
  105.  
  106.  
  107. <?php if (Mage::helper('weee')->getApplied($_item)): ?>
  108.  
  109. <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
  110. <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  111. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  112. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
  113. <?php endforeach; ?>
  114. <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  115. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  116. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
  117. <?php endforeach; ?>
  118. <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  119. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  120. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
  121. <?php endforeach; ?>
  122. <?php endif; ?>
  123. </div>
  124.  
  125. <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  126. <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
  127. <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
  128. </div>
  129. <?php endif; ?>
  130. <?php endif; ?>
  131. </td>
  132. <?php endif; ?>
  133. <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
  134. <td>
  135. <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
  136. <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  137. <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
  138. <?php else: ?>
  139. <span class="cart-price">
  140. <?php endif; ?>
  141.  
  142. <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  143. <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
  144. <?php else: ?>
  145. <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
  146. <?php endif; ?>
  147.  
  148. </span>
  149. <?php if (Mage::helper('weee')->getApplied($_item)): ?>
  150.  
  151. <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
  152. <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  153. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  154. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
  155. <?php endforeach; ?>
  156. <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  157. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  158. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
  159. <?php endforeach; ?>
  160. <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  161. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  162. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
  163. <?php endforeach; ?>
  164. <?php endif; ?>
  165. </div>
  166.  
  167. <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  168. <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
  169. <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
  170. </div>
  171. <?php endif; ?>
  172. <?php endif; ?>
  173. </td>
  174. <?php endif; ?>
  175. <?php endif; ?>
  176. <td class="a-center">
  177. <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" />
  178. </td>
  179. <?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
  180. <td class="a-right">
  181. <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  182. <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
  183. <?php else: ?>
  184. <span class="cart-price">
  185. <?php endif; ?>
  186.  
  187. <?php if ($canApplyMsrp): ?>
  188. <span class="cart-msrp-subtotal">--</span>
  189. <?php else: ?>
  190. <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  191. <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
  192. <?php else: ?>
  193. <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
  194. <?php endif; ?>
  195. <?php endif; ?>
  196.  
  197. </span>
  198. <?php if (Mage::helper('weee')->getApplied($_item)): ?>
  199.  
  200. <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
  201. <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  202. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  203. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
  204. <?php endforeach; ?>
  205. <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  206. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  207. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
  208. <?php endforeach; ?>
  209. <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  210. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  211. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
  212. <?php endforeach; ?>
  213. <?php endif; ?>
  214. </div>
  215.  
  216. <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  217. <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
  218. <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
  219. </div>
  220. <?php endif; ?>
  221. <?php endif; ?>
  222. </td>
  223. <?php endif; ?>
  224. <?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
  225. <td>
  226. <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
  227. <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  228. <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
  229. <?php else: ?>
  230. <span class="cart-price">
  231. <?php endif; ?>
  232.  
  233. <?php if ($canApplyMsrp): ?>
  234. <span class="cart-msrp-subtotal">--</span>
  235. <?php else: ?>
  236. <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  237. <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
  238. <?php else: ?>
  239. <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
  240. <?php endif; ?>
  241. <?php endif; ?>
  242.  
  243. </span>
  244.  
  245.  
  246. <?php if (Mage::helper('weee')->getApplied($_item)): ?>
  247.  
  248. <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
  249. <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  250. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  251. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
  252. <?php endforeach; ?>
  253. <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  254. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  255. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
  256. <?php endforeach; ?>
  257. <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  258. <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
  259. <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
  260. <?php endforeach; ?>
  261. <?php endif; ?>
  262. </div>
  263.  
  264. <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
  265. <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
  266. <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
  267. </div>
  268. <?php endif; ?>
  269. <?php endif; ?>
  270. </td>
  271. <?php endif; ?>
  272. <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')?></a></td>
  273. </tr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement