Changeset 3429311
- Timestamp:
- 12/29/2025 10:09:46 PM (7 weeks ago)
- Location:
- pdf-forms-for-woocommerce/trunk
- Files:
-
- 3 edited
-
pdf-forms-for-woocommerce.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
src/integration/wc-placeholder-processor.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pdf-forms-for-woocommerce/trunk/pdf-forms-for-woocommerce.php
r3399234 r3429311 4 4 * Plugin URI: https://pdfformsfiller.org/ 5 5 * Description: Automatically fill PDF forms with WooCommerce orders and attach generated PDFs to email notifications and order downloads. 6 * Version: 1.1. 46 * Version: 1.1.5 7 7 * Requires at least: 5.4 8 8 * Requires PHP: 5.5 9 9 * Requires Plugins: woocommerce 10 10 * WC requires at least: 7.1.0 11 * WC tested up to: 10. 311 * WC tested up to: 10.4 12 12 * Author: Maximum.Software 13 13 * Author URI: https://maximum.software/ … … 27 27 class Pdf_Forms_For_WooCommerce 28 28 { 29 const VERSION = '1.1. 4';29 const VERSION = '1.1.5'; 30 30 const MIN_WC_VERSION = '7.1.0'; 31 const MAX_WC_VERSION = '10. 3.99';31 const MAX_WC_VERSION = '10.4.99'; 32 32 private static $BLACKLISTED_WC_VERSIONS = array(); 33 33 … … 934 934 throw new Exception( __( "Invalid order", 'pdf-forms-for-woocommerce' ) ); 935 935 936 // remove old downloadable files 937 $this->unset_downloadable_files( $order ); 938 936 939 $this->reset_order_settings( $order ); 937 940 } … … 971 974 $this->unset_downloadable_files( $order ); 972 975 973 // refilling is necessary only if PDFs are being saved in wp-uploads 976 // refilling is necessary only if PDFs are being saved in wp-uploads or there are downloadable files 974 977 $product_settings = $this->get_order_metadata( $order, 'product-settings' ); 975 978 if( is_array( $product_settings ) && ! empty( $product_settings ) ) … … 1002 1005 if( isset( $attachment['options'] ) 1003 1006 && is_array( $options = $attachment['options'] ) 1004 && isset( $options['save_directory'])1005 && $options['save_directory'] !== "")1007 && ( ( isset( $options['save_directory'] ) && $options['save_directory'] !== "" ) 1008 || ( isset( $options['download_id'] ) && $options['download_id'] !== "" ) ) ) 1006 1009 { 1007 1010 $this->fill_pdfs( $settings, $placeholder_processor ); -
pdf-forms-for-woocommerce/trunk/readme.txt
r3399234 r3429311 1 1 === PDF Forms Filler for WooCommerce === 2 Version: 1.1. 43 Stable tag: 1.1. 44 Tested up to: 6. 72 Version: 1.1.5 3 Stable tag: 1.1.5 4 Tested up to: 6.9 5 5 Tags: pdf, form, woocommerce, email, download 6 6 Plugin URI: https://pdfformsfiller.org/ … … 54 54 55 55 == Changelog == 56 57 = 1.1.5 = 58 59 * Release date: December 29, 2025 60 61 * Verified support for WC 10.4 62 * Other minor bug fixes and improvements 56 63 57 64 = 1.1.4 = -
pdf-forms-for-woocommerce/trunk/src/integration/wc-placeholder-processor.php
r3120969 r3429311 186 186 { 187 187 if( is_a( $this->email, 'WC_Email' ) ) 188 { 189 // ensure {order_billing_full_name} is set if we have an order and it's not already set 190 if( is_a( $this->order, 'WC_Order' ) && empty( $this->email->placeholders['{order_billing_full_name}'] ) ) 191 $this->email->placeholders['{order_billing_full_name}'] = $this->order->get_formatted_billing_full_name(); 192 188 193 // this will process {blogname} (hardcoded in format_string), 189 194 // {site_title}, {site_address}, {site_url} (hardcoded in class WC_Email) 190 195 // and tags from woocommerce_email_format_string, woocommerce_email_format_string_find and woocommerce_email_format_string_replace filters 191 196 return $this->email->format_string( $content ); 197 } 192 198 193 199 if( is_a( $this->order, 'WC_Order' ) ) … … 239 245 ); 240 246 241 $find = array_keys( $placeholders ); 242 $replace = array_values( $placeholders ); 243 244 $email->find = array_merge( (array) $email->find, $find ); 245 $email->replace = array_merge( (array) $email->replace, $replace ); 247 $email->placeholders = array_merge( (array) $email->placeholders, $placeholders ); 246 248 247 249 return $email->format_string( $content );
Note: See TracChangeset
for help on using the changeset viewer.