Gravity PDF - Version 4.3.2

Version Description

  • Bug: Reverse pricing issue bug fix in 4.3.1 (under some circumstances it cause the incorrect Unit Price to be displayed in product table)
  • Bug: Fix Unit Price currency issue in the product table when using the Gravity Forms Multi Currency plugin
  • Bug: Fix empty line-items in the Product table when using the Gravity Wiz E-Commerce add-on with conditional logic
Download this release

Release Info

Developer Blue Liquid Designs
Plugin Icon 128x128 Gravity PDF
Version 4.3.2
Comparing to
See all releases

Code changes from version 4.3.1 to 4.3.2

README.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://gravitypdf.com/donate-to-plugin/
5
  Tags: gravity, forms, pdf, automation, attachment, email
6
  Requires at least: 4.4
7
  Tested up to: 4.9
8
- Stable tag: 4.3.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl.txt
11
 
@@ -34,7 +34,7 @@ The plugin ships with four highly-customisable PDF templates perfectly suited fo
34
 
35
  = Requirements =
36
 
37
- Gravity PDF can be run on most shared web hosting without any issues. It requires **PHP 5.4+** (PHP 7.0+ recommended) and at least 64MB of WP Memory (128MB+ recommended). You'll also need to be running WordPress 4.2+ and have [Gravity Forms 1.9+](https://www.e-junkie.com/ecom/gb.php?cl=54585&c=ib&aff=235154) (affiliate link).
38
 
39
  If you aren't sure Gravity PDF will meet your needs (and haven't got a Gravity Forms license yet) you can [try out the software via our demo site](https://demo.gravitypdf.com).
40
 
@@ -85,6 +85,11 @@ Also, if you enjoy using the software [we'd love it if you could give us a revie
85
 
86
  == Changelog ==
87
 
 
 
 
 
 
88
  = 4.3.1 =
89
  * Bug: Restrict Gravity PDF JavaScript to the correct PDF pages (GH#693)
90
  * Bug: Fix PHP5.2 activation error (GH#697)
5
  Tags: gravity, forms, pdf, automation, attachment, email
6
  Requires at least: 4.4
7
  Tested up to: 4.9
8
+ Stable tag: 4.3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl.txt
11
 
34
 
35
  = Requirements =
36
 
37
+ Gravity PDF can be run on most shared web hosting without any issues. It requires **PHP 5.4+** (PHP 7.0+ recommended) and at least 64MB of WP Memory (128MB+ recommended). You'll also need to be running WordPress 4.2+ and have [Gravity Forms 1.9+](https://rocketgenius.pxf.io/c/1211356/445235/7938) (affiliate link).
38
 
39
  If you aren't sure Gravity PDF will meet your needs (and haven't got a Gravity Forms license yet) you can [try out the software via our demo site](https://demo.gravitypdf.com).
40
 
85
 
86
  == Changelog ==
87
 
88
+ = 4.3.2 =
89
+ * Bug: Reverse pricing issue bug fix in 4.3.1 (under some circumstances it cause the incorrect Unit Price to be displayed in product table)
90
+ * Bug: Fix Unit Price currency issue in the product table when using the Gravity Forms Multi Currency plugin
91
+ * Bug: Fix empty line-items in the Product table when using the Gravity Wiz E-Commerce add-on with conditional logic
92
+
93
  = 4.3.1 =
94
  * Bug: Restrict Gravity PDF JavaScript to the correct PDF pages (GH#693)
95
  * Bug: Fix PHP5.2 activation error (GH#697)
pdf.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Gravity PDF
4
- Version: 4.3.1
5
  Description: Automatically generate highly-customisable PDF documents using Gravity Forms.
6
  Author: Gravity PDF
7
  Author URI: https://gravitypdf.com
@@ -37,7 +37,7 @@ if ( ! defined( 'ABSPATH' ) ) {
37
  /*
38
  * Set base constants we'll use throughout the plugin
39
  */
40
- define( 'PDF_EXTENDED_VERSION', '4.3.1' ); /* the current plugin version */
41
  define( 'PDF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); /* plugin directory path */
42
  define( 'PDF_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); /* plugin directory url */
43
  define( 'PDF_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); /* the plugin basename */
1
  <?php
2
  /*
3
  Plugin Name: Gravity PDF
4
+ Version: 4.3.2
5
  Description: Automatically generate highly-customisable PDF documents using Gravity Forms.
6
  Author: Gravity PDF
7
  Author URI: https://gravitypdf.com
37
  /*
38
  * Set base constants we'll use throughout the plugin
39
  */
40
+ define( 'PDF_EXTENDED_VERSION', '4.3.2' ); /* the current plugin version */
41
  define( 'PDF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); /* plugin directory path */
42
  define( 'PDF_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); /* plugin directory url */
43
  define( 'PDF_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); /* the plugin basename */
src/helper/fields/Field_Products.php CHANGED
@@ -191,7 +191,7 @@ class Field_Products extends Helper_Abstract_Fields {
191
  <?php endif; ?>
192
  </td>
193
  <td class="textcenter"><?php echo $product['quantity']; ?></td>
194
- <td><?php echo $product['price']; ?></td>
195
  <td><?php echo $product['subtotal_formatted'] ?></td>
196
  </tr>
197
  <?php endforeach; ?>
@@ -291,6 +291,10 @@ class Field_Products extends Helper_Abstract_Fields {
291
 
292
  foreach ( $products['products'] as $id => $product ) {
293
 
 
 
 
 
294
  /* Get the raw pricing data */
295
  $product_raw_price = GFCommon::to_number( $product['price'] );
296
  $product_unit_price = $product_raw_price;
191
  <?php endif; ?>
192
  </td>
193
  <td class="textcenter"><?php echo $product['quantity']; ?></td>
194
+ <td><?php echo GFCommon::format_number( $price, 'currency', rgar( $this->entry, 'currency' ) ); ?></td>
195
  <td><?php echo $product['subtotal_formatted'] ?></td>
196
  </tr>
197
  <?php endforeach; ?>
291
 
292
  foreach ( $products['products'] as $id => $product ) {
293
 
294
+ if ( class_exists( 'GP_Ecommerce_Fields' ) && empty( $product['name'] ) ) {
295
+ continue;
296
+ }
297
+
298
  /* Get the raw pricing data */
299
  $product_raw_price = GFCommon::to_number( $product['price'] );
300
  $product_unit_price = $product_raw_price;
vendor/composer/installed.json CHANGED
@@ -76,7 +76,7 @@
76
  "suggest": {
77
  "ext-zlib": "Needed for compression of embedded resources, such as fonts"
78
  },
79
- "time": "2017-10-24T22:06:21+00:00",
80
  "type": "library",
81
  "installation-source": "dist",
82
  "autoload": {
76
  "suggest": {
77
  "ext-zlib": "Needed for compression of embedded resources, such as fonts"
78
  },
79
+ "time": "2017-12-21T21:34:55+00:00",
80
  "type": "library",
81
  "installation-source": "dist",
82
  "autoload": {