Changeset 3264537
- Timestamp:
- 03/31/2025 03:03:16 PM (10 months ago)
- Location:
- softwear-for-woocommerce/trunk
- Files:
-
- 5 edited
-
readme.txt (modified) (2 diffs)
-
softwear-for-woocommerce.php (modified) (1 diff)
-
src/pages/settings-page.php (modified) (1 diff)
-
src/settings/initialize-settings.php (modified) (2 diffs)
-
src/webhooks/settings-webhook.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
softwear-for-woocommerce/trunk/readme.txt
r3263534 r3264537 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 1.4. 18 Version: 1.4. 17 Stable tag: 1.4.2 8 Version: 1.4.2 9 9 License: GNU General Public License v2.0 10 10 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 113 113 == Changelog == 114 114 115 = 1.4.2 31-03-2025 = 116 117 * Add – Introduced a new setting under "Other Settings" that allows users to enable or disable automatic synchronization. 118 115 119 = 1.4.1 28-03-2025 = 116 120 -
softwear-for-woocommerce/trunk/softwear-for-woocommerce.php
r3263534 r3264537 16 16 * Plugin Name: Softwear for WooCommerce 17 17 * Description: Connecting Softwear to sync all your products, orders and payments. 18 * Version: 1.4. 118 * Version: 1.4.2 19 19 * Requires at least: 6.3 20 20 * Requires PHP: 7.4 -
softwear-for-woocommerce/trunk/src/pages/settings-page.php
r3247020 r3264537 163 163 echo '<p class="softwearwc-additional-description"> 164 164 Kies of producten met meerdere kleuren moeten worden gesplitst in afzonderlijke producten, of dat ze als één product moeten worden geïmporteerd. 165 </p>'; 166 } 167 168 function softwearwc_field_auto_sync() { 169 // Fetch the current settings array from the database 170 $settings = get_option('softwearwc_settings_other', []); 171 172 // Get the specific value for 'auto_sync' 173 $selected_value = isset($settings['auto_sync']) ? $settings['auto_sync'] : 'false'; 174 175 // Define the dropdown options 176 $options = [ 177 '' => 'Selecteer een optie', 178 'true' => 'Automatisch alles synchroniseren', 179 'false' => 'Geen automatische synchronisatie', 180 ]; 181 182 // Render the dropdown 183 echo '<select id="softwearwc_auto_sync" name="softwearwc_settings_other[auto_sync]">'; 184 foreach ($options as $value => $label) { 185 echo '<option value="' . esc_attr($value) . '"' . ($value === '' ? ' hidden' : '') . selected($selected_value, $value, false) . '>' . esc_html($label) . '</option>'; 186 } 187 echo '</select>'; 188 189 // Additional description 190 echo '<p class="softwearwc-additional-description"> 191 Kies of alles automatisch moet worden gesynchroniseerd met Softwear, of dat je handmatig wilt synchroniseren. Er word elke 24 uur automatisch gesynchroniseerd. 165 192 </p>'; 166 193 } -
softwear-for-woocommerce/trunk/src/settings/initialize-settings.php
r3247020 r3264537 133 133 'softwearwc_section_other' 134 134 ); 135 136 add_settings_field( 137 'softwearwc_field_auto_sync', 138 'Automatic syncronization', 139 'softwearwc_field_auto_sync', 140 'softwearwc-settings-other', 141 'softwearwc_section_other' 142 ); 135 143 } 136 144 … … 185 193 softwearwc_validate_option($input, $options, $output, 'image_deletion'); 186 194 softwearwc_validate_option($input, $options, $output, 'product_color_split'); 195 softwearwc_validate_option($input, $options, $output, 'auto_sync'); 187 196 188 197 if ($options == $output) { -
softwear-for-woocommerce/trunk/src/webhooks/settings-webhook.php
r3247020 r3264537 97 97 'image_check' => $value['image_check'] ?? '', 98 98 'product_color_split' => $value['product_color_split'] ?? '', 99 'auto_sync' => $value['auto_sync'] ?? '', 99 100 ] 100 101 ]);
Note: See TracChangeset
for help on using the changeset viewer.