Changeset 3297270
- Timestamp:
- 05/20/2025 10:52:49 AM (10 months ago)
- Location:
- product-purchase-notifications/trunk
- Files:
-
- 1 deleted
- 3 edited
-
Product-Purchase-Notifications.php (deleted)
-
product-purchase-notifications.php (modified) (2 diffs)
-
public/js/script.js (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
product-purchase-notifications/trunk/product-purchase-notifications.php
r3291824 r3297270 4 4 * 5 5 * Plugin Name: Product Purchase Notifications 6 * Version: 1.1 6 * Version: 1.1.2 7 7 * Description: Generate Notifications for latest order Placed on the site 8 8 * Author: Bitcraftx … … 40 40 { 41 41 private $bitcx_ppn_notifyMe_nonce; 42 private $plugin_version = '1.1 ';42 private $plugin_version = '1.1.2'; 43 43 /** 44 44 * constructor -
product-purchase-notifications/trunk/public/js/script.js
r3291824 r3297270 50 50 result = ''; 51 51 if (document.hasFocus) { 52 setTimeout(bitcx_ppn_Notify_me.generatepopup, bitcx_ppn_Notify_me.showNextIn_ms);52 setTimeout(bitcx_ppn_Notify_me.generatepopup, bitcx_ppn_Notify_me.showNextIn_ms); 53 53 } 54 54 } … … 84 84 }, 85 85 dynamicHtml: function (record) { 86 if (record.buyer) { 87 var buyerName = record.buyer.charAt(0).toUpperCase() + record.buyer.slice(1); 88 } else { 89 buyerName = "SomeOne"; 86 let buyerName = "SomeOne"; 87 88 if (record.buyer && record.notify_showOrHideName == 1) { 89 buyerName = record.buyer.charAt(0).toUpperCase() + record.buyer.slice(1); 90 } else if (!record.notify_showOrHideName) { 91 buyerName = ""; // hide the buyer name 90 92 } 91 93 var bannerElement = document.querySelector(".bitcx-ppn-notification-banner"); -
product-purchase-notifications/trunk/readme.txt
r3291824 r3297270 5 5 Requires at least: 6.0 6 6 Tested up to: 6.8 7 Stable tag: 1.1 7 Stable tag: 1.1.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 54 54 55 55 == Changelog == 56 = 1.1.2 = 57 * Fix Buyer name hide and show issue. 56 58 57 59 = 1.1 =
Note: See TracChangeset
for help on using the changeset viewer.