J2t_Payplug - Version 1.0.2

Version Notes

Code optimization

Download this release

Release Info

Developer J2T DESIGN
Extension J2t_Payplug
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/J2t/Payplug/Block/Info.php CHANGED
@@ -37,6 +37,13 @@ class J2t_Payplug_Block_Info extends Mage_Payment_Block_Info
37
  {
38
  return $this->getInfo()->getMethodInstance()->getCode();
39
  }
 
 
 
 
 
 
 
40
 
41
 
42
  }
37
  {
38
  return $this->getInfo()->getMethodInstance()->getCode();
39
  }
40
+
41
+
42
+ public function toPdf()
43
+ {
44
+ $this->setTemplate('j2tpayplug/pdf/info.phtml');
45
+ return $this->toHtml();
46
+ }
47
 
48
 
49
  }
app/code/community/J2t/Payplug/controllers/PaymentController.php CHANGED
@@ -30,6 +30,33 @@ class J2t_Payplug_PaymentController extends Mage_Core_Controller_Front_Action
30
  $this->_redirectUrl($url);
31
  }
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  public function ipnAction()
34
  {
35
  $headers = array();
@@ -83,14 +110,28 @@ class J2t_Payplug_PaymentController extends Mage_Core_Controller_Front_Action
83
  }
84
  // If order state is payment in progress by payplug
85
  elseif($order->getState() == Mage::getStoreConfig('payment/j2tpayplug/new_order_status', $data['custom_data'])){
86
- $order->setState(Mage::getStoreConfig('payment/j2tpayplug/complete_order_status', $data['custom_data']));
87
  $order->setStatus(Mage::getStoreConfig('payment/j2tpayplug/complete_order_status', $data['custom_data']));
88
  $order->addStatusHistoryComment(Mage::helper('j2tpayplug')->__('Payment has been captured by Payment Gateway. Transaction id: %s', $data['id_transaction']));
89
- $order->save();
 
 
 
 
 
 
 
90
 
91
  if (Mage::getStoreConfig('payment/j2tpayplug/invoice', $data['custom_data'])){
 
 
 
 
 
 
92
  //generate invoice
93
  try {
 
94
  if(!$order->canInvoice())
95
  {
96
  Mage::throwException(Mage::helper('j2tpayplug')->__('Cannot create an invoice.'));
@@ -111,11 +152,16 @@ class J2t_Payplug_PaymentController extends Mage_Core_Controller_Front_Action
111
  catch (Mage_Core_Exception $e) {
112
 
113
  }
114
- }
115
 
116
  }
117
  } // If status refund
118
- else if($status == self::PAYMENT_STATUS_REFUND || $status == self::PAYMENT_STATUS_CANCEL){
 
 
 
 
 
119
  $invoices = array();
120
  foreach ($order->getInvoiceCollection() as $invoice) {
121
  if ($invoice->canRefund()) {
@@ -130,7 +176,8 @@ class J2t_Payplug_PaymentController extends Mage_Core_Controller_Front_Action
130
  //if (!sizeof($invoices)){
131
  $order->setState(Mage::getStoreConfig('payment/j2tpayplug/cancel_order_status', $data['custom_data']));
132
  $order->setStatus(Mage::getStoreConfig('payment/j2tpayplug/cancel_order_status', $data['custom_data']));
133
- $order->addStatusHistoryComment(Mage::helper('j2tpayplug')->__('Payment canceled/refunded by Payment Gateway. Transaction id: %s', $data['id_transaction']));
 
134
  $order->save();
135
  //}
136
  }
30
  $this->_redirectUrl($url);
31
  }
32
 
33
+
34
+ protected function _createInvoice($order)
35
+ {
36
+ if (!$order->canInvoice()) {
37
+ return;
38
+ }
39
+ /*$invoice = $order->prepareInvoice();
40
+ $invoice->register()->capture();
41
+ $order->addRelatedObject($invoice);*/
42
+
43
+ ////////////////
44
+
45
+ $invoice = $order->prepareInvoice();
46
+ if (!$invoice->getTotalQty()) {
47
+ Mage::throwException(Mage::helper('j2tpayplug')->__('Cannot create an invoice without products.'));
48
+ }
49
+
50
+ $invoice->setRequestedCaptureCase(Mage_Sales_Model_Order_Invoice::CAPTURE_OFFLINE);
51
+ $invoice->register();
52
+ /*$transactionSave = Mage::getModel('core/resource_transaction')
53
+ ->addObject($invoice)
54
+ ->addObject($invoice->getOrder());
55
+
56
+ $transactionSave->save();*/
57
+ $order->addRelatedObject($invoice);
58
+ }
59
+
60
  public function ipnAction()
61
  {
62
  $headers = array();
110
  }
111
  // If order state is payment in progress by payplug
112
  elseif($order->getState() == Mage::getStoreConfig('payment/j2tpayplug/new_order_status', $data['custom_data'])){
113
+ /*$order->setState(Mage::getStoreConfig('payment/j2tpayplug/complete_order_status', $data['custom_data']));
114
  $order->setStatus(Mage::getStoreConfig('payment/j2tpayplug/complete_order_status', $data['custom_data']));
115
  $order->addStatusHistoryComment(Mage::helper('j2tpayplug')->__('Payment has been captured by Payment Gateway. Transaction id: %s', $data['id_transaction']));
116
+ $order->save();*/
117
+
118
+ $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true, Mage::helper('j2tpayplug')->__('Payment has been captured by Payment Gateway. Transaction id: %s', $data['id_transaction']));
119
+ // save transaction ID
120
+ $order->getPayment()->setLastTransId($data['id_transaction']);
121
+ // send new order email
122
+ $order->sendNewOrderEmail();
123
+ $order->setEmailSent(true);
124
 
125
  if (Mage::getStoreConfig('payment/j2tpayplug/invoice', $data['custom_data'])){
126
+ $this->_createInvoice($order);
127
+ }
128
+
129
+ $order->save();
130
+
131
+ /*if (Mage::getStoreConfig('payment/j2tpayplug/invoice', $data['custom_data'])){
132
  //generate invoice
133
  try {
134
+
135
  if(!$order->canInvoice())
136
  {
137
  Mage::throwException(Mage::helper('j2tpayplug')->__('Cannot create an invoice.'));
152
  catch (Mage_Core_Exception $e) {
153
 
154
  }
155
+ }*/
156
 
157
  }
158
  } // If status refund
159
+ else if($status == self::PAYMENT_STATUS_CANCEL){
160
+ $order->cancel();
161
+ $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_CANCELED, Mage::helper('j2tpayplug')->__('Payment canceled by Payment Gateway. Transaction id: %s', $data['id_transaction']));
162
+ $order->save();
163
+ }
164
+ else if($status == self::PAYMENT_STATUS_REFUND){
165
  $invoices = array();
166
  foreach ($order->getInvoiceCollection() as $invoice) {
167
  if ($invoice->canRefund()) {
176
  //if (!sizeof($invoices)){
177
  $order->setState(Mage::getStoreConfig('payment/j2tpayplug/cancel_order_status', $data['custom_data']));
178
  $order->setStatus(Mage::getStoreConfig('payment/j2tpayplug/cancel_order_status', $data['custom_data']));
179
+ $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_CLOSED, Mage::helper('j2tpayplug')->__('Payment refunded by Payment Gateway. Transaction id: %s', $data['id_transaction']));
180
+ //$order->addStatusHistoryComment(Mage::helper('j2tpayplug')->__('Payment refunded by Payment Gateway. Transaction id: %s', $data['id_transaction']));
181
  $order->save();
182
  //}
183
  }
app/code/community/J2t/Payplug/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <J2t_Payplug>
5
- <version>1.0.1</version>
6
  </J2t_Payplug>
7
  </modules>
8
 
@@ -24,21 +24,13 @@
24
  <class>J2t_Payplug_Model</class>
25
  <resourceModel>j2tpayplug_resource</resourceModel>
26
  </j2tpayplug>
27
- <j2tpayplug_resource>
28
- <class>J2t_Payplug_Model_Resource</class>
29
- <deprecatedNode>j2tpayplug_mysql4</deprecatedNode>
30
- <entities>
31
- <cert>
32
- <table>payplug_cert</table>
33
- </cert>
34
- </entities>
35
- </j2tpayplug_resource>
36
  </models>
37
  <resources>
38
  <j2tpayplug_setup>
39
  <setup>
40
  <module>J2t_Payplug</module>
41
- <class>Mage_Paypal_Model_Resource_Setup</class>
 
42
  </setup>
43
  <connection>
44
  <use>core_setup</use>
2
  <config>
3
  <modules>
4
  <J2t_Payplug>
5
+ <version>1.0.2</version>
6
  </J2t_Payplug>
7
  </modules>
8
 
24
  <class>J2t_Payplug_Model</class>
25
  <resourceModel>j2tpayplug_resource</resourceModel>
26
  </j2tpayplug>
 
 
 
 
 
 
 
 
 
27
  </models>
28
  <resources>
29
  <j2tpayplug_setup>
30
  <setup>
31
  <module>J2t_Payplug</module>
32
+ <!--<class>Mage_Paypal_Model_Resource_Setup</class>-->
33
+ <class>Mage_Sales_Model_Mysql4_Setup</class>
34
  </setup>
35
  <connection>
36
  <use>core_setup</use>
app/code/community/J2t/Payplug/sql/j2tpayplug_setup/install-1.0.0.php DELETED
@@ -1,45 +0,0 @@
1
- <?php
2
-
3
- /** @var $installer Mage_Paypal_Model_Resource_Setup */
4
- $installer = $this;
5
-
6
- /**
7
- * Prepare database for install
8
- */
9
- $installer->startSetup();
10
-
11
-
12
- /**
13
- * Create table 'paypal/cert'
14
- */
15
- $table = $installer->getConnection()
16
- ->newTable($installer->getTable('j2tpayplug/cert'))
17
- ->addColumn('cert_id', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, array(
18
- 'identity' => true,
19
- 'unsigned' => true,
20
- 'nullable' => false,
21
- 'primary' => true,
22
- ), 'Cert Id')
23
- ->addColumn('website_id', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, array(
24
- 'unsigned' => true,
25
- 'nullable' => false,
26
- 'default' => '0'
27
- ), 'Website Id')
28
- ->addColumn('content', Varien_Db_Ddl_Table::TYPE_TEXT, '64K', array(
29
- ), 'Content')
30
- ->addColumn('updated_at', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array(
31
- ), 'Updated At')
32
- ->addIndex($installer->getIdxName('j2tpayplug/cert', array('website_id')),
33
- array('website_id'))
34
- ->addForeignKey($installer->getFkName('j2tpayplug/cert', 'website_id', 'core/website', 'website_id'),
35
- 'website_id', $installer->getTable('core/website'), 'website_id',
36
- Varien_Db_Ddl_Table::ACTION_CASCADE, Varien_Db_Ddl_Table::ACTION_CASCADE)
37
- ->setComment('Payplug Certificate Table');
38
- $installer->getConnection()->createTable($table);
39
-
40
-
41
- /**
42
- * Prepare database after install
43
- */
44
- $installer->endSetup();
45
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/j2tpayplug/info.phtml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-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
+ * @category design
16
+ * @package default_default
17
+ * @copyright Copyright (c) 2013 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?><br />
22
+ <?php if ($this->getInfo()->getLastTransId() == ''): ?>
23
+ <?php echo Mage::helper('j2tpayplug')->__('No transaction ID recorded.') ?><br />
24
+ <?php else: ?>
25
+ <?php echo Mage::helper('j2tpayplug')->__('PayPlug Transaction ID: %s', $this->escapeHtml($this->getInfo()->getLastTransId())) ?><br />
26
+ <?php endif; ?>
app/design/adminhtml/default/default/template/j2tpayplug/pdf/info.phtml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-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
+ * @category design
16
+ * @package default_default
17
+ * @copyright Copyright (c) 2013 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <?php echo $this->escapeHtml($this->getMethod()->getTitle()) ?>
22
+ {{pdf_row_separator}}
23
+ <?php echo Mage::helper('j2tpayplug')->__('PayPlug Transaction ID: %s', $this->escapeHtml($this->getInfo()->getLastTransId())) ?>
24
+ {{pdf_row_separator}}
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>J2t_Payplug</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>PayPlug payment gateway</summary>
10
  <description>It allows to pay with PayPlug</description>
11
- <notes>Visa and Mastercard login insertion</notes>
12
  <authors><author><name>J2T Design</name><user>j2tdesign</user><email>j2tdesign.net@gmail.com</email></author></authors>
13
- <date>2014-09-22</date>
14
- <time>10:23:54</time>
15
- <contents><target name="magecommunity"><dir name="J2t"><dir name="Payplug"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Accountdetails.php" hash="c89acdccd51f392dac8dfd032013683f"/></dir></dir></dir><file name="Form.php" hash="0c89710b2d4e94d76e9cc4b37ae3e7a6"/><file name="Info.php" hash="6e5e03ae417efe6d538b6437d5c99f87"/></dir><dir name="Helper"><file name="Data.php" hash="123d5de46cd1577e867e8ab9b0236d09"/></dir><dir name="Model"><file name="Feed.php" hash="a7a040e81827020e74f22f760b8f3f64"/><file name="Observer.php" hash="6d67e04bd3fd33e44c8381e64d5e9682"/><file name="PaymentMethod.php" hash="ecdb9dddcaaac90b80e5df92690b8d4a"/></dir><dir name="controllers"><file name="PaymentController.php" hash="195a5069f5041ba5a5c528ccd9df5791"/></dir><dir name="etc"><file name="config.xml" hash="78a4ccb547702fd6b4f07c1fa116f41b"/><file name="system.xml" hash="143b39d210b839d0c0503a5be6c2bd9d"/></dir><dir name="sql"><dir name="j2tpayplug_setup"><file name="install-1.0.0.php" hash="38cd84e5305bf53bca042f3a325523e5"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="j2tpayplug"><file name="form.phtml" hash="6edeec68d52f962cfe43b703d9925302"/><file name="info.phtml" hash="7270ac2591cb0ad18915d8f5e92bef69"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="j2tpayplug.xml" hash="b4f4d0cbe73cbd00bff554680f531741"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="J2t_Payplug.xml" hash="dccffdae1d3e6bae6c2e01ed7ec0cff3"/></dir></target><target name="magelocale"><dir/></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="j2t_all_admin_1.css" hash="e55ce76476696ccf371b335c37af3bc5"/><dir name="images"><file name="j2t_all_1.png" hash="19abc9040d74479f19eeb0c686f84766"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="."><file name="icon_accepted_cards_payplug.gif" hash="5270a1ef6a85f679504849cdb1dccb2a"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>J2t_Payplug</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>PayPlug payment gateway</summary>
10
  <description>It allows to pay with PayPlug</description>
11
+ <notes>Code optimization</notes>
12
  <authors><author><name>J2T Design</name><user>j2tdesign</user><email>j2tdesign.net@gmail.com</email></author></authors>
13
+ <date>2014-09-24</date>
14
+ <time>12:17:21</time>
15
+ <contents><target name="magecommunity"><dir name="J2t"><dir name="Payplug"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Accountdetails.php" hash="c89acdccd51f392dac8dfd032013683f"/></dir></dir></dir><file name="Form.php" hash="0c89710b2d4e94d76e9cc4b37ae3e7a6"/><file name="Info.php" hash="1879d72dca0d0762afa48d7039d07925"/></dir><dir name="Helper"><file name="Data.php" hash="123d5de46cd1577e867e8ab9b0236d09"/></dir><dir name="Model"><file name="Feed.php" hash="a7a040e81827020e74f22f760b8f3f64"/><file name="Observer.php" hash="6d67e04bd3fd33e44c8381e64d5e9682"/><file name="PaymentMethod.php" hash="ecdb9dddcaaac90b80e5df92690b8d4a"/></dir><dir name="controllers"><file name="PaymentController.php" hash="39dc7cde45283f1c5d6c62e1bb8efcac"/></dir><dir name="etc"><file name="config.xml" hash="a075c02f9640e1cd34c55bb2e9e622eb"/><file name="system.xml" hash="143b39d210b839d0c0503a5be6c2bd9d"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="j2tpayplug"><file name="form.phtml" hash="6edeec68d52f962cfe43b703d9925302"/><file name="info.phtml" hash="7270ac2591cb0ad18915d8f5e92bef69"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="j2tpayplug.xml" hash="b4f4d0cbe73cbd00bff554680f531741"/></dir><dir name="template"><dir name="j2tpayplug"><file name="info.phtml" hash="f6aa9ac4ef5ec0aa207e4b5a03666bd1"/><dir name="pdf"><file name="info.phtml" hash="007c81c2ae9e9b16522924a8073294ef"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="J2t_Payplug.xml" hash="dccffdae1d3e6bae6c2e01ed7ec0cff3"/></dir></target><target name="magelocale"><dir/></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="j2t_all_admin_1.css" hash="6d64fbd2a114cd820c11017c61bd0897"/><dir name="images"><file name="j2t_all_1.png" hash="19abc9040d74479f19eeb0c686f84766"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="."><file name="icon_accepted_cards_payplug.gif" hash="5270a1ef6a85f679504849cdb1dccb2a"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/adminhtml/default/default/j2t_all_admin_1.css CHANGED
@@ -6,4 +6,73 @@ ul.tabs a.j2t-all-tab span, ul.tabs a.j2t-all-tab:hover span {
6
  width: 192px;
7
  }
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  ul.tabs a.j2t-all-tab, ul.tabs a.j2t-all-tab {border:none;}
6
  width: 192px;
7
  }
8
 
9
+ ul.tabs a.j2t-all-tab, ul.tabs a.j2t-all-tab:hover {
10
+ background: url("../../images/tabs_span_bg.gif") repeat-x scroll 0 100% transparent;
11
+ border-bottom: medium none;
12
+ padding: 0.5em 0.5em 0.28em 1.5em;
13
+ }
14
+
15
+ ul.tabs a.j2t-ajaxcart-module span, ul.tabs a.j2t-ajaxcart-module:hover span {
16
+ background: url("./images/j2t/ajax_cart.png") no-repeat scroll 0 0 transparent;
17
+ padding: 0 20px 0;
18
+ }
19
+ ul.tabs a.j2t-rewardpoints-module span, ul.tabs a.j2t-rewardpoints-module:hover span {
20
+ background: url("./images/j2t/reward_points.png") no-repeat scroll 0 0 transparent;
21
+ padding: 0 20px 0;
22
+ }
23
+ ul.tabs a.j2t-autoadd-module span, ul.tabs a.j2t-autoadd-module:hover span {
24
+ background: url("./images/j2t/auto_add.png") no-repeat scroll 0 0 transparent;
25
+ padding: 0 20px 0;
26
+ }
27
+ ul.tabs a.j2t-onecheckout-module span, ul.tabs a.j2t-onecheckout-module:hover span {
28
+ background: url("./images/j2t/one_checkout.png") no-repeat scroll 0 0 transparent;
29
+ padding: 0 20px 0;
30
+ }
31
+
32
+ ul.tabs a.j2t-socialconnect-module span, ul.tabs a.j2t-socialconnect-module:hover span {
33
+ background: url("./images/j2t/social_connect.png") no-repeat scroll 0 0 transparent;
34
+ padding: 0 20px 0;
35
+ }
36
+
37
+ ul.tabs a.j2t-producthold-module span, ul.tabs a.j2t-producthold-module:hover span {
38
+ background: url("./images/j2t/product_hold.png") no-repeat scroll 0 0 transparent;
39
+ padding: 0 20px 0;
40
+ }
41
+
42
+ ul.tabs a.j2t-giftwrap-module span, ul.tabs a.j2t-giftwrap-module:hover span {
43
+ background: url("./images/j2t/gift_wrap.png") no-repeat scroll 0 0 transparent;
44
+ padding: 0 20px 0;
45
+ }
46
+
47
+ ul.tabs a.j2t-giftvoucher-module span, ul.tabs a.j2t-giftvoucher-module:hover span {
48
+ background: url("./images/j2t/gift_voucher.png") no-repeat scroll 0 0 transparent;
49
+ padding: 0 20px 0;
50
+ }
51
+
52
+ ul.tabs a.j2t-ajaxcart-module, ul.tabs a.j2t-ajaxcart-module:hover,
53
+ ul.tabs a.j2t-rewardpoints-module, ul.tabs a.j2t-rewardpoints-module:hover,
54
+ ul.tabs a.j2t-autoadd-module, ul.tabs a.j2t-autoadd-module:hover,
55
+ ul.tabs a.j2t-onecheckout-module, ul.tabs a.j2t-onecheckout-module:hover,
56
+ ul.tabs a.j2t-socialconnect-module, ul.tabs a.j2t-socialconnect-module:hover,
57
+ ul.tabs a.j2t-producthold-module, ul.tabs a.j2t-producthold-module:hover,
58
+ ul.tabs a.j2t-giftwrap-module, ul.tabs a.j2t-giftwrap-module:hover,
59
+ ul.tabs a.j2t-giftvoucher-module, ul.tabs a.j2t-giftvoucher-module:hover
60
+ {
61
+ padding: 0.5em 0.5em 0.28em 1.5em;
62
+ border-bottom: dotted 1px #c0c0c0;
63
+ }
64
+
65
+ ul.tabs a.j2t-ajaxcart-module.active, ul.tabs a.j2t-ajaxcart-module.active:hover,
66
+ ul.tabs a.j2t-rewardpoints-module.active, ul.tabs a.j2t-rewardpoints-module.active:hover,
67
+ ul.tabs a.j2t-autoadd-module.active, ul.tabs a.j2t-autoadd-module.active:hover,
68
+ ul.tabs a.j2t-onecheckout-module.active, ul.tabs a.j2t-onecheckout-module.active:hover,
69
+ ul.tabs a.j2t-all-tab.active, ul.tabs a.j2t-all-tab.active:hover,
70
+ ul.tabs a.j2t-socialconnect-module.active, ul.tabs a.j2t-socialconnect-module.active:hover,
71
+ ul.tabs a.j2t-producthold-module.active, ul.tabs a.j2t-producthold-module.active:hover,
72
+ ul.tabs a.j2t-giftwrap-module.active, ul.tabs a.j2t-giftwrap-module.active:hover,
73
+ ul.tabs a.j2t-giftvoucher-module.active, ul.tabs a.j2t-giftvoucher-module.active:hover
74
+ {
75
+ background-color: #FFFFFF;
76
+ }
77
+
78
  ul.tabs a.j2t-all-tab, ul.tabs a.j2t-all-tab {border:none;}