Booster for WooCommerce - Version 1.1.6

Version Description

  • 11/08/2014 =
  • Fix - PDF Invoices - Bug with subtotal calculation (discounts were not included), fixed.
Download this release

Release Info

Developer algoritmika
Plugin Icon 128x128 Booster for WooCommerce
Version 1.1.6
Comparing to
See all releases

Code changes from version 1.1.5 to 1.1.6

includes/class-wcj-pdf-invoices.php CHANGED
@@ -59,7 +59,7 @@ class WCJ_PDF_Invoices {
59
  function add_custom_css() {
60
 
61
  echo '<style> a.button.tips.view.pdf_invoice:after { content: "\e028" !important; } </style>';
62
- echo '<style> a.button.tips.view.save_pdf_invoice:after { content: "\e028" !important; } </style>';
63
  }
64
 
65
  /**
@@ -242,7 +242,7 @@ class WCJ_PDF_Invoices {
242
 
243
  // SUBTOTAL
244
  //$html .= '<tr><td colspan="3"></td><td style="border: 1px solid #F0F0F0;">' . get_option( 'wcj_pdf_invoices_order_subtotal_text' ) . '</td><td style="border: 1px solid #F0F0F0;">' . $the_order->get_subtotal_to_display( false, 'excl' ) . '</td></tr>';
245
- $subtotal = wc_price( ( $the_order->get_total() - $the_order->get_total_shipping() - $the_order->get_total_tax() ), array( 'currency' => $the_order->get_order_currency() ) ); //$the_order->get_total_discount() $the_order->get_total_shipping()
246
  $html .= '<tr><td colspan="3"></td><td style="border: 1px solid #F0F0F0;">' . get_option( 'wcj_pdf_invoices_order_subtotal_text' ) . '</td><td style="border: 1px solid #F0F0F0;">' . $subtotal . '</td></tr>';
247
 
248
  // SHIPPING
@@ -454,7 +454,7 @@ class WCJ_PDF_Invoices {
454
 
455
  array(
456
  'title' => __( 'Order Subtotal Text', 'woocommerce-jetpack' ),
457
- 'desc_tip' => __( 'Order Subtotal text', 'woocommerce-jetpack' ),
458
  'id' => 'wcj_pdf_invoices_order_subtotal_text',
459
  'default' => __( 'Order Subtotal', 'woocommerce-jetpack' ),
460
  'type' => 'text',
59
  function add_custom_css() {
60
 
61
  echo '<style> a.button.tips.view.pdf_invoice:after { content: "\e028" !important; } </style>';
62
+ //echo '<style> a.button.tips.view.save_pdf_invoice:after { content: "\e028" !important; } </style>';
63
  }
64
 
65
  /**
242
 
243
  // SUBTOTAL
244
  //$html .= '<tr><td colspan="3"></td><td style="border: 1px solid #F0F0F0;">' . get_option( 'wcj_pdf_invoices_order_subtotal_text' ) . '</td><td style="border: 1px solid #F0F0F0;">' . $the_order->get_subtotal_to_display( false, 'excl' ) . '</td></tr>';
245
+ $subtotal = wc_price( ( $the_order->get_total() - $the_order->get_total_tax() - $the_order->get_total_shipping() - $the_order->get_total_discount() ), array( 'currency' => $the_order->get_order_currency() ) ); //$the_order->get_total_discount() $the_order->get_total_shipping()
246
  $html .= '<tr><td colspan="3"></td><td style="border: 1px solid #F0F0F0;">' . get_option( 'wcj_pdf_invoices_order_subtotal_text' ) . '</td><td style="border: 1px solid #F0F0F0;">' . $subtotal . '</td></tr>';
247
 
248
  // SHIPPING
454
 
455
  array(
456
  'title' => __( 'Order Subtotal Text', 'woocommerce-jetpack' ),
457
+ 'desc_tip' => __( 'Order Subtotal = Total - Taxes - Shipping - Discounts', 'woocommerce-jetpack' ),
458
  'id' => 'wcj_pdf_invoices_order_subtotal_text',
459
  'default' => __( 'Order Subtotal', 'woocommerce-jetpack' ),
460
  'type' => 'text',
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://algoritmika.com/donate/
4
  Tags: woocommerce,woocommerce jetpack,custom price labels,call for price,currency symbol,remove sorting,remove old product slugs,add to cart text,order number,sequential order numbering,pdf invoice,pdf invoices,already in cart,empty cart,redirect to checkout,minimum order amount,customize checkout fields,checkout fields,email,customize product tabs,product tabs,related products number,empty cart,redirect add to cart,redirect to checkout,product already in cart,custom payment gateway,payment gateway icon
5
  Requires at least: 3.9.1
6
  Tested up to: 3.9.2
7
- Stable tag: 1.1.5
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -57,6 +57,9 @@ To unlock all WooCommerce Jetpack features, please install additional <a href="h
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 1.1.5 - 11/08/2014 =
61
  * Dev - PDF Invoices - "Save as..." disabled.
62
  * Feature Upgraded - PDF Invoices - New fields added: line total excluding tax, subtotal, shipping, discount, taxes.
4
  Tags: woocommerce,woocommerce jetpack,custom price labels,call for price,currency symbol,remove sorting,remove old product slugs,add to cart text,order number,sequential order numbering,pdf invoice,pdf invoices,already in cart,empty cart,redirect to checkout,minimum order amount,customize checkout fields,checkout fields,email,customize product tabs,product tabs,related products number,empty cart,redirect add to cart,redirect to checkout,product already in cart,custom payment gateway,payment gateway icon
5
  Requires at least: 3.9.1
6
  Tested up to: 3.9.2
7
+ Stable tag: 1.1.6
8
  License: GNU General Public License v3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.1.6 - 11/08/2014 =
61
+ * Fix - PDF Invoices - Bug with subtotal calculation (discounts were not included), fixed.
62
+
63
  = 1.1.5 - 11/08/2014 =
64
  * Dev - PDF Invoices - "Save as..." disabled.
65
  * Feature Upgraded - PDF Invoices - New fields added: line total excluding tax, subtotal, shipping, discount, taxes.
woocommerce-jetpack.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WooCommerce Jetpack
4
  Plugin URI: http://woojetpack.com
5
  Description: Supercharge your WooCommerce site with these awesome powerful features.
6
- Version: 1.1.5
7
  Author: Algoritmika Ltd
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.
3
  Plugin Name: WooCommerce Jetpack
4
  Plugin URI: http://woojetpack.com
5
  Description: Supercharge your WooCommerce site with these awesome powerful features.
6
+ Version: 1.1.6
7
  Author: Algoritmika Ltd
8
  Author URI: http://www.algoritmika.com
9
  Copyright: © 2014 Algoritmika Ltd.