Eximbay - Version 1.1.3

Version Notes

Show only first product name.

Download this release

Release Info

Developer KRPartners Co.,Ltd
Extension Eximbay
Version 1.1.3
Comparing to
See all releases


Code changes from version 1.1.2 to 1.1.3

app/code/local/Mage/Eximbay/Model/Abstract.php CHANGED
@@ -242,6 +242,7 @@ abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abs
242
  //get item units
243
  $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
244
  $items = $order->getAllVisibleItems();
 
245
  $itemcount=count($items);
246
  $item_loop = 0;
247
  if ( $itemcount > 0 ) {
@@ -251,14 +252,22 @@ abstract class Mage_Eximbay_Model_Abstract extends Mage_Payment_Model_Method_Abs
251
  $params['dm_item_'.$item_loop.'_unitPrice'] = $item->getPrice();
252
  $params['dm_item_'.$item_loop.'_quantity'] = $item->getQtyToInvoice();
253
 
254
- if($item_loop > 0)
255
- $params['product'] .= '
';
256
- $params['product'] .= $item->getName();
257
-
 
 
 
258
  $item_loop++;
259
  }
 
 
 
 
 
260
  }
261
-
262
  return $params;
263
  }
264
  /**
242
  //get item units
243
  $order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
244
  $items = $order->getAllVisibleItems();
245
+ $itemname = '';
246
  $itemcount=count($items);
247
  $item_loop = 0;
248
  if ( $itemcount > 0 ) {
252
  $params['dm_item_'.$item_loop.'_unitPrice'] = $item->getPrice();
253
  $params['dm_item_'.$item_loop.'_quantity'] = $item->getQtyToInvoice();
254
 
255
+ //if($item_loop > 0)
256
+ // $params['product'] .= '
';
257
+ //$params['product'] .= $item->getName();
258
+
259
+ if($item_loop == 0)
260
+ $params['product'] = $item->getName();
261
+
262
  $item_loop++;
263
  }
264
+
265
+ if($itemcount > 1){
266
+ $itemcnt = $itemcount - 1;
267
+ $params['product'] .= " ... and " . $itemcnt . " more";
268
+ }
269
  }
270
+
271
  return $params;
272
  }
273
  /**
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Eximbay</name>
4
- <version>1.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Official Eximbay Payment Extension</summary>
10
  <description>This payment module offers a variety of popular payment methods for online merchants.</description>
11
- <notes>Show item names line by line on Eximbay payment page.</notes>
12
  <authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
13
- <date>2014-10-16</date>
14
- <time>11:17:46</time>
15
- <contents><target name="magelocal"><dir name="Mage"><dir name="Eximbay"><dir name="Block"><file name="Form.php" hash="b8147288ed4b1618385ce3435542a525"/><file name="Info.php" hash="d54164acde35a307cba6c2a93efa545d"/><file name="Jsinit.php" hash="8485fc4e1405c247c66bc2c3a998945a"/><file name="Payment.php" hash="f01db54dd0e7b8e9311332a8cf505197"/><file name="Placeform.php" hash="847d84d6cd2a4109fe86167122b48238"/><file name="Redirect.php" hash="5f94a39dbe0d151e0624070f3ea36af3"/></dir><dir name="Helper"><file name="Data.php" hash="152b123f6ff4de1ecb49f07c4ddfb85d"/></dir><dir name="Model"><file name="Abstract.php" hash="77773e4058f403cfdaf6a772c09c8257"/><file name="Acc.php" hash="216134d769ee10f0704b7d592967c5f4"/><file name="Event.php" hash="57551f30b0abdc691cdb959b24ad8e1a"/><file name="Source.php" hash="105a8fe25e2e08ebca7c425f9353c929"/></dir><dir name="controllers"><file name="EximbayController.php" hash="f4830633769127a2d2558053494fab51"/><file name="ProcessingController.php" hash="eb8aa48637821b2615df3b9d3a5a35aa"/></dir><dir name="etc"><file name="config.xml" hash="3f85e6a4cf9455f6243a7fdc8c63104e"/><file name="system.xml" hash="7ffb8aad1a37974d551db99ae9299f5c"/></dir><dir name="sql"><dir name="eximbay_setup"><file name="mysql4-install-0.1.0.php" hash="a6be2fbf126da40e119bf9d15acd545e"/><file name="mysql4-ugrade-0.1.0-0.2.0.php" hash="b6adcaae8201d20284c53eee72cbca36"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="a40141b94abc2e79f48261c380f6bee8"/></dir><dir name="template"><dir name="eximbay"><file name="info.phtml" hash="eb6781c9c3239e9e7680c6d135608a98"/><file name="jsinit.phtml" hash="0c96e841bb9c384df2e04d018c5d3a3e"/><dir name="pdf"><file name="info.phtml" hash="d087d55b5aca15306673e37c37650b9b"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="6ff8a6036e516221aad42f5144942278"/></dir><dir name="template"><dir name="eximbay"><file name="blank.phtml" hash="6a2650fc18513a3cfb13d3b8362fac63"/><file name="form.phtml" hash="38fbb480c17767a72c3f2cf957c62255"/><file name="info.phtml" hash="e06bb65b3d5e5c57e15be49b2c69c5b9"/><file name="payment.phtml" hash="96b3399e794bf437ff9f662f7f07ce70"/><file name="placeform.phtml" hash="05f35c94c065c9da92c74833e1f9318f"/><file name="redirect.phtml" hash="3889defdb3ed77611448e05406b193ab"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Eximbay.xml" hash="d2ad4447bb58e1fb25f3624eee141768"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Mage_Eximbay.csv" hash="dcea44085c5e6f5bd41b49eb9333863d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="eximbay"><file name="banner_120_int.gif" hash="54276432f5b4f61f32e8c8cd2a0cc6d1"/><file name="eximbay_acc.gif" hash="0396c67d5d153ee4cae3189a3d469700"/><file name="eximbay_loading.gif" hash="68affa0374b82d560d800c9ea3e160ad"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Eximbay</name>
4
+ <version>1.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/gpl-license.php">GNU General Public License</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Official Eximbay Payment Extension</summary>
10
  <description>This payment module offers a variety of popular payment methods for online merchants.</description>
11
+ <notes>Show only first product name.</notes>
12
  <authors><author><name>KRPartners Co.,Ltd</name><user>prokod1</user><email>prokod@kr.net</email></author></authors>
13
+ <date>2014-10-17</date>
14
+ <time>04:23:53</time>
15
+ <contents><target name="magelocal"><dir name="Mage"><dir name="Eximbay"><dir name="Block"><file name="Form.php" hash="b8147288ed4b1618385ce3435542a525"/><file name="Info.php" hash="d54164acde35a307cba6c2a93efa545d"/><file name="Jsinit.php" hash="8485fc4e1405c247c66bc2c3a998945a"/><file name="Payment.php" hash="f01db54dd0e7b8e9311332a8cf505197"/><file name="Placeform.php" hash="847d84d6cd2a4109fe86167122b48238"/><file name="Redirect.php" hash="5f94a39dbe0d151e0624070f3ea36af3"/></dir><dir name="Helper"><file name="Data.php" hash="152b123f6ff4de1ecb49f07c4ddfb85d"/></dir><dir name="Model"><file name="Abstract.php" hash="bcb9584222e4510507872de5ddd891ec"/><file name="Acc.php" hash="216134d769ee10f0704b7d592967c5f4"/><file name="Event.php" hash="57551f30b0abdc691cdb959b24ad8e1a"/><file name="Source.php" hash="105a8fe25e2e08ebca7c425f9353c929"/></dir><dir name="controllers"><file name="EximbayController.php" hash="f4830633769127a2d2558053494fab51"/><file name="ProcessingController.php" hash="eb8aa48637821b2615df3b9d3a5a35aa"/></dir><dir name="etc"><file name="config.xml" hash="3f85e6a4cf9455f6243a7fdc8c63104e"/><file name="system.xml" hash="7ffb8aad1a37974d551db99ae9299f5c"/></dir><dir name="sql"><dir name="eximbay_setup"><file name="mysql4-install-0.1.0.php" hash="a6be2fbf126da40e119bf9d15acd545e"/><file name="mysql4-ugrade-0.1.0-0.2.0.php" hash="b6adcaae8201d20284c53eee72cbca36"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="a40141b94abc2e79f48261c380f6bee8"/></dir><dir name="template"><dir name="eximbay"><file name="info.phtml" hash="eb6781c9c3239e9e7680c6d135608a98"/><file name="jsinit.phtml" hash="0c96e841bb9c384df2e04d018c5d3a3e"/><dir name="pdf"><file name="info.phtml" hash="d087d55b5aca15306673e37c37650b9b"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="eximbay.xml" hash="6ff8a6036e516221aad42f5144942278"/></dir><dir name="template"><dir name="eximbay"><file name="blank.phtml" hash="6a2650fc18513a3cfb13d3b8362fac63"/><file name="form.phtml" hash="38fbb480c17767a72c3f2cf957c62255"/><file name="info.phtml" hash="e06bb65b3d5e5c57e15be49b2c69c5b9"/><file name="payment.phtml" hash="96b3399e794bf437ff9f662f7f07ce70"/><file name="placeform.phtml" hash="05f35c94c065c9da92c74833e1f9318f"/><file name="redirect.phtml" hash="3889defdb3ed77611448e05406b193ab"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Eximbay.xml" hash="d2ad4447bb58e1fb25f3624eee141768"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Mage_Eximbay.csv" hash="dcea44085c5e6f5bd41b49eb9333863d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="eximbay"><file name="banner_120_int.gif" hash="54276432f5b4f61f32e8c8cd2a0cc6d1"/><file name="eximbay_acc.gif" hash="0396c67d5d153ee4cae3189a3d469700"/><file name="eximbay_loading.gif" hash="68affa0374b82d560d800c9ea3e160ad"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>