Iglobal_Main - Version 1.0.3

Version Notes

Added a cool new feature to make integration easier. You'll totally love it.

Download this release

Release Info

Developer Matt Flamm
Extension Iglobal_Main
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/community/Iglobal/Stores/Block/Cart.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Iglobal_Stores_Block_Cart extends Mage_Core_Block_Template
3
+ {
4
+
5
+ protected function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->setTemplate('iglobal/stores/cart.phtml');
9
+ }
10
+
11
+ public function igAttrBlock()
12
+ {
13
+ $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();
14
+ Zend_Debug::dump($items);
15
+ echo '<div class="igItemAttr" style="display: none;">';
16
+ foreach($items as $item) {
17
+
18
+ $image = Mage::helper('catalog/image')->init($item->getProduct(), 'thumbnail');
19
+ $my_product = Mage::getModel('catalog/product')->load($item->getProductId());
20
+ $my_product_url = $my_product->getProductUrl();
21
+
22
+ echo '<div class="igItemDetails">':
23
+ echo '<p class="igID">'.$item->getProductId().'</p><br />';
24
+ echo '<p class="igName">'.$item->getName().'</p><br />';
25
+ echo '<p class="igSku">'.$item->getSku().'</p><br />';
26
+ echo '<p class="igQty">'.$item->getQty().'</p><br />';
27
+ echo '<p class="igPrice">'.$item->getPrice().'</p><br />';
28
+
29
+ echo '<p class="igUrl">'.$my_product_url.'</p><br />';
30
+ echo '<p class="igImage">I'. $image.'</p><br />';
31
+ echo '<p class="igDescription">'. $item->getdescription.'</p><br />';
32
+ echo '<p class="igWeight">'.$item->getWeight().'</p><br />';
33
+ echo '<p class="igLength">'. $item->getLength.'</p><br />';
34
+ echo '<p class="igHeight">'. $item->getHeight.'</p><br />';
35
+ echo '</div><!-- end igItemDetails-->';
36
+
37
+ echo "<br />";
38
+ }
39
+ echo '</div><!--end igItemAttr-->';
40
+
41
+ //return $items;
42
+ }
43
+
44
+
45
+ }
app/code/community/Iglobal/Stores/controllers/SuccessController.php CHANGED
@@ -55,6 +55,35 @@ class Iglobal_Stores_SuccessController extends Mage_Core_Controller_Front_Action
55
  'telephone' => $data['phone'],
56
  'country_id' => $data['countryCode'],
57
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
  /*
60
  // code to pull available shipping methods pulls all available shipping methods and makes an array. used if you want to use merchants avaialable methods instead of iglobal custom method.
@@ -74,60 +103,9 @@ class Iglobal_Stores_SuccessController extends Mage_Core_Controller_Front_Action
74
  //matches XML shipping level with Magento carrier code
75
 
76
  // shipping methods designed to use in store shipping methods already in place. changing this for our current version
 
77
  //matches XML shipping level with Magento carrier code
78
- $shippingCarrierMethod = $data['shippingCarrierServiceLevel'];
79
- switch ($shippingCarrierMethod) {
80
- case 'DHL_EXPRESS' :
81
- $shipper = 'dhlint_D';
82
- break;
83
- case 'DHL_GLOBAL_MAIL' :
84
- $shipper = 'dhlint_R';
85
- break;
86
- case 'FEDEX_ECONOMY' :
87
- $shipper = 'fedex_INTERNATIONAL_ECONOMY';
88
- break;
89
- case 'FEDEX_GROUND' :
90
- $shipper = 'fedex_INTERNATIONAL_GROUND';
91
- break;
92
- case 'FEDEX_PRIORITY' :
93
- $shipper = 'fedex_INTERNATIONAL_PRIORITY';
94
- break;
95
- case 'UPS_EXPEDITED' :
96
- $shipper = 'ups_XPD';
97
- break;
98
- case 'UPS_EXPRESS' :
99
- $shipper = 'ups_XPR';
100
- break;
101
- case 'UPS_EXPRESS_SAVER':
102
- $shipper = 'ups_WXS';
103
- break;
104
- case 'UPS_GROUND':
105
- $shipper = 'ups_GND';
106
- break;
107
- case 'UPS_STANDARD' :
108
- $shipper = 'ups_STD';
109
- break;
110
- case 'USPS_FIRST_CLASS_MAIL_INTERNATIONAL' :
111
- $shipper = 'usps_INT_15';
112
- break;
113
- case 'USPS_PRIORITY_MAIL_EXPRESS_INTERNATIONAL' :
114
- $shipper = 'usps_INT_1';
115
- break;
116
- case 'USPS_PRIORITY_MAIL_INTERNATIONAL' :
117
- $shipper = 'usps_INT_2';
118
- break;
119
- case 'LANDMARK_LGINTREGU':
120
- case 'LANDMARK_LGINTSTD':
121
- case 'LANDMARK_LGINTSTDU':
122
- case 'MSI_PARCEL':
123
- case 'MSI_PRIORITY':
124
- $shipper = 'excellence_excellence';
125
- $shippingCarrierTitle = 'iGlobal';
126
- $shippingMethodTitle = 'Landmark';
127
- break;
128
- default:
129
- $shipper = 'excellence_excellence';
130
- }
131
  used if you are trying to validate shipping method against merchent avaialable methods to use their built in modules
132
  $shippingRate = $data['shippingTotal'];
133
  if (!$shippingCarrierTitle || !$shippingMethodTItle){
@@ -231,7 +209,7 @@ class Iglobal_Stores_SuccessController extends Mage_Core_Controller_Front_Action
231
  Mage::register('shipping_methodtitle', $shippingMethodTitle);
232
 
233
  //set shipping info
234
- $billingAddress = $quote->getBillingAddress()->addData($addressData);
235
  $shippingAddress = $quote->getShippingAddress()->addData($addressData);
236
  $shippingAddress->setCollectShippingRates(true)->collectShippingRates()
237
  ->setShippingMethod('excellence_excellence')
55
  'telephone' => $data['phone'],
56
  'country_id' => $data['countryCode'],
57
  );
58
+
59
+ $_nameBilling = explode(' ', $data['billingName'], 2);
60
+ if ($data['testOrder'] = true) {
61
+ $name_first_billing = "TEST ORDER! DO NOT SHIP! - " . array_shift($_nameBilling);
62
+ $name_last_billing = array_pop($_nameBilling);
63
+ } else {
64
+ $name_first_billing = array_shift($_nameBilling);
65
+ $name_last_billing = array_pop($_nameBilling);
66
+ }
67
+
68
+
69
+ $streetBilling = $data['billingAddress2'] ? implode(' ', array($data['billingAddress1'], $data['billingAddress2'])) : $data['billingAddress1'];
70
+
71
+ // to fix error with countries w/o zip codes
72
+ if (is_array($data['billingZip'])){
73
+ $igcZipCodeBilling = ' ';
74
+ }else {
75
+ $igcZipCodeBilling = $data['billingZip'];
76
+ }
77
+
78
+ $billingAddressData = array(
79
+ 'firstname' => $name_first_billing,
80
+ 'lastname' => $name_last_billing,
81
+ 'street' => $streetBilling,
82
+ 'city' => $data['billingCity'],
83
+ 'postcode' => $igcZipCodeBilling,
84
+ 'telephone' => $data['billingPhone'],
85
+ 'country_id' => $data['billingCountryCode'],
86
+ );
87
 
88
  /*
89
  // code to pull available shipping methods pulls all available shipping methods and makes an array. used if you want to use merchants avaialable methods instead of iglobal custom method.
103
  //matches XML shipping level with Magento carrier code
104
 
105
  // shipping methods designed to use in store shipping methods already in place. changing this for our current version
106
+ set the shipping method name here, like in the code below
107
  //matches XML shipping level with Magento carrier code
108
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  used if you are trying to validate shipping method against merchent avaialable methods to use their built in modules
110
  $shippingRate = $data['shippingTotal'];
111
  if (!$shippingCarrierTitle || !$shippingMethodTItle){
209
  Mage::register('shipping_methodtitle', $shippingMethodTitle);
210
 
211
  //set shipping info
212
+ $billingAddress = $quote->getBillingAddress()->addData($billingAddressData); // i think this is wehre to add the billing address info. try creating a seperate address data aray and mapping billing address info to it.
213
  $shippingAddress = $quote->getShippingAddress()->addData($addressData);
214
  $shippingAddress->setCollectShippingRates(true)->collectShippingRates()
215
  ->setShippingMethod('excellence_excellence')
app/code/community/Iglobal/Stores/controllers/TestController.php CHANGED
@@ -1,3 +1,5 @@
 
 
1
  <?php
2
 
3
  class Iglobal_Stores_TestController extends Mage_Core_Controller_Front_Action
@@ -6,34 +8,84 @@ class Iglobal_Stores_TestController extends Mage_Core_Controller_Front_Action
6
  {
7
 
8
  echo "in the controller <br/>";
9
- echo Mage::getStoreConfig('iglobal_integration/igmat/flag_code');
10
 
11
- /* $_order = $this->getRequest()->getParam('orderId', null);
 
12
 
13
 
14
-
15
- $rest = Mage::getModel('stores/rest_order');
16
- $data = $rest->getOrder($_order);
17
-
18
- //Mage::log($data['testOrder'], null, 'iglobal.log');
19
-
20
-
21
- $var = $data['dutyTaxesTotal'];
22
 
23
- echo 'ddp: ' . $var . '<br />';
24
-
25
- $email = $data['email'];
26
- $country = $data['countryCode'];
27
- $test = $data['testOrder'];
28
-
29
- echo "email: " . $email . "<br />";
30
- echo "country: " . $country . "<br />";
31
- echo "test order: " . $test . "<br />";
32
-
33
- if ($data['testOrder'] = true) {
34
- echo "stuff <br />";
35
- }
36
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  }
 
1
+
2
+
3
  <?php
4
 
5
  class Iglobal_Stores_TestController extends Mage_Core_Controller_Front_Action
8
  {
9
 
10
  echo "in the controller <br/>";
11
+
12
 
13
+ $cart = Mage::getModel('checkout/cart')->getQuote()->getAllItems();
14
+ Zend_Debug::dump($cart);
15
 
16
 
 
 
 
 
 
 
 
 
17
 
18
+ /*
19
+ // Load the session
20
+ $session = Mage::getModel('checkout/cart');
21
+ // Array to hold the final result
22
+ $finalResult = array();
23
+ // Loop through all items in the cart
24
+ foreach ($session->getQuote()->getAllItems() as $item)
25
+ {
26
+ // Array to hold the item's options
27
+ $result = array();
28
+ // Load the configured product options
29
+ $options = $item->getProduct()->getTypeInstance(true)->getOrderOptions($item->getProduct());
30
+ echo 'Options: <br />';
31
+ Zend_Debug::dump($options);
32
+ // Check for options
33
+ if ($options)
34
+ {
35
+ if (isset($options['options']))
36
+ {
37
+ $result = array_merge($result, $options['options']);
38
+ }
39
+ echo 'result: <br />';
40
+ Zend_Debug::dump($result);
41
+
42
+ $igOptionList = '<dl class="item-options">';
43
+ foreach ($result as $optionDetails) {
44
+ //$_formatedOptionValue = $this->getFormatedOptionValue($optionDetails);
45
+ $label = '<dt>' . $optionDetails['label'] . '</dt>';
46
+ $value = '<dd>' . $optionDetails['value'] .'</dd>';
47
+ $igOptionList = $igOptionList . $label . $value;
48
+ }
49
+ $igOptionList = $igOptionList . '</dl>';
50
+
51
+ echo 'my list: <br />';
52
+ Zend_Debug::dump($igOptionList);
53
+
54
+ echo 'my result: '.$result['label'] .':'.$result['value'];
55
+
56
+ /* if (isset($options['additionaloptionDetailss']))
57
+ {
58
+ $result = array_merge($result, $options['additionaloptionDetailss']);
59
+ }
60
+ if (!empty($options['attributes_info']))
61
+ {
62
+ $result = array_merge($options['attributes_info'], $result);
63
  }
64
+ }
65
+ $finalResult = array_merge($finalResult, $result);
66
+ }
67
+ // Now you have the final array of all configured options
68
+ echo 'final result: <br />';
69
+ Zend_Debug::dump($finalResult);
70
+
71
+
72
+
73
+ echo '<div class="igTestDiv">';
74
+ if ($optionDetailss = Mage::getModel('catalog/product')->load($item->getProductId())->getOptionList()) {
75
+ $igOptionList = '<dl class="item-options">';
76
+ foreach ($optionDetailss as $optionDetails) {
77
+ $_formatedOptionValue = $this->getFormatedOptionValue($optionDetails);
78
+ $label = '<dt>' . $this->escapeHtml($optionDetails['label']) . '</dt>';
79
+ $value = '<dd>' . $_formatedOptionValue['full_view'] .'</dd>';
80
+ $igOptionList = $igOptionList . $lable . $value;
81
+ }
82
+ $igOptionList = $igOptionList . '</dl>';
83
+ }
84
+ echo $igOptionList;
85
+ echo '</div>';*/
86
+
87
+ }
88
+
89
 
90
  }
91
+
app/code/community/Iglobal/Stores/etc/config.xml CHANGED
@@ -4,7 +4,7 @@
4
  <config>
5
  <modules>
6
  <Iglobal_Stores>
7
- <version>1.0.2</version>
8
  <currencies>
9
  <AED></AED>
10
  <ARS>&amp;#8371;</ARS>
4
  <config>
5
  <modules>
6
  <Iglobal_Stores>
7
+ <version>1.0.3</version>
8
  <currencies>
9
  <AED></AED>
10
  <ARS>&amp;#8371;</ARS>
app/design/frontend/base/default/layout/iglobal.xml CHANGED
@@ -4,18 +4,33 @@
4
  <!-- add template that allows us to include our js files through admin config settings-->
5
  <default>
6
  <reference name="head">
7
- <block type="core/template" name="iglobal" template="iglobal/stores/igcincludes.phtml" />
8
  </reference>
9
  </default>
10
 
11
  <!-- change renderer to add ig_ item details added by our extension-->
12
- <checkout_cart_index translate="label">
13
  <reference name="checkout.cart">
14
  <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>iglobal/checkout/cart/item/default.phtml</template></action>
15
  <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer</block><template>iglobal/checkout/cart/item/default.phtml</template></action>
16
  <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer</block><template>iglobal/checkout/cart/item/default.phtml</template></action>
17
  </reference>
18
  </checkout_cart_index>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  <!-- set template for success page-->
21
  <iglobal_success_index translate="label">
4
  <!-- add template that allows us to include our js files through admin config settings-->
5
  <default>
6
  <reference name="head">
7
+ <block type="core/template" name="iglobal.includes" template="iglobal/stores/igcincludes.phtml" />
8
  </reference>
9
  </default>
10
 
11
  <!-- change renderer to add ig_ item details added by our extension-->
12
+ <!--<checkout_cart_index translate="label">
13
  <reference name="checkout.cart">
14
  <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>iglobal/checkout/cart/item/default.phtml</template></action>
15
  <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer</block><template>iglobal/checkout/cart/item/default.phtml</template></action>
16
  <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer</block><template>iglobal/checkout/cart/item/default.phtml</template></action>
17
  </reference>
18
  </checkout_cart_index>
19
+
20
+ <zxyxz_store_index_cart>
21
+ <reference name="root">
22
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
23
+ </reference>
24
+ <reference name="content">
25
+ <block type="iglobal_stores/cart" name="zxyxz_store.cart" template="iglobal/cart.phtml"/>
26
+ </reference>
27
+ </zxyxz_store_index_cart>-->
28
+
29
+ <checkout_cart_index>
30
+ <reference name="content"> <!--can also reference content if there are problems with the theme -->
31
+ <block type="core/template" name="iglobal.cart" as="iglobal.cart" template="iglobal/stores/cart.phtml"/>
32
+ </reference>
33
+ </checkout_cart_index>
34
 
35
  <!-- set template for success page-->
36
  <iglobal_success_index translate="label">
app/design/frontend/base/default/template/iglobal/checkout/cart/item/configure/updatecart.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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) 2013 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
+ <?php $buttonTitle = $this->__('Update Cart'); ?>
30
+ <?php if ($_product->isSaleable()): ?>
31
+ <div class="add-to-cart">
32
+ <?php if (!$_product->isGrouped()): ?>
33
+ <label for="qty"><?php echo $this->__('Qty:') ?></label>
34
+ <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
35
+ <?php endif; ?>
36
+ <button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
37
+ <?php echo $this->getChildHtml('', true, true) ?>
38
+ </div>
39
+ <?php endif; ?>
app/design/frontend/base/default/template/iglobal/checkout/cart/item/default-old.phtml DELETED
@@ -1,284 +0,0 @@
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) 2013 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
- $_item = $this->getItem();
29
- $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
30
- $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
31
- ?>
32
- <tr>
33
- <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>
34
- <td>
35
-
36
- <!-- Added for iGlobal -->
37
- <?php Mage::helper('stores')->showHiddenProductFields($_item) ?>
38
- <!-- end iGlobal additions -->
39
-
40
- <h2 class="product-name">
41
- <?php if ($this->hasProductUrl()):?>
42
- <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->escapeHtml($this->getProductName()) ?></a>
43
- <?php else: ?>
44
- <?php echo $this->escapeHtml($this->getProductName()) ?>
45
- <?php endif; ?>
46
- </h2>
47
- <?php if ($_options = $this->getOptionList()):?>
48
- <dl class="item-options">
49
- <?php foreach ($_options as $_option) : ?>
50
- <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
51
- <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
52
- <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
53
- <?php if (isset($_formatedOptionValue['full_view'])): ?>
54
- <div class="truncated_full_value">
55
- <dl class="item-options">
56
- <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
57
- <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
58
- </dl>
59
- </div>
60
- <?php endif; ?>
61
- </dd>
62
- <?php endforeach; ?>
63
- </dl>
64
- <?php endif;?>
65
- <?php if ($messages = $this->getMessages()): ?>
66
- <?php foreach ($messages as $message): ?>
67
- <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $this->escapeHtml($message['text']) ?></p>
68
- <?php endforeach; ?>
69
- <?php endif; ?>
70
- <?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
71
- <?php if ($addInfoBlock): ?>
72
- <?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
73
- <?php endif;?>
74
- </td>
75
- <td class="a-center">
76
- <?php if ($isVisibleProduct): ?>
77
- <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
78
- <?php endif ?>
79
- </td>
80
- <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
81
- <td class="a-center">
82
- <?php if ($isVisibleProduct): ?>
83
- <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move'); ?></a>
84
- <?php endif ?>
85
- </td>
86
- <?php endif ?>
87
-
88
- <?php if ($canApplyMsrp): ?>
89
- <td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
90
- <span class="cart-price">
91
- <span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
92
- <?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
93
- <a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
94
- <script type="text/javascript">
95
- Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
96
- </script>
97
- </span>
98
- </td>
99
- <?php else: ?>
100
-
101
- <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
102
- <td class="a-right">
103
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
104
- <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
105
- <?php else: ?>
106
- <span class="cart-price">
107
- <?php endif; ?>
108
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
109
- <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
110
- <?php else: ?>
111
- <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
112
- <?php endif; ?>
113
-
114
- </span>
115
-
116
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
117
-
118
- <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
119
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
120
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
121
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
122
- <?php endforeach; ?>
123
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
124
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
125
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
126
- <?php endforeach; ?>
127
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
128
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
129
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
130
- <?php endforeach; ?>
131
- <?php endif; ?>
132
- </div>
133
-
134
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
135
- <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
136
- <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
137
- </div>
138
- <?php endif; ?>
139
- <?php endif; ?>
140
- </td>
141
- <?php endif; ?><!-- inclusive price starts here -->
142
- <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
143
- <td>
144
- <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
145
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
146
- <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
147
- <?php else: ?>
148
- <span class="cart-price">
149
- <?php endif; ?>
150
-
151
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
152
- <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
153
- <?php else: ?>
154
- <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
155
- <?php endif; ?>
156
-
157
- </span>
158
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
159
-
160
- <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
161
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
162
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
163
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
164
- <?php endforeach; ?>
165
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
166
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
167
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
168
- <?php endforeach; ?>
169
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
170
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
171
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
172
- <?php endforeach; ?>
173
- <?php endif; ?>
174
- </div>
175
-
176
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
177
- <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
178
- <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
179
- </div>
180
- <?php endif; ?>
181
- <?php endif; ?>
182
- </td>
183
- <?php endif; ?>
184
- <?php endif; ?>
185
- <td class="a-center">
186
- <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" />
187
- </td>
188
-
189
- <!--Sub total starts here -->
190
- <?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
191
- <td class="a-right">
192
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
193
- <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
194
- <?php else: ?>
195
- <span class="cart-price">
196
- <?php endif; ?>
197
-
198
- <?php if ($canApplyMsrp): ?>
199
- <span class="cart-msrp-subtotal">--</span>
200
- <?php else: ?>
201
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
202
- <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
203
- <?php else: ?>
204
- <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
205
- <?php endif; ?>
206
- <?php endif; ?>
207
-
208
- </span>
209
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
210
-
211
- <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
212
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
213
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
214
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
215
- <?php endforeach; ?>
216
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
217
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
218
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
219
- <?php endforeach; ?>
220
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
221
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
222
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
223
- <?php endforeach; ?>
224
- <?php endif; ?>
225
- </div>
226
-
227
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
228
- <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
229
- <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
230
- </div>
231
- <?php endif; ?>
232
- <?php endif; ?>
233
- </td>
234
- <?php endif; ?>
235
- <?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
236
- <td>
237
- <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
238
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
239
- <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
240
- <?php else: ?>
241
- <span class="cart-price">
242
- <?php endif; ?>
243
-
244
- <?php if ($canApplyMsrp): ?>
245
- <span class="cart-msrp-subtotal">--</span>
246
- <?php else: ?>
247
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
248
- <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
249
- <?php else: ?>
250
- <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
251
- <?php endif; ?>
252
- <?php endif; ?>
253
-
254
- </span>
255
-
256
-
257
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
258
-
259
- <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
260
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
261
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
262
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
263
- <?php endforeach; ?>
264
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
265
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
266
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
267
- <?php endforeach; ?>
268
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
269
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
270
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
271
- <?php endforeach; ?>
272
- <?php endif; ?>
273
- </div>
274
-
275
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
276
- <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
277
- <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
278
- </div>
279
- <?php endif; ?>
280
- <?php endif; ?>
281
- </td>
282
- <?php endif; ?>
283
- <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>
284
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/iglobal/checkout/cart/item/default.phtml DELETED
@@ -1,283 +0,0 @@
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) 2013 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
- $_item = $this->getItem();
29
- $isVisibleProduct = $_item->getProduct()->isVisibleInSiteVisibility();
30
- $canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
31
- ?>
32
- <tr>
33
- <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>
34
- <td>
35
-
36
- <!-- Added for iGlobal -->
37
- <?php Mage::helper('stores')->showHiddenProductFields($_item) ?>
38
-
39
- <h2 class="product-name">
40
- <?php if ($this->hasProductUrl()):?>
41
- <a href="<?php echo $this->getProductUrl() ?>"><?php echo $this->escapeHtml($this->getProductName()) ?></a>
42
- <?php else: ?>
43
- <?php echo $this->escapeHtml($this->getProductName()) ?>
44
- <?php endif; ?>
45
- </h2>
46
- <?php if ($_options = $this->getOptionList()):?>
47
- <dl class="item-options">
48
- <?php foreach ($_options as $_option) : ?>
49
- <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?>
50
- <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
51
- <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?>
52
- <?php if (isset($_formatedOptionValue['full_view'])): ?>
53
- <div class="truncated_full_value">
54
- <dl class="item-options">
55
- <dt><?php echo $this->escapeHtml($_option['label']) ?></dt>
56
- <dd><?php echo $_formatedOptionValue['full_view'] ?></dd>
57
- </dl>
58
- </div>
59
- <?php endif; ?>
60
- </dd>
61
- <?php endforeach; ?>
62
- </dl>
63
- <?php endif;?>
64
- <?php if ($messages = $this->getMessages()): ?>
65
- <?php foreach ($messages as $message): ?>
66
- <p class="item-msg <?php echo $message['type'] ?>">* <?php echo $this->escapeHtml($message['text']) ?></p>
67
- <?php endforeach; ?>
68
- <?php endif; ?>
69
- <?php $addInfoBlock = $this->getProductAdditionalInformationBlock(); ?>
70
- <?php if ($addInfoBlock): ?>
71
- <?php echo $addInfoBlock->setItem($_item)->toHtml() ?>
72
- <?php endif;?>
73
- </td>
74
- <td class="a-center">
75
- <?php if ($isVisibleProduct): ?>
76
- <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo $this->__('Edit item parameters') ?>"><?php echo $this->__('Edit') ?></a>
77
- <?php endif ?>
78
- </td>
79
- <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
80
- <td class="a-center">
81
- <?php if ($isVisibleProduct): ?>
82
- <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move'); ?></a>
83
- <?php endif ?>
84
- </td>
85
- <?php endif ?>
86
-
87
- <?php if ($canApplyMsrp): ?>
88
- <td class="a-right"<?php if ($this->helper('tax')->displayCartBothPrices()): ?> colspan="2"<?php endif; ?>>
89
- <span class="cart-price">
90
- <span class="cart-msrp-unit"><?php echo $this->__('See price before order confirmation.'); ?></span>
91
- <?php $helpLinkId = 'cart-msrp-help-' . $_item->getId(); ?>
92
- <a id="<?php echo $helpLinkId ?>" href="#" class="map-help-link"><?php echo $this->__("What's this?"); ?></a>
93
- <script type="text/javascript">
94
- Catalog.Map.addHelpLink($('<?php echo $helpLinkId ?>'), "<?php echo $this->__("What's this?") ?>");
95
- </script>
96
- </span>
97
- </td>
98
- <?php else: ?>
99
-
100
- <?php if ($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
101
- <td class="a-right">
102
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
103
- <span class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
104
- <?php else: ?>
105
- <span class="cart-price">
106
- <?php endif; ?>
107
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
108
- <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?>
109
- <?php else: ?>
110
- <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()) ?>
111
- <?php endif; ?>
112
-
113
- </span>
114
-
115
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
116
-
117
- <div class="cart-tax-info" id="eunit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
118
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, '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'],true,true); ?></span>
121
- <?php endforeach; ?>
122
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
123
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
124
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
125
- <?php endforeach; ?>
126
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
127
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
128
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount'],true,true); ?></span>
129
- <?php endforeach; ?>
130
- <?php endif; ?>
131
- </div>
132
-
133
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
134
- <div class="cart-tax-total" onclick="taxToggle('eunit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
135
- <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getCalculationPrice()+$_item->getWeeeTaxAppliedAmount()+$_item->getWeeeTaxDisposition()); ?></span>
136
- </div>
137
- <?php endif; ?>
138
- <?php endif; ?>
139
- </td>
140
- <?php endif; ?><!-- inclusive price starts here -->
141
- <?php if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): ?>
142
- <td>
143
- <?php $_incl = $this->helper('checkout')->getPriceInclTax($_item); ?>
144
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
145
- <span class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
146
- <?php else: ?>
147
- <span class="cart-price">
148
- <?php endif; ?>
149
-
150
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
151
- <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?>
152
- <?php else: ?>
153
- <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxDisposition()) ?>
154
- <?php endif; ?>
155
-
156
- </span>
157
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
158
-
159
- <div class="cart-tax-info" id="unit-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
160
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, '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 elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, '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['amount_incl_tax'],true,true); ?></span>
167
- <?php endforeach; ?>
168
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
169
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
170
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['amount_incl_tax'],true,true); ?></span>
171
- <?php endforeach; ?>
172
- <?php endif; ?>
173
- </div>
174
-
175
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
176
- <div class="cart-tax-total" onclick="taxToggle('unit-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
177
- <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getWeeeTaxInclTax($_item)); ?></span>
178
- </div>
179
- <?php endif; ?>
180
- <?php endif; ?>
181
- </td>
182
- <?php endif; ?>
183
- <?php endif; ?>
184
- <td class="a-center">
185
- <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" />
186
- </td>
187
-
188
- <!--Sub total starts here -->
189
- <?php if (($this->helper('tax')->displayCartPriceExclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
190
- <td class="a-right">
191
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
192
- <span class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
193
- <?php else: ?>
194
- <span class="cart-price">
195
- <?php endif; ?>
196
-
197
- <?php if ($canApplyMsrp): ?>
198
- <span class="cart-msrp-subtotal">--</span>
199
- <?php else: ?>
200
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
201
- <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?>
202
- <?php else: ?>
203
- <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()) ?>
204
- <?php endif; ?>
205
- <?php endif; ?>
206
-
207
- </span>
208
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
209
-
210
- <div class="cart-tax-info" id="esubtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
211
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
212
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
213
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
214
- <?php endforeach; ?>
215
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
216
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
217
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
218
- <?php endforeach; ?>
219
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
220
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
221
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount'],true,true); ?></span>
222
- <?php endforeach; ?>
223
- <?php endif; ?>
224
- </div>
225
-
226
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
227
- <div class="cart-tax-total" onclick="taxToggle('esubtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
228
- <span class="weee"><?php echo Mage::helper('weee')->__('Total'); ?>: <?php echo $this->helper('checkout')->formatPrice($_item->getRowTotal()+$_item->getWeeeTaxAppliedRowAmount()+$_item->getWeeeTaxRowDisposition()); ?></span>
229
- </div>
230
- <?php endif; ?>
231
- <?php endif; ?>
232
- </td>
233
- <?php endif; ?>
234
- <?php if (($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()) && !$_item->getNoSubtotal()): ?>
235
- <td>
236
- <?php $_incl = $this->helper('checkout')->getSubtotalInclTax($_item); ?>
237
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
238
- <span class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
239
- <?php else: ?>
240
- <span class="cart-price">
241
- <?php endif; ?>
242
-
243
- <?php if ($canApplyMsrp): ?>
244
- <span class="cart-msrp-subtotal">--</span>
245
- <?php else: ?>
246
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, array(0, 1, 4), 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
247
- <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?>
248
- <?php else: ?>
249
- <?php echo $this->helper('checkout')->formatPrice($_incl-$_item->getWeeeTaxRowDisposition()) ?>
250
- <?php endif; ?>
251
- <?php endif; ?>
252
-
253
- </span>
254
-
255
-
256
- <?php if (Mage::helper('weee')->getApplied($_item)): ?>
257
-
258
- <div class="cart-tax-info" id="subtotal-item-tax-details<?php echo $_item->getId(); ?>" style="display:none;">
259
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 1, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
260
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
261
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
262
- <?php endforeach; ?>
263
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
264
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
265
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
266
- <?php endforeach; ?>
267
- <?php elseif (Mage::helper('weee')->typeOfDisplay($_item, 4, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
268
- <?php foreach (Mage::helper('weee')->getApplied($_item) as $tax): ?>
269
- <span class="weee"><?php echo $tax['title']; ?>: <?php echo Mage::helper('checkout')->formatPrice($tax['row_amount_incl_tax'],true,true); ?></span>
270
- <?php endforeach; ?>
271
- <?php endif; ?>
272
- </div>
273
-
274
- <?php if (Mage::helper('weee')->typeOfDisplay($_item, 2, 'sales') && $_item->getWeeeTaxAppliedAmount()): ?>
275
- <div class="cart-tax-total" onclick="taxToggle('subtotal-item-tax-details<?php echo $_item->getId(); ?>', this, 'cart-tax-total-expanded');">
276
- <span class="weee"><?php echo Mage::helper('weee')->__('Total incl. tax'); ?>: <?php echo $this->helper('checkout')->formatPrice($_incl + Mage::helper('weee')->getRowWeeeTaxInclTax($_item)); ?></span>
277
- </div>
278
- <?php endif; ?>
279
- <?php endif; ?>
280
- </td>
281
- <?php endif; ?>
282
- <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>
283
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/iglobal/stores/cart.phtml ADDED
@@ -0,0 +1,273 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+
5
+
6
+ echo '<div class="igItemAttr" style="display: none;">';
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+ $cart = Mage::getModel('checkout/cart')->getQuote();
15
+
16
+
17
+ foreach ($cart->getAllVisibleItems() as $item) {
18
+
19
+ echo '<div class="igItemDetails">';
20
+
21
+ $options = $item->getOptionByCode('simple_product')->getProduct()->getTypeInstance(true)->getOrderOptions($item->getProduct());
22
+ if ($options){
23
+
24
+
25
+ if(isset($options['options'])){
26
+
27
+ echo '<span class="igItemOptions"><dl class="igOptionsList">';
28
+
29
+ $optionArray = $options['options'];
30
+ foreach ($optionArray as $optionDetails) {
31
+ echo '<dt>' . $optionDetails['label'] . '</dt>';
32
+ echo '<dd>' . $optionDetails['value'] . '</dd>';
33
+ }
34
+
35
+ echo '</dl></span>';
36
+ }
37
+
38
+ }
39
+
40
+
41
+
42
+ echo '<span class="igID">'.$item->getProductId().'</span>';
43
+
44
+ echo '<span class="igName">'.$item->getName().'</span>';
45
+
46
+ echo '<span class="igSku">'.$item->getSku().'</span>';
47
+
48
+ echo '<span class="igQty">'.$item->getQty().'</span>';
49
+
50
+ echo '<span class="igPrice">'.$item->getPrice().'</span>';
51
+
52
+ echo '<span class="igUrl">'.Mage::getModel('catalog/product')->load($item->getProductId())->getProductUrl().'</span>';
53
+
54
+ echo '<span class="igImage">'. str_replace("http:", "https:",Mage::helper('catalog/image')->init($item->getProduct(), 'thumbnail')).'</span>';
55
+
56
+ echo '<span class="igDescription">'. Mage::getModel('catalog/product')->load($item->getProductId())->getDescription().'</span>';
57
+
58
+ echo '<span class="igShortDescription">'. Mage::getModel('catalog/product')->load($item->getProductId())->getShortDescription().'</span>';
59
+
60
+
61
+
62
+
63
+
64
+ //starts here
65
+
66
+ $sku = $item->getProduct()->getTypeId() == 'bundle' ? substr($item->getSku(), strpos($item->getSku(), '-')+1) : $item->getSku();
67
+
68
+ $id = $item->getProductId();
69
+
70
+ $price = $item->getPrice();
71
+
72
+ // This is because Magento fails to load the custom attributes on this php template, hence we have to go back to the DB.
73
+
74
+ $weight = "";
75
+
76
+ $length = "";
77
+
78
+ $width = "";
79
+
80
+ $height = "";
81
+
82
+
83
+
84
+ try {
85
+
86
+
87
+
88
+ $allItemData = Mage::getModel('catalog/product')->load($item['product_id']);
89
+
90
+ $weightUnits = "";
91
+
92
+ $dimUnits = "";
93
+
94
+ try {
95
+
96
+ $weightUnits = "";
97
+
98
+ if (!empty($allItemData['ig_weight_units'])) {
99
+
100
+ $weightUnits = $allItemData->getAttributeText('ig_weight_units');
101
+
102
+ }
103
+
104
+ } catch (Exception $e) {
105
+
106
+ $weightUnits = "";
107
+
108
+ }
109
+
110
+ try {
111
+
112
+ $weight = "";
113
+
114
+ if (!empty($allItemData['ig_weight'])) {
115
+
116
+ $weight = $allItemData->getData('ig_weight');
117
+
118
+ } else if (!empty($allItemData['weight'])) {
119
+
120
+ $weight = $item->getWeight();
121
+
122
+ }
123
+
124
+ if (!empty($weight)) {
125
+
126
+ if ($weightUnits=="kg") {
127
+
128
+ $weight = round(floatval($weight) / 0.453592, 2);
129
+
130
+ } else if ($weightUnits=="oz") {
131
+
132
+ $weight = round(floatval($weight) / 16, 2);
133
+
134
+ } else if ($weightUnits=="g") {
135
+
136
+ $weight = round(floatval($weight) / 453.592, 2);
137
+
138
+ } else {//Default is lbs
139
+
140
+ $weight = round(floatval($weight), 2);
141
+
142
+ }
143
+
144
+ } else {
145
+
146
+ $weight = "";
147
+
148
+ }
149
+
150
+ } catch(Exception $e) {
151
+
152
+ $weight = "";
153
+
154
+ }
155
+
156
+ try {
157
+
158
+ $dimUnits = "";
159
+
160
+ if (!empty($allItemData['ig_dimension_units'])) {
161
+
162
+ $dimUnits = $allItemData->getAttributeText('ig_dimension_units');
163
+
164
+ }
165
+
166
+ } catch (Exception $e) {
167
+
168
+ $dimUnits = "";
169
+
170
+ }
171
+
172
+ try {
173
+
174
+ $length = "";
175
+
176
+ if (!empty($allItemData['ig_length'])) {
177
+
178
+ $length = $allItemData->getData('ig_length');
179
+
180
+ }
181
+
182
+ $width = "";
183
+
184
+ if (!empty($allItemData['ig_width'])) {
185
+
186
+ $width = $allItemData->getData('ig_width');
187
+
188
+ }
189
+
190
+ $height = "";
191
+
192
+ if (!empty($allItemData['ig_height'])) {
193
+
194
+ $height = $allItemData->getData('ig_height');
195
+
196
+ }
197
+
198
+ if (!empty($length) && !empty($width) && !empty($height)) {
199
+
200
+ if ($dimUnits=="cm") {
201
+
202
+ $length = ceil(floatval($length) / 2.54);
203
+
204
+ $width = ceil(floatval($width) / 2.54);
205
+
206
+ $height = ceil(floatval($height) / 2.54);
207
+
208
+ } else {//Default is inches
209
+
210
+ $length = ceil(floatval($length));
211
+
212
+ $width = ceil(floatval($width));
213
+
214
+ $height = ceil(floatval($height));
215
+
216
+ }
217
+
218
+ } else {
219
+
220
+ $length = "";
221
+
222
+ $width = "";
223
+
224
+ $height = "";
225
+
226
+ }
227
+
228
+ } catch(Exception $e) {
229
+
230
+ $length = "";
231
+
232
+ $width = "";
233
+
234
+ $height = "";
235
+
236
+ }
237
+
238
+ } catch (Exception $outerE) {
239
+
240
+
241
+
242
+ }
243
+
244
+
245
+
246
+ // echo "<div class='ig_itemAttributes' style='display:none;'>";
247
+
248
+ echo "<span class='ig_itemProductId'>".$id."</span>";
249
+
250
+ echo "<span class='ig_itemSku'>".$sku."</span>";
251
+
252
+ echo "<span class='ig_itemPrice'>".$price."</span>";
253
+
254
+ echo "<span class='ig_itemWeight'>".$weight."</span>";
255
+
256
+ echo "<span class='ig_itemLength'>".$length."</span>";
257
+
258
+ echo "<span class='ig_itemWidth'>".$width."</span>";
259
+
260
+ echo "<span class='ig_itemHeight'>".$height."</span>";
261
+
262
+ //echo "</div>";
263
+
264
+ //ends here
265
+
266
+
267
+
268
+ echo '</div><!-- end igItemDetails-->';
269
+
270
+ }
271
+
272
+ echo '</div><!--end igItemAttr-->';
273
+ ?>
js/iGlobal/ig_welcome_mat_default.js CHANGED
@@ -96,7 +96,7 @@ var ajaxResult = igJq.ajax({
96
  });
97
 
98
 
99
- console.log('outside: method: ' + ig_flagMethod + ' || flag: ' + ig_flagLocation + ' || code: ' + ig_flagCode + ' || Domestic countries: ' + ig_domestic + " || Serviced Countries: " + ig_countries);
100
 
101
 
102
 
96
  });
97
 
98
 
99
+ //console.log('outside: method: ' + ig_flagMethod + ' || flag: ' + ig_flagLocation + ' || code: ' + ig_flagCode + ' || Domestic countries: ' + ig_domestic + " || Serviced Countries: " + ig_countries);
100
 
101
 
102
 
js/iGlobal/igc.cs.magento_default_ice.js CHANGED
@@ -54,27 +54,20 @@ function getSubDomain() {
54
  function igcGetItems() {
55
 
56
  var items = new Array();
57
- var itemRows = $igc("#shopping-cart-table > tbody > tr");//products rows
58
 
59
  $igc(itemRows).each(function() {
60
- var tds = $igc(this).find('td');//different columns of each row
61
- var qty = $igc(tds).find('.qty').val();
62
- var price = parseFloat($igc(tds).find(".ig_itemPrice").text().replace('$','')); //price is passed in USD as itemProductPrice[]
63
- var imgURL = $igc(tds).eq(0).find('img').attr("src");
64
- var itemURL = $igc(tds).eq(0).find('a').attr("href");
65
- var descTxt = $igc(tds).eq(1).find('.product-name').text();
66
- if($igc(tds).eq(1).find('.item-options').length>0){//if this product has options
67
- $igc(tds).eq(1).find(".item-options dt").each(function(){
68
- descTxt += "<br />"+$igc(this).text()+" : "+$igc(this).next().text()
69
- });
70
- }
71
- descTxt += "<br />Size : "+$igc(tds).eq(2).text();
72
- var sku = $igc(tds).find(".ig_itemSku").text();
73
- var pid = $igc(tds).find(".ig_itemProductId").text();
74
- var weight = $igc(tds).find(".ig_itemWeight").text();
75
- var length = $igc(tds).find(".ig_itemLength").text();;
76
- var width = $igc(tds).find(".ig_itemWidth").text();
77
- var height = $igc(tds).find(".ig_itemHeight").text();
78
 
79
 
80
  if(qty){
54
  function igcGetItems() {
55
 
56
  var items = new Array();
57
+ var itemRows = $igc(".igItemDetails");//products rows
58
 
59
  $igc(itemRows).each(function() {
60
+ var qty = $igc(this).find('.igQty').text();
61
+ var price = $igc(this).find('.igPrice').text();
62
+ var imgURL = $igc(this).find('.igImage').text();
63
+ var itemURL = $igc(this).find('.igUrl').text();
64
+ var descTxt = '<span class="itemDescription">' + $igc(this).find('.igName').text() + '</span>' + $igc(this).find('.igItemOptions').html();
65
+ var sku = $igc(this).find('.igSku').text();
66
+ var pid =$igc(this).find('.igID').text();
67
+ var weight = $igc(this).find('.ig_itemWeight').text();
68
+ var length = $igc(this).find('.ig_itemLength').text();
69
+ var width = $igc(this).find('.ig_itemWidth').text();
70
+ var height = $igc(this).find('.ig_itemHeight').text();
 
 
 
 
 
 
 
71
 
72
 
73
  if(qty){
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Iglobal_Main</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
@@ -55,11 +55,11 @@ Installation Instructions&#xD;
55
  &lt;li&gt;&lt;strong&gt;iGlobal Dimension Units&lt;/strong&gt; &#x2013; Unit of measure for the iGlobal Dimensional attributes. (CM / IN)&lt;/li&gt;&#xD;
56
  &lt;/ul&gt;&#xD;
57
  &lt;/ol&gt;</description>
58
- <notes>Fixing version number priority</notes>
59
  <authors><author><name>Matt Flamm</name><user>mattflamm</user><email>matt@iglobalstores.com</email></author><author><name>Judd Flamm</name><user>UnkUser1</user><email>judd@iglobalstores.com</email></author><author><name>Dustin Dwyer</name><user>UnkUser2</user><email>dustin@iglobalstores.com</email></author><author><name>Dave Meads</name><user>unkuser3</user><email>dave@iglobalstores.com</email></author></authors>
60
- <date>2014-08-13</date>
61
- <time>23:31:09</time>
62
- <contents><target name="magecommunity"><dir name="Iglobal"><dir name="Fee"><dir name="Block"><dir name="Sales"><dir name="Order"><file name="Total.php" hash="0e9e1537fd6cedc9a2b4a3efdf3f769d"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="406a814f1216d736e8661a32c833a15e"/></dir><dir name="Model"><file name="Fee.php" hash="29729703293e6fa5af6527708d67d97f"/><file name="Observer.php" hash="a9ec09a49108625f592f8ef00bcba842"/><dir name="Sales"><dir name="Order"><dir name="Total"><dir name="Creditmemo"><file name="Fee.php" hash="048c8a97de6d884d3b95e0345c1cb75a"/></dir><dir name="Invoice"><file name="Fee.php" hash="fc98218c9a421b95af9f5f0ca062e1d8"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Fee.php" hash="bc925a41535068fb0a94c57183dd2027"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="4cf60a3913d56196b169dd2dffa85e12"/></dir><dir name="sql"><dir name="fee_setup"><file name="mysql4-install-0.1.0.php" hash="8327866f66c8bff7fcbb0305385a6f93"/></dir></dir></dir><dir name="Ship"><dir name="Block"><file name="Ship.php" hash="a802b4d42e72997ec4ab466dec75b743"/></dir><dir name="Helper"><file name="Data.php" hash="fe9f074c1cb74260fa134efa94eb67c9"/></dir><dir name="Model"><dir name="Carrier"><file name="Excellence.php" hash="1cf0b2e1716d3f726f4e974f02267b53"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="3355a75caf30f4ff96499da3d8a4102a"/></dir><dir name="etc"><file name="config.xml" hash="adecbc76332ffb4b0f8918d3166c655c"/><file name="system.xml" hash="fea6b2ed9b7fdf5748cb57e53fe1301b"/></dir></dir><dir name="Stores"><dir name="Block"><file name="Ajax.php" hash="7b71e2bc9b801138f77f5927e7a6f6ba"/><file name="Includes.php" hash="7c36803ae1a6193f7805d7ae5bef17e6"/></dir><dir name="Helper"><file name="Configoptions.php" hash="b129e55b21f845a20d6e7fdb3b532be3"/><file name="Data.php" hash="2d77637b08ac8e7dcb717d8e1571739a"/></dir><dir name="Model"><file name="Configoptions.php" hash="6da281d601b7a6ce98ebc81b398d6e54"/><file name="Observer.php" hash="24ba19336cd0fb51700069ae3d80e471"/><dir name="Payment"><file name="Iglobal.php" hash="9ac8f8d81b8f8d547831ad6db8a1c7fc"/><file name="Iglobalcreditcard.php" hash="f2f5cf4507a128fadc95071951ca2a41"/><file name="Iglobalpaypal.php" hash="3a566289db82b177ce6b52ce205728f6"/></dir><dir name="Resource"><file name="Setup.php" hash="6b05cac95a1d36deeb7e9c9bd439ad8c"/></dir><dir name="Rest"><file name="Order.php" hash="916a67634abdf48666119854a1628ac3"/></dir><dir name="Service"><file name="Quote.php" hash="bae0e5a710b9e3aa1427bb78a08fbfd8"/></dir></dir><dir name="controllers"><file name="AjaxController.php" hash="3169062e850efd55749ae8033676bf2d"/><file name="SuccessController.php" hash="dd7fcdd708cb71e83c20e56ca508bd78"/><file name="TestController.php" hash="6b5fac179a605abf3c7a36612049caf0"/><file name="UpdateShippingStatusController.php" hash="77534f8cbc68f23ab3377ff1427b9300"/></dir><dir name="etc"><file name="adminhtml.xml" hash="a94aa66e4f3643fcc49fb60650fef416"/><file name="config.xml" hash="dcf0b2c3b1e8215260c200dc8b8b7118"/><file name="system.xml" hash="40420c6652da8b38d181fdf57ab15720"/></dir><dir name="sql"><dir name="iglobal_stores_setup"><file name="mysql4-install-0.1.0.php" hash="8f8d6e6596d0ad98d70075f79f320cfd"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="1e8d0cc9906c303b99042290636faef9"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="d710311110eebfc65573d178e8cf5aba"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="1e8d0cc9906c303b99042290636faef9"/><file name="mysql4-upgrade-0.1.3-1.0.0.php" hash="ef0079b0f3b1c09b7417ff86df00ad9e"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Iglobal_Fee.xml" hash="205714b75c3b417343a6b25ecedf35c4"/><file name="Iglobal_Ship.xml" hash="6d40f1c84e29bb7d8b70eadd77a03917"/><file name="Iglobal_Stores.xml" hash="9d9c621c78a98152bf83747eeecdaf99"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="fee.xml" hash="96955d111e2a9014d5dc3d18201ddddf"/><file name="iglobal.xml" hash="6df6f5f0aceab891d0cd13061a3b5e55"/></dir><dir name="template"><dir name="iglobal"><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="06280040dd9521efcd36c12779648108"/></dir></dir></dir></dir><dir name="fee"><dir name="sales"><dir name="order"><file name="refunded.phtml" hash="f4239d313366d75907a34b3342b35eb1"/><file name="total.phtml" hash="bbb080fb20415086d72719c1f1f613d4"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="iglobal"><dir name="checkout"><dir name="cart"><dir name="item"><file name="default-old.phtml" hash="4299590da70f857c1746770a6d6f71a0"/><file name="default.phtml" hash="bef6a2e20b4a6d9e203042007e36c3d1"/></dir></dir></dir><dir name="stores"><file name="igcincludes.phtml" hash="c8e7469a99a83a7ad7a884fa96899abc"/></dir></dir></dir><dir name="layout"><file name="iglobal.xml" hash="e41ee82dbcc9251e491f363555bf6364"/><file name="fee.xml" hash="97d67fc83755f625dfe305748fca65b1"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="iGlobal"><file name="ig_welcome_mat_default.css" hash="52ddb2f596572313d7525de9b53adecb"/><file name="ig_welcome_mat_default.js" hash="26a78a131967a1d339f5385b681cbefb"/><file name="igc.cs.magento_default_ice.js" hash="dcb23a396816bac19c28294dbe5fbb96"/><dir name="jquery"><file name="jquery.js" hash="73a130a5693ab0a806c6d2acc8251006"/><file name="jquery.noconflict.js" hash="09bfdd3b964eb2b17b5d6caa1d20a607"/></dir></dir></dir></target></contents>
63
  <compatible/>
64
  <dependencies><required><php><min>5.0.0</min><max>7.0.0</max></php></required></dependencies>
65
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Iglobal_Main</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
55
  &lt;li&gt;&lt;strong&gt;iGlobal Dimension Units&lt;/strong&gt; &#x2013; Unit of measure for the iGlobal Dimensional attributes. (CM / IN)&lt;/li&gt;&#xD;
56
  &lt;/ul&gt;&#xD;
57
  &lt;/ol&gt;</description>
58
+ <notes>Added a cool new feature to make integration easier. You'll totally love it.</notes>
59
  <authors><author><name>Matt Flamm</name><user>mattflamm</user><email>matt@iglobalstores.com</email></author><author><name>Judd Flamm</name><user>UnkUser1</user><email>judd@iglobalstores.com</email></author><author><name>Dustin Dwyer</name><user>UnkUser2</user><email>dustin@iglobalstores.com</email></author><author><name>Dave Meads</name><user>unkuser3</user><email>dave@iglobalstores.com</email></author></authors>
60
+ <date>2014-08-20</date>
61
+ <time>16:07:55</time>
62
+ <contents><target name="magecommunity"><dir name="Iglobal"><dir name="Fee"><dir name="Block"><dir name="Sales"><dir name="Order"><file name="Total.php" hash="0e9e1537fd6cedc9a2b4a3efdf3f769d"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="406a814f1216d736e8661a32c833a15e"/></dir><dir name="Model"><file name="Fee.php" hash="29729703293e6fa5af6527708d67d97f"/><file name="Observer.php" hash="a9ec09a49108625f592f8ef00bcba842"/><dir name="Sales"><dir name="Order"><dir name="Total"><dir name="Creditmemo"><file name="Fee.php" hash="048c8a97de6d884d3b95e0345c1cb75a"/></dir><dir name="Invoice"><file name="Fee.php" hash="fc98218c9a421b95af9f5f0ca062e1d8"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Fee.php" hash="bc925a41535068fb0a94c57183dd2027"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="4cf60a3913d56196b169dd2dffa85e12"/></dir><dir name="sql"><dir name="fee_setup"><file name="mysql4-install-0.1.0.php" hash="8327866f66c8bff7fcbb0305385a6f93"/></dir></dir></dir><dir name="Ship"><dir name="Block"><file name="Ship.php" hash="a802b4d42e72997ec4ab466dec75b743"/></dir><dir name="Helper"><file name="Data.php" hash="fe9f074c1cb74260fa134efa94eb67c9"/></dir><dir name="Model"><dir name="Carrier"><file name="Excellence.php" hash="1cf0b2e1716d3f726f4e974f02267b53"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="3355a75caf30f4ff96499da3d8a4102a"/></dir><dir name="etc"><file name="config.xml" hash="adecbc76332ffb4b0f8918d3166c655c"/><file name="system.xml" hash="fea6b2ed9b7fdf5748cb57e53fe1301b"/></dir></dir><dir name="Stores"><dir name="Block"><file name="Ajax.php" hash="7b71e2bc9b801138f77f5927e7a6f6ba"/><file name="Cart.php" hash="2fd47fa1ca047bbc75383c2e35dd4bf2"/><file name="Includes.php" hash="7c36803ae1a6193f7805d7ae5bef17e6"/></dir><dir name="Helper"><file name="Configoptions.php" hash="b129e55b21f845a20d6e7fdb3b532be3"/><file name="Data.php" hash="2d77637b08ac8e7dcb717d8e1571739a"/></dir><dir name="Model"><file name="Configoptions.php" hash="6da281d601b7a6ce98ebc81b398d6e54"/><file name="Observer.php" hash="24ba19336cd0fb51700069ae3d80e471"/><dir name="Payment"><file name="Iglobal.php" hash="9ac8f8d81b8f8d547831ad6db8a1c7fc"/><file name="Iglobalcreditcard.php" hash="f2f5cf4507a128fadc95071951ca2a41"/><file name="Iglobalpaypal.php" hash="3a566289db82b177ce6b52ce205728f6"/></dir><dir name="Resource"><file name="Setup.php" hash="6b05cac95a1d36deeb7e9c9bd439ad8c"/></dir><dir name="Rest"><file name="Order.php" hash="916a67634abdf48666119854a1628ac3"/></dir><dir name="Service"><file name="Quote.php" hash="bae0e5a710b9e3aa1427bb78a08fbfd8"/></dir></dir><dir name="controllers"><file name="AjaxController.php" hash="3169062e850efd55749ae8033676bf2d"/><file name="SuccessController.php" hash="38d0b1715a5b8aa30ab2cbfbee5d65d7"/><file name="TestController.php" hash="4d14668de657eaa3f32a200e35b43a37"/><file name="UpdateShippingStatusController.php" hash="77534f8cbc68f23ab3377ff1427b9300"/></dir><dir name="etc"><file name="adminhtml.xml" hash="a94aa66e4f3643fcc49fb60650fef416"/><file name="config.xml" hash="5340b67f9f52f312566db06fc4349d02"/><file name="system.xml" hash="40420c6652da8b38d181fdf57ab15720"/></dir><dir name="sql"><dir name="iglobal_stores_setup"><file name="mysql4-install-0.1.0.php" hash="8f8d6e6596d0ad98d70075f79f320cfd"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="1e8d0cc9906c303b99042290636faef9"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="d710311110eebfc65573d178e8cf5aba"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="1e8d0cc9906c303b99042290636faef9"/><file name="mysql4-upgrade-0.1.3-1.0.0.php" hash="ef0079b0f3b1c09b7417ff86df00ad9e"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Iglobal_Fee.xml" hash="205714b75c3b417343a6b25ecedf35c4"/><file name="Iglobal_Ship.xml" hash="6d40f1c84e29bb7d8b70eadd77a03917"/><file name="Iglobal_Stores.xml" hash="9d9c621c78a98152bf83747eeecdaf99"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="fee.xml" hash="96955d111e2a9014d5dc3d18201ddddf"/><file name="iglobal.xml" hash="6df6f5f0aceab891d0cd13061a3b5e55"/></dir><dir name="template"><dir name="iglobal"><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="06280040dd9521efcd36c12779648108"/></dir></dir></dir></dir><dir name="fee"><dir name="sales"><dir name="order"><file name="refunded.phtml" hash="f4239d313366d75907a34b3342b35eb1"/><file name="total.phtml" hash="bbb080fb20415086d72719c1f1f613d4"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="iglobal"><dir name="checkout"><dir name="cart"><dir name="item"><dir name="configure"><file name="updatecart.phtml" hash="0fc6cc809c88704da74a915cf7e20918"/></dir></dir></dir></dir><dir name="stores"><file name="cart.phtml" hash="53fbd6c81d74af67e38fe717a1526bfc"/><file name="igcincludes.phtml" hash="c8e7469a99a83a7ad7a884fa96899abc"/></dir></dir></dir><dir name="layout"><file name="iglobal.xml" hash="d522ac5d3cabf448736c0b593dd7536e"/><file name="fee.xml" hash="97d67fc83755f625dfe305748fca65b1"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="iGlobal"><file name="ig_welcome_mat_default.css" hash="52ddb2f596572313d7525de9b53adecb"/><file name="ig_welcome_mat_default.js" hash="704d91519b36dd4c2de5da118c30aff0"/><file name="igc.cs.magento_default_ice.js" hash="df4214409ba944166c1828a23a592d1a"/><dir name="jquery"><file name="jquery.js" hash="73a130a5693ab0a806c6d2acc8251006"/><file name="jquery.noconflict.js" hash="09bfdd3b964eb2b17b5d6caa1d20a607"/></dir></dir></dir></target></contents>
63
  <compatible/>
64
  <dependencies><required><php><min>5.0.0</min><max>7.0.0</max></php></required></dependencies>
65
  </package>