Changeset 3258660
- Timestamp:
- 03/19/2025 04:09:44 PM (11 months ago)
- Location:
- boxo-return
- Files:
-
- 8 edited
- 1 copied
-
tags/0.0.38 (copied) (copied from boxo-return/trunk)
-
tags/0.0.38/boxo-return.php (modified) (2 diffs)
-
tags/0.0.38/checkout/checkout.js (modified) (2 diffs)
-
tags/0.0.38/checkout/checkout.php (modified) (2 diffs)
-
tags/0.0.38/readme.txt (modified) (1 diff)
-
trunk/boxo-return.php (modified) (2 diffs)
-
trunk/checkout/checkout.js (modified) (2 diffs)
-
trunk/checkout/checkout.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
boxo-return/tags/0.0.38/boxo-return.php
r3258642 r3258660 2 2 /* 3 3 * Plugin Name: BOXO Return 4 * Version: 0.0.3 74 * Version: 0.0.38 5 5 * Description: Allows customers to select reusable packaging during checkout. 6 6 * Author: BOXO … … 19 19 exit; 20 20 } 21 22 const BOXO_RETURN_PLUGIN_VERSION = "0.0.38"; 21 23 22 24 include plugin_dir_path(__FILE__) . 'includes/constants.php'; -
boxo-return/tags/0.0.38/checkout/checkout.js
r3235409 r3258660 4 4 if (!(serverData instanceof HTMLDivElement)) { 5 5 throw new Error('[BOXO Return] Could not get server data.') 6 } 7 8 const boxoVersion = serverData.getAttribute('data-boxo-version') 9 if (!boxoVersion) { 10 throw new Error('[BOXO Return] Could not get Boxo version.') 6 11 } 7 12 … … 175 180 176 181 const init = async () => { 182 console.info('[BOXO Return] ' + boxoVersion) 177 183 // Must use jQuery for event handlers because propagation of certain events appears to be blocked. 178 184 jQuery(function ($) { -
boxo-return/tags/0.0.38/checkout/checkout.php
r3255218 r3258660 42 42 } 43 43 44 $boxo_version_safe = BOXO_RETURN_PLUGIN_VERSION; 44 45 $boxo_available_url_safe = esc_url(rest_url('boxo/available')); 45 46 $cart_products_safe = esc_attr(implode(',', array_map(fn($item) => $item['product_id'], WC()->cart->cart_contents))); … … 98 99 <div 99 100 id="boxo-data" 101 data-boxo-version="$boxo_version_safe" 100 102 data-boxo-available-url="$boxo_available_url_safe" 101 103 data-cart-products="$cart_products_safe" -
boxo-return/tags/0.0.38/readme.txt
r3258642 r3258660 4 4 Requires at least: 4.7 5 5 Tested up to: 6.5.3 6 Stable tag: 0.0.3 76 Stable tag: 0.0.38 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later -
boxo-return/trunk/boxo-return.php
r3258642 r3258660 2 2 /* 3 3 * Plugin Name: BOXO Return 4 * Version: 0.0.3 74 * Version: 0.0.38 5 5 * Description: Allows customers to select reusable packaging during checkout. 6 6 * Author: BOXO … … 19 19 exit; 20 20 } 21 22 const BOXO_RETURN_PLUGIN_VERSION = "0.0.38"; 21 23 22 24 include plugin_dir_path(__FILE__) . 'includes/constants.php'; -
boxo-return/trunk/checkout/checkout.js
r3235409 r3258660 4 4 if (!(serverData instanceof HTMLDivElement)) { 5 5 throw new Error('[BOXO Return] Could not get server data.') 6 } 7 8 const boxoVersion = serverData.getAttribute('data-boxo-version') 9 if (!boxoVersion) { 10 throw new Error('[BOXO Return] Could not get Boxo version.') 6 11 } 7 12 … … 175 180 176 181 const init = async () => { 182 console.info('[BOXO Return] ' + boxoVersion) 177 183 // Must use jQuery for event handlers because propagation of certain events appears to be blocked. 178 184 jQuery(function ($) { -
boxo-return/trunk/checkout/checkout.php
r3255218 r3258660 42 42 } 43 43 44 $boxo_version_safe = BOXO_RETURN_PLUGIN_VERSION; 44 45 $boxo_available_url_safe = esc_url(rest_url('boxo/available')); 45 46 $cart_products_safe = esc_attr(implode(',', array_map(fn($item) => $item['product_id'], WC()->cart->cart_contents))); … … 98 99 <div 99 100 id="boxo-data" 101 data-boxo-version="$boxo_version_safe" 100 102 data-boxo-available-url="$boxo_available_url_safe" 101 103 data-cart-products="$cart_products_safe" -
boxo-return/trunk/readme.txt
r3258642 r3258660 4 4 Requires at least: 4.7 5 5 Tested up to: 6.5.3 6 Stable tag: 0.0.3 76 Stable tag: 0.0.38 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.