WPBakery Visual Composer: by Michael M - – 4.12.1 MaxMind GeoIP Database: ✔ Active Plugins (45)Ĭategories Images: by Muhammad Said El Zahlan – 2.5.3Ĭollapsing Categories: by Robert Felty – 2.0.8Ĭrazyegg-Heatmap-Tracking: by Crazyegg – 1.1Ĭubell Themes - Functionality: by Cubell – 3.2 Woocommerce_downloadable_product_permissions: ✔ Check order confirmation email download link - this will now be invalid as the file hash has changed.Update the download file to a new version with a different file name (e.g.Check order confirmation email download link. It is transparent unless someone uses the new filter. Would love to see this included in a future release so that there is option of modifying the default file hashing if necessary. $file_hash = apply_filters('woocommerce_downloadable_file_hash',md5( $file_url ), $post_id, $file_name ,$file_url, $i) To minimize the changes to core I updated line 1156 (wc 2.6.4) of class-wc-meta-box-product-data.php as follows: I have a code modification that works better for our business process where the file hash is left unchanged if we update the downloadable file (rather than deleting/adding a new one). However for our business when we update products it leads to a spike in customer support emails from people trying to (re)download their purchase from emails that predate the update (unless we keep the file path/name identical but this is clumsy and prevents us from versioning the file name). This generates a new file hash which updates the download permissions on existing orders and invalidates the download links in previously sent order confirmation emails. wp-content/uploads/woocommerce_uploads/2013/07/Coaching-Tools-and-Exercises-MEGAPack-v3.zip wp-content/uploads/woocommerce_uploads/2013/07/Coaching-Tools-and-Exercises-MEGAPack-v2.zip If the downloadable file for a product is updated and the filename changes e.g.:
0 Comments
Leave a Reply. |