PSystem_AjaxQuickCart - Version 1.0.1

Version Notes

This module was tested in Magento Commerce version 1.4.0.1 and 1.5.0.1, and work in this version smoothly. Also test in Firefox 3.6, Chrome, Opera and IE 7,8,9.

Download this release

Release Info

Developer Magento Core Team
Extension PSystem_AjaxQuickCart
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/PSystem/AjaxQuickCart/Block/Headerjs.php CHANGED
@@ -3,7 +3,7 @@
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
- * @version 1.0.0
7
  */
8
 
9
  /**
@@ -12,7 +12,7 @@
12
  * @category PSystem
13
  * @package PSystem_AjaxQuickCart
14
  * @author Pascal System <info@pascalsystem.pl>
15
- * @version 1.0.0
16
  */
17
  class PSystem_AjaxQuickCart_Block_Headerjs extends Mage_Core_Block_Abstract {
18
  /**
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
  */
8
 
9
  /**
12
  * @category PSystem
13
  * @package PSystem_AjaxQuickCart
14
  * @author Pascal System <info@pascalsystem.pl>
15
+ * @version 1.0.1
16
  */
17
  class PSystem_AjaxQuickCart_Block_Headerjs extends Mage_Core_Block_Abstract {
18
  /**
app/code/community/PSystem/AjaxQuickCart/Block/Item/Renderer.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category PSystem
4
+ * @package PSystem_AjaxQuickCart
5
+ * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
+ */
8
+
9
+ /**
10
+ * Pascal Quick Cart Ajax item layer renderer
11
+ *
12
+ * @category PSystem
13
+ * @package PSystem_AjaxQuickCart
14
+ * @author Pascal System <info@pascalsystem.pl>
15
+ * @version 1.0.1
16
+ */
17
+ class PSystem_AjaxQuickCart_Block_Item_Renderer extends Mage_Checkout_Block_Cart_Item_Renderer {
18
+ /**
19
+ * Get item delete url
20
+ *
21
+ * @return string
22
+ */
23
+ public function getDeleteUrl() {
24
+ return $this->getUrl(
25
+ 'checkout/cart/delete',
26
+ array(
27
+ 'id'=>$this->getItem()->getId(),
28
+ Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED => $this->helper('core/url')->getEncodedUrl(Mage::getUrl('checkout/cart/index'))
29
+ )
30
+ );
31
+ }
32
+ }
app/code/community/PSystem/AjaxQuickCart/Block/Item/Renderer/Configurable.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category PSystem
4
+ * @package PSystem_AjaxQuickCart
5
+ * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
+ */
8
+
9
+ /**
10
+ * Pascal Quick Cart Ajax item layer renderer for configurable products
11
+ *
12
+ * @category PSystem
13
+ * @package PSystem_AjaxQuickCart
14
+ * @author Pascal System <info@pascalsystem.pl>
15
+ * @version 1.0.1
16
+ */
17
+ class PSystem_AjaxQuickCart_Block_Item_Renderer_Configurable extends Mage_Checkout_Block_Cart_Item_Renderer_Configurable {
18
+ /**
19
+ * Get item delete url
20
+ *
21
+ * @return string
22
+ */
23
+ public function getDeleteUrl() {
24
+ return $this->getUrl(
25
+ 'checkout/cart/delete',
26
+ array(
27
+ 'id'=>$this->getItem()->getId(),
28
+ Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED => $this->helper('core/url')->getEncodedUrl(Mage::getUrl('checkout/cart/index'))
29
+ )
30
+ );
31
+ }
32
+ }
app/code/community/PSystem/AjaxQuickCart/Block/Item/Renderer/Grouped.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category PSystem
4
+ * @package PSystem_AjaxQuickCart
5
+ * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
+ */
8
+
9
+ /**
10
+ * Pascal Quick Cart Ajax item layer renderer for group products
11
+ *
12
+ * @category PSystem
13
+ * @package PSystem_AjaxQuickCart
14
+ * @author Pascal System <info@pascalsystem.pl>
15
+ * @version 1.0.1
16
+ */
17
+ class PSystem_AjaxQuickCart_Block_Item_Renderer_Grouped extends Mage_Checkout_Block_Cart_Item_Renderer_Grouped {
18
+ /**
19
+ * Get item delete url
20
+ *
21
+ * @return string
22
+ */
23
+ public function getDeleteUrl() {
24
+ return $this->getUrl(
25
+ 'checkout/cart/delete',
26
+ array(
27
+ 'id'=>$this->getItem()->getId(),
28
+ Mage_Core_Controller_Front_Action::PARAM_NAME_URL_ENCODED => $this->helper('core/url')->getEncodedUrl(Mage::getUrl('checkout/cart/index'))
29
+ )
30
+ );
31
+ }
32
+ }
app/code/community/PSystem/AjaxQuickCart/Block/Layerjs.php CHANGED
@@ -3,7 +3,7 @@
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
- * @version 1.0.0
7
  */
8
 
9
  /**
@@ -12,7 +12,7 @@
12
  * @category PSystem
13
  * @package PSystem_AjaxQuickCart
14
  * @author Pascal System <info@pascalsystem.pl>
15
- * @version 1.0.0
16
  */
17
  class PSystem_AjaxQuickCart_Block_Layerjs extends Mage_Core_Block_Abstract {
18
  /**
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
  */
8
 
9
  /**
12
  * @category PSystem
13
  * @package PSystem_AjaxQuickCart
14
  * @author Pascal System <info@pascalsystem.pl>
15
+ * @version 1.0.1
16
  */
17
  class PSystem_AjaxQuickCart_Block_Layerjs extends Mage_Core_Block_Abstract {
18
  /**
app/code/community/PSystem/AjaxQuickCart/Block/Refresh.php CHANGED
@@ -3,7 +3,7 @@
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
- * @version 1.0.0
7
  */
8
 
9
  /**
@@ -12,7 +12,7 @@
12
  * @category PSystem
13
  * @package PSystem_AjaxQuickCart
14
  * @author Pascal System <info@pascalsystem.pl>
15
- * @version 1.0.0
16
  */
17
  class PSystem_AjaxQuickCart_Block_Refresh extends Mage_Core_Block_Abstract {
18
  /**
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
  */
8
 
9
  /**
12
  * @category PSystem
13
  * @package PSystem_AjaxQuickCart
14
  * @author Pascal System <info@pascalsystem.pl>
15
+ * @version 1.0.1
16
  */
17
  class PSystem_AjaxQuickCart_Block_Refresh extends Mage_Core_Block_Abstract {
18
  /**
app/code/community/PSystem/AjaxQuickCart/Block/Refresh/Response.php CHANGED
@@ -3,7 +3,7 @@
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
- * @version 1.0.0
7
  */
8
 
9
  /**
@@ -12,7 +12,7 @@
12
  * @category PSystem
13
  * @package PSystem_AjaxQuickCart
14
  * @author Pascal System <info@pascalsystem.pl>
15
- * @version 1.0.0
16
  */
17
  class PSystem_AjaxQuickCart_Block_Refresh_Response extends Mage_Core_Block_Abstract {
18
  /**
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
  */
8
 
9
  /**
12
  * @category PSystem
13
  * @package PSystem_AjaxQuickCart
14
  * @author Pascal System <info@pascalsystem.pl>
15
+ * @version 1.0.1
16
  */
17
  class PSystem_AjaxQuickCart_Block_Refresh_Response extends Mage_Core_Block_Abstract {
18
  /**
app/code/community/PSystem/AjaxQuickCart/Model/Observer.php CHANGED
@@ -3,7 +3,7 @@
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
- * @version 1.0.0
7
  */
8
 
9
  /**
@@ -12,7 +12,7 @@
12
  * @category PSystem
13
  * @package PSystem_AjaxQuickCart
14
  * @author Pascal System <info@pascalsystem.pl>
15
- * @version 1.0.0
16
  */
17
  class PSystem_AjaxQuickCart_Model_Observer extends Mage_Core_Block_Abstract {
18
  /**
@@ -109,7 +109,6 @@ class PSystem_AjaxQuickCart_Model_Observer extends Mage_Core_Block_Abstract {
109
  </reference>');*/
110
  $update->addHandle('ajaxquickcart_product_view');
111
  $update->addHandle('PRODUCT_TYPE_ajaxquickcart_'.$productType);
112
-
113
- //tu i u gory dodac obsluge add to cart w jakis sposob na warstwie
114
  }
115
  }
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
  */
8
 
9
  /**
12
  * @category PSystem
13
  * @package PSystem_AjaxQuickCart
14
  * @author Pascal System <info@pascalsystem.pl>
15
+ * @version 1.0.1
16
  */
17
  class PSystem_AjaxQuickCart_Model_Observer extends Mage_Core_Block_Abstract {
18
  /**
109
  </reference>');*/
110
  $update->addHandle('ajaxquickcart_product_view');
111
  $update->addHandle('PRODUCT_TYPE_ajaxquickcart_'.$productType);
112
+ //todo: add addtocart ajax on layer
 
113
  }
114
  }
app/code/community/PSystem/AjaxQuickCart/controllers/ViewcartController.php CHANGED
@@ -3,7 +3,7 @@
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
- * @version 1.0.0
7
  */
8
 
9
  /**
@@ -17,7 +17,7 @@ require_once 'Mage/Checkout/controllers/CartController.php';
17
  * @category PSystem
18
  * @package PSystem_AjaxQuickCart
19
  * @author Pascal System <info@pascalsystem.pl>
20
- * @version 1.0.0
21
  */
22
  class PSystem_AjaxQuickCart_ViewcartController extends Mage_Checkout_CartController {
23
  /**
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
  */
8
 
9
  /**
17
  * @category PSystem
18
  * @package PSystem_AjaxQuickCart
19
  * @author Pascal System <info@pascalsystem.pl>
20
+ * @version 1.0.1
21
  */
22
  class PSystem_AjaxQuickCart_ViewcartController extends Mage_Checkout_CartController {
23
  /**
app/code/community/PSystem/AjaxQuickCart/etc/adminhtml.xml CHANGED
@@ -4,7 +4,7 @@
4
  * @category PSystem
5
  * @package PSystem_AjaxQuickCart
6
  * @author Pascal System <info@pascalsystem.pl>
7
- * @version 1.0.0
8
  */
9
  -->
10
  <config>
4
  * @category PSystem
5
  * @package PSystem_AjaxQuickCart
6
  * @author Pascal System <info@pascalsystem.pl>
7
+ * @version 1.0.1
8
  */
9
  -->
10
  <config>
app/code/community/PSystem/AjaxQuickCart/etc/config.xml CHANGED
@@ -4,13 +4,13 @@
4
  * @category PSystem
5
  * @package PSystem_AjaxQuickCart
6
  * @author Pascal System <info@pascalsystem.pl>
7
- * @version 1.0.0
8
  */
9
  -->
10
  <config>
11
  <modules>
12
  <PSystem_AjaxQuickCart>
13
- <version>1.0.0</version>
14
  </PSystem_AjaxQuickCart>
15
  </modules>
16
  <global>
4
  * @category PSystem
5
  * @package PSystem_AjaxQuickCart
6
  * @author Pascal System <info@pascalsystem.pl>
7
+ * @version 1.0.1
8
  */
9
  -->
10
  <config>
11
  <modules>
12
  <PSystem_AjaxQuickCart>
13
+ <version>1.0.1</version>
14
  </PSystem_AjaxQuickCart>
15
  </modules>
16
  <global>
app/code/community/PSystem/AjaxQuickCart/etc/system.xml CHANGED
@@ -4,7 +4,7 @@
4
  * @category PSystem
5
  * @package PSystem_AjaxQuickCart
6
  * @author Pascal System <info@pascalsystem.pl>
7
- * @version 1.0.0
8
  */
9
  -->
10
  <config>
4
  * @category PSystem
5
  * @package PSystem_AjaxQuickCart
6
  * @author Pascal System <info@pascalsystem.pl>
7
+ * @version 1.0.1
8
  */
9
  -->
10
  <config>
app/design/frontend/default/default/layout/ps_ajaxquickcart.xml CHANGED
@@ -4,7 +4,7 @@
4
  * @category PSystem
5
  * @package PSystem_AjaxQuickCart
6
  * @author Pascal System <info@pascalsystem.pl>
7
- * @version 1.0.0
8
  */
9
  -->
10
  <layout version="1.0.0">
@@ -25,16 +25,16 @@
25
 
26
  <ajaxquickcart_viewcart_index>
27
  <reference name="root">
28
- <action method="setTemplate"><template>ajaxquickcart/viewcart/empty.phtml</template></action>
29
  </reference>
30
  <reference name="content">
31
  <block type="checkout/cart" name="checkout.cart">
32
  <action method="setCartTemplate"><value>ajaxquickcart/viewcart/cart.phtml</value></action>
33
  <action method="setEmptyTemplate"><value>ajaxquickcart/viewcart/noItems.phtml</value></action>
34
  <action method="chooseTemplate"/>
35
- <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>ajaxquickcart/viewcart/item/default.phtml</template></action>
36
- <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>ajaxquickcart/viewcart/item/default.phtml</template></action>
37
- <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>ajaxquickcart/viewcart/item/default.phtml</template></action>
38
  <block type="checkout/cart_totals" name="checkout.cart.totals" as="totals" template="checkout/cart/totals.phtml"/>
39
 
40
  </block>
4
  * @category PSystem
5
  * @package PSystem_AjaxQuickCart
6
  * @author Pascal System <info@pascalsystem.pl>
7
+ * @version 1.0.1
8
  */
9
  -->
10
  <layout version="1.0.0">
25
 
26
  <ajaxquickcart_viewcart_index>
27
  <reference name="root">
28
+ <action method="setTemplate"><template>page/empty.phtml</template></action>
29
  </reference>
30
  <reference name="content">
31
  <block type="checkout/cart" name="checkout.cart">
32
  <action method="setCartTemplate"><value>ajaxquickcart/viewcart/cart.phtml</value></action>
33
  <action method="setEmptyTemplate"><value>ajaxquickcart/viewcart/noItems.phtml</value></action>
34
  <action method="chooseTemplate"/>
35
+ <action method="addItemRender"><type>simple</type><block>ajaxquickcart/item_renderer</block><template>ajaxquickcart/viewcart/item/default.phtml</template></action>
36
+ <action method="addItemRender"><type>grouped</type><block>ajaxquickcart/item_renderer_grouped</block><template>ajaxquickcart/viewcart/item/default.phtml</template></action>
37
+ <action method="addItemRender"><type>configurable</type><block>ajaxquickcart/item_renderer_configurable</block><template>ajaxquickcart/viewcart/item/default.phtml</template></action>
38
  <block type="checkout/cart_totals" name="checkout.cart.totals" as="totals" template="checkout/cart/totals.phtml"/>
39
 
40
  </block>
app/design/frontend/default/default/template/ajaxquickcart/quickcart/product.phtml CHANGED
@@ -3,7 +3,7 @@
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
- * @version 1.0.0
7
  */
8
  ?>
9
  <?php
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
  */
8
  ?>
9
  <?php
app/design/frontend/default/default/template/ajaxquickcart/viewcart/cart.phtml CHANGED
@@ -3,7 +3,7 @@
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
- * @version 1.0.0
7
  */
8
  ?>
9
  <?php
@@ -33,7 +33,7 @@
33
  <col width="1" />
34
  <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
35
  <col width="1" />
36
- <?php endif; ?>
37
  <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
38
  <col width="1" />
39
  <?php endif; ?>
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
  */
8
  ?>
9
  <?php
33
  <col width="1" />
34
  <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
35
  <col width="1" />
36
+ <?php endif; ?>
37
  <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
38
  <col width="1" />
39
  <?php endif; ?>
app/design/frontend/default/default/template/ajaxquickcart/viewcart/item/default.phtml CHANGED
@@ -1,224 +1,224 @@
1
- <?php
2
  /**
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
- * @version 1.0.0
7
  */
8
- ?>
9
- <?php
10
- $_item = $this->getItem();
11
- $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
12
- ?>
13
- <tr>
14
- <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>
15
- <td>
16
- <h2 class="product-name">
17
- <?php if ($this->hasProductUrl()):?>
18
- <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a>
19
- <?php else: ?>
20
- <?php echo $this->htmlEscape($this->getProductName()) ?>
21
- <?php endif; ?>
22
- </h2>
23
- <?php if ($_options = $this->getOptionList()):?>
24
- <dl class="item-options">
25
- <?php foreach ($_options as $_option) : ?>
26
- <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
27
- <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
28
- <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
29
- <?php if (isset($_formatedOptionValue['full_view'])): ?>
30
- <div class="truncated_full_value">
31
- <dl class="item-options">
32
- <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
33
- <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
34
- </dl>
35
- </div>
36
- <?php endif; ?>
37
- </dd>
38
- <?php endforeach; ?>
39
- </dl>
40
- <?php endif;?>
41
- <?php if ($messages = $this->getMessages()): ?>
42
- <?php foreach ($messages as $message): ?>
43
- <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $message['text'] ?></p>
44
- <?php endforeach; ?>
45
- <?php endif; ?>
46
- <?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
47
- <?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
48
- <?php endif;?>
49
- </td>
50
- <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
51
- <td class="a-right">
52
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
53
- <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
54
- <?php else: ?>
55
- <span class="cart-price">
56
- <?php endif; ?>
57
-
58
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
59
- <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
60
- <?php else: ?>
61
- <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
62
- <?php endif; ?>
63
-
64
- </span>
65
-
66
-
67
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
68
-
69
- <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
70
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
71
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
72
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
73
- <?php endforeach; ?>
74
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
75
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
76
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
77
- <?php endforeach; ?>
78
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
79
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
80
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
81
- <?php endforeach; ?>
82
- <?php endif; ?>
83
- </div>
84
-
85
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
86
- <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
87
- <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
88
- </div>
89
- <?php endif; ?>
90
- <?php endif; ?>
91
- </td>
92
- <?php endif; ?>
93
- <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
94
- <td>
95
- <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
96
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
97
- <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
98
- <?php else: ?>
99
- <span class="cart-price">
100
- <?php endif; ?>
101
-
102
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
103
- <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
104
- <?php else: ?>
105
- <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
106
- <?php endif; ?>
107
-
108
- </span>
109
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
110
-
111
- <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
112
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
113
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
114
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
115
- <?php endforeach; ?>
116
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
117
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
118
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
119
- <?php endforeach; ?>
120
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
121
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
122
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
123
- <?php endforeach; ?>
124
- <?php endif; ?>
125
- </div>
126
-
127
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
128
- <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
129
- <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
130
- </div>
131
- <?php endif; ?>
132
- <?php endif; ?>
133
- </td>
134
- <?php endif; ?>
135
- <td class="a-center">
136
- <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" />
137
- </td>
138
- <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
139
- <td class="a-right">
140
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
141
- <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
142
- <?php else: ?>
143
- <span class="cart-price">
144
- <?php endif; ?>
145
-
146
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
147
- <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
148
- <?php else: ?>
149
- <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
150
- <?php endif; ?>
151
-
152
- </span>
153
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
154
-
155
- <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
156
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, '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['row_amount'],true,true); ?></span>
159
- <?php endforeach; ?>
160
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, '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['row_amount_incl_tax'],true,true); ?></span>
163
- <?php endforeach; ?>
164
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
165
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
166
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
167
- <?php endforeach; ?>
168
- <?php endif; ?>
169
- </div>
170
-
171
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
172
- <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
173
- <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
174
- </div>
175
- <?php endif; ?>
176
- <?php endif; ?>
177
- </td>
178
- <?php endif; ?>
179
- <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
180
- <td>
181
- <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
182
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
183
- <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
184
- <?php else: ?>
185
- <span class="cart-price">
186
- <?php endif; ?>
187
-
188
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
189
- <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
190
- <?php else: ?>
191
- <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
192
- <?php endif; ?>
193
-
194
- </span>
195
-
196
-
197
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
198
-
199
- <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
200
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
201
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
202
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
203
- <?php endforeach; ?>
204
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
205
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
206
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
207
- <?php endforeach; ?>
208
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
209
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
210
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
211
- <?php endforeach; ?>
212
- <?php endif; ?>
213
- </div>
214
-
215
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
216
- <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
217
- <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
218
- </div>
219
- <?php endif; ?>
220
- <?php endif; ?>
221
- </td>
222
- <?php endif; ?>
223
- <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>
224
- </tr>
1
+ <?php
2
  /**
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
  */
8
+ ?>
9
+ <?php
10
+ $_item = $this->getItem();
11
+ $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
12
+ ?>
13
+ <tr>
14
+ <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>
15
+ <td>
16
+ <h2 class="product-name">
17
+ <?php if ($this->hasProductUrl()):?>
18
+ <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->htmlEscape($this->getProductName()) ?></a>
19
+ <?php else: ?>
20
+ <?php echo $this->htmlEscape($this->getProductName()) ?>
21
+ <?php endif; ?>
22
+ </h2>
23
+ <?php if ($_options = $this->getOptionList()):?>
24
+ <dl class="item-options">
25
+ <?php foreach ($_options as $_option) : ?>
26
+ <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
27
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
28
+ <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
29
+ <?php if (isset($_formatedOptionValue['full_view'])): ?>
30
+ <div class="truncated_full_value">
31
+ <dl class="item-options">
32
+ <dt><?php echo $this->htmlEscape($_option['label']) ?></dt>
33
+ <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
34
+ </dl>
35
+ </div>
36
+ <?php endif; ?>
37
+ </dd>
38
+ <?php endforeach; ?>
39
+ </dl>
40
+ <?php endif;?>
41
+ <?php if ($messages = $this->getMessages()): ?>
42
+ <?php foreach ($messages as $message): ?>
43
+ <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $message['text'] ?></p>
44
+ <?php endforeach; ?>
45
+ <?php endif; ?>
46
+ <?php if ($addtInfoBlock = $this->getProductAdditionalInformationBlock()):?>
47
+ <?php echo $addtInfoBlock->setItem($_item)->toHtml() ?>
48
+ <?php endif;?>
49
+ </td>
50
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
51
+ <td class="a-right">
52
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
53
+ <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
54
+ <?php else: ?>
55
+ <span class="cart-price">
56
+ <?php endif; ?>
57
+
58
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
59
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
60
+ <?php else: ?>
61
+ <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
62
+ <?php endif; ?>
63
+
64
+ </span>
65
+
66
+
67
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
68
+
69
+ <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
70
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
71
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
72
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
73
+ <?php endforeach; ?>
74
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
75
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
76
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
77
+ <?php endforeach; ?>
78
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
79
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
80
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
81
+ <?php endforeach; ?>
82
+ <?php endif; ?>
83
+ </div>
84
+
85
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
86
+ <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
87
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
88
+ </div>
89
+ <?php endif; ?>
90
+ <?php endif; ?>
91
+ </td>
92
+ <?php endif; ?>
93
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
94
+ <td>
95
+ <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
96
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
97
+ <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
98
+ <?php else: ?>
99
+ <span class="cart-price">
100
+ <?php endif; ?>
101
+
102
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
103
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?>
104
+ <?php else: ?>
105
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
106
+ <?php endif; ?>
107
+
108
+ </span>
109
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
110
+
111
+ <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
112
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
113
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
114
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
115
+ <?php endforeach; ?>
116
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
117
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
118
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
119
+ <?php endforeach; ?>
120
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
121
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
122
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
123
+ <?php endforeach; ?>
124
+ <?php endif; ?>
125
+ </div>
126
+
127
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
128
+ <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
129
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedAmount()); ?></span>
130
+ </div>
131
+ <?php endif; ?>
132
+ <?php endif; ?>
133
+ </td>
134
+ <?php endif; ?>
135
+ <td class="a-center">
136
+ <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" />
137
+ </td>
138
+ <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
139
+ <td class="a-right">
140
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
141
+ <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
142
+ <?php else: ?>
143
+ <span class="cart-price">
144
+ <?php endif; ?>
145
+
146
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
147
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
148
+ <?php else: ?>
149
+ <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
150
+ <?php endif; ?>
151
+
152
+ </span>
153
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
154
+
155
+ <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
156
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, '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['row_amount'],true,true); ?></span>
159
+ <?php endforeach; ?>
160
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, '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['row_amount_incl_tax'],true,true); ?></span>
163
+ <?php endforeach; ?>
164
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
165
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
166
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
167
+ <?php endforeach; ?>
168
+ <?php endif; ?>
169
+ </div>
170
+
171
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
172
+ <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
173
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
174
+ </div>
175
+ <?php endif; ?>
176
+ <?php endif; ?>
177
+ </td>
178
+ <?php endif; ?>
179
+ <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
180
+ <td>
181
+ <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
182
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
183
+ <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
184
+ <?php else: ?>
185
+ <span class="cart-price">
186
+ <?php endif; ?>
187
+
188
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
189
+ <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?>
190
+ <?php else: ?>
191
+ <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
192
+ <?php endif; ?>
193
+
194
+ </span>
195
+
196
+
197
+ <?php if (Mage::helper('weee')->getApplied($_item)): ?>
198
+
199
+ <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
200
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
201
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
202
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
203
+ <?php endforeach; ?>
204
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
205
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
206
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
207
+ <?php endforeach; ?>
208
+ <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
209
+ <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
210
+ <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
211
+ <?php endforeach; ?>
212
+ <?php endif; ?>
213
+ </div>
214
+
215
+ <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
216
+ <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
217
+ <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl+$_item->getWeeeTaxAppliedRowAmount()); ?></span>
218
+ </div>
219
+ <?php endif; ?>
220
+ <?php endif; ?>
221
+ </td>
222
+ <?php endif; ?>
223
+ <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>
224
+ </tr>
app/design/frontend/default/default/template/ajaxquickcart/viewcart/noItems.phtml CHANGED
@@ -1,18 +1,18 @@
1
- <?php
2
  /**
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
- * @version 1.0.0
7
  */
8
  ?>
9
  <div class="ajaxemptycart">
10
- <div class="page-title">
11
- <h1><?php echo $this->__('Shopping Cart is Empty') ?></h1>
12
- </div>
13
- <div class="cart-empty">
14
- <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
15
- <p><?php echo $this->__('You have no items in your shopping cart.') ?></p>
16
- <p><?php echo $this->__('Click <a href="%s">here</a> to continue shopping.', $this->getContinueShoppingUrl()) ?></p>
17
- </div>
18
  </div>
1
+ <?php
2
  /**
3
  * @category PSystem
4
  * @package PSystem_AjaxQuickCart
5
  * @author Pascal System <info@pascalsystem.pl>
6
+ * @version 1.0.1
7
  */
8
  ?>
9
  <div class="ajaxemptycart">
10
+ <div class="page-title">
11
+ <h1><?php echo $this->__('Shopping Cart is Empty') ?></h1>
12
+ </div>
13
+ <div class="cart-empty">
14
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
15
+ <p><?php echo $this->__('You have no items in your shopping cart.') ?></p>
16
+ <p><?php echo $this->__('Click <a href="%s">here</a> to continue shopping.', $this->getContinueShoppingUrl()) ?></p>
17
+ </div>
18
  </div>
app/etc/modules/PSystem_AjaxQuickCart.xml CHANGED
@@ -4,7 +4,7 @@
4
  * @category PSystem
5
  * @package PSystem_AjaxQuickCart
6
  * @author Pascal System <info@pascalsystem.pl>
7
- * @version 1.0.0
8
  */
9
  -->
10
  <config>
4
  * @category PSystem
5
  * @package PSystem_AjaxQuickCart
6
  * @author Pascal System <info@pascalsystem.pl>
7
+ * @version 1.0.1
8
  */
9
  -->
10
  <config>
package.xml CHANGED
@@ -1,22 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>PSystem_AjaxQuickCart</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Floating shopping cart, and quick add products to the basket, use layer and AJAX technology</summary>
10
- <description>This module allow to add products in a quick way to the basket. After customer click button "add to cart", product move to the basket, and client see your shopping bag on layer. The module also works with configurable products and the grouped.
11
  After try add configurable or grouped product, client see layer with additional options and customer can choose options and add this product.
12
 
13
  You can set in Admin Panel configuration for your specif css and selector for javascript.
14
  Additional you can also modify layout xml file if you want see on layer another blocks.</description>
15
  <notes>This module was tested in Magento Commerce version 1.4.0.1 and 1.5.0.1, and work in this version smoothly. Also test in Firefox 3.6, Chrome, Opera and IE 7,8,9.</notes>
16
  <authors><author><name>Pascal System</name><user>auto-converted</user><email>info@pascalsystem.pl</email></author></authors>
17
- <date>2011-06-15</date>
18
- <time>19:05:54</time>
19
- <contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="pascalsystem"><file name="ajaxquickcart.css" hash="ec1549d4513f819481f8b1a4310751e2"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="ps_ajaxquickcart.xml" hash="4165471069879c49224639324af19826"/></dir><dir name="template"><dir name="ajaxquickcart"><dir name="quickcart"><file name="product.phtml" hash="2419f6dfc367d434c4e26ece77a6c9cf"/></dir><dir name="viewcart"><file name="cart.phtml" hash="1c0a562e9454ef8bbad80a20ff5d3df6"/><file name="noItems.phtml" hash="85f1cab8052a938af3835896f8a77ad1"/><dir name="item"><file name="default.phtml" hash="67c8157acd6ee3975d2d7fe6025c8a91"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="pascalsystem"><file name="ajaxquickcart.js" hash="549942bb46755eea4bde8f4370fd5324"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PSystem_AjaxQuickCart.xml" hash="d92cca5a0f9609283ad4be1c7cd75194"/></dir></target><target name="magecommunity"><dir name="PSystem"><dir name="AjaxQuickCart"><dir name="Block"><file name="Headerjs.php" hash="87e46591c8713c5946e54788ad92e00e"/><file name="Layerjs.php" hash="f0123ebac27fc5c0ec4c7dc58d9123ac"/><file name="Refresh.php" hash="1d1f50a7b719770e03b082187df3b24f"/><dir name="Refresh"><file name="Response.php" hash="89d5ac7dadc5c38a996b82f64502ccb5"/></dir></dir><dir name="controllers"><file name="ViewcartController.php" hash="0cce1063e354a66b22b06b4ee1b02e1d"/></dir><dir name="etc"><file name="adminhtml.xml" hash="13a00983a4523dcb797e0361a2421032"/><file name="config.xml" hash="3acf3457d098a1075133002a0222f146"/><file name="system.xml" hash="fd387caac54dd50439a6200f4f62cdf9"/></dir><dir name="Model"><file name="Observer.php" hash="f81e83b84583e2bb27fca8ac128d3d29"/></dir></dir></dir></target></contents>
20
  <compatible/>
21
- <dependencies><required><package><name>PSystem_Base</name><channel>community</channel><min>1.1.1</min><max></max></package></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>PSystem_AjaxQuickCart</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Floating shopping cart, and quick add products to the basket, use layer and AJAX technology</summary>
10
+ <description>This module allow to add products in a quick way to the basket. After customer click button &amp;quot;add to cart&amp;quot;, product move to the basket, and client see your shopping bag on layer. The module also works with configurable products and the grouped.
11
  After try add configurable or grouped product, client see layer with additional options and customer can choose options and add this product.
12
 
13
  You can set in Admin Panel configuration for your specif css and selector for javascript.
14
  Additional you can also modify layout xml file if you want see on layer another blocks.</description>
15
  <notes>This module was tested in Magento Commerce version 1.4.0.1 and 1.5.0.1, and work in this version smoothly. Also test in Firefox 3.6, Chrome, Opera and IE 7,8,9.</notes>
16
  <authors><author><name>Pascal System</name><user>auto-converted</user><email>info@pascalsystem.pl</email></author></authors>
17
+ <date>2011-07-22</date>
18
+ <time>20:18:53</time>
19
+ <contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="pascalsystem"><file name="ajaxquickcart.css" hash="ec1549d4513f819481f8b1a4310751e2"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="ps_ajaxquickcart.xml" hash="ba23860ec733caaa60297db954ef807a"/></dir><dir name="template"><dir name="ajaxquickcart"><dir name="quickcart"><file name="product.phtml" hash="9550c7b3c10b3e34843f87a409cbf77f"/></dir><dir name="viewcart"><file name="cart.phtml" hash="1be39539c0e2d1199278e70d161640d3"/><file name="noItems.phtml" hash="77b12db0be1ca05f1c46b04497bc65d9"/><dir name="item"><file name="default.phtml" hash="cde1f7930878a4bafa42130a56c236e7"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="pascalsystem"><file name="ajaxquickcart.js" hash="549942bb46755eea4bde8f4370fd5324"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PSystem_AjaxQuickCart.xml" hash="dc36cfb9218ed287351a731570e16388"/></dir></target><target name="magecommunity"><dir name="PSystem"><dir name="AjaxQuickCart"><dir name="Block"><file name="Headerjs.php" hash="54ef05986f542810bd361cec022b7912"/><file name="Layerjs.php" hash="544493629e1ca1ed698a5a40e83f195e"/><file name="Refresh.php" hash="d0887d3fb93e7522ff1a275cc49f183f"/><dir name="Item"><file name="Renderer.php" hash="6b0abf5b4f3e8270db8e3b0e81ebbff7"/><dir name="Renderer"><file name="Configurable.php" hash="a8dfc99029cfecdbd34fa4cdd30a960d"/><file name="Grouped.php" hash="baa0ae8e37d1f8ce47acbbf187656a18"/></dir></dir><dir name="Refresh"><file name="Response.php" hash="7c649cb27e2eb9c29aacd04ec44274d2"/></dir></dir><dir name="controllers"><file name="ViewcartController.php" hash="dd84464fe64532152358907bc6d47f6e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="cec28f7b158ebc04123bad811822dc9a"/><file name="config.xml" hash="a18d6646ed66fe910409f9fde7bf94a9"/><file name="system.xml" hash="565ddf177e43d27e700de11549f3fd28"/></dir><dir name="Model"><file name="Observer.php" hash="a2a1ce9ee0fc14786baae64a204119bc"/></dir></dir></dir></target></contents>
20
  <compatible/>
21
+ <dependencies><required><package><name>PSystem_Base</name><channel>community</channel><min>1.1.0</min><max></max></package></required></dependencies>
22
  </package>