Changeset 2921995
- Timestamp:
- 06/05/2023 10:31:10 PM (3 years ago)
- Location:
- eshipper-commerce
- Files:
-
- 1 edited
- 33 copied
-
tags/2.15.1 (copied) (copied from eshipper-commerce/trunk)
-
tags/2.15.1/.editorconfig (copied) (copied from eshipper-commerce/trunk/.editorconfig)
-
tags/2.15.1/.gitignore (copied) (copied from eshipper-commerce/trunk/.gitignore)
-
tags/2.15.1/README.md (copied) (copied from eshipper-commerce/trunk/README.md)
-
tags/2.15.1/assets (copied) (copied from eshipper-commerce/trunk/assets)
-
tags/2.15.1/assets/eShipper.js (copied) (copied from eshipper-commerce/trunk/assets/eShipper.js)
-
tags/2.15.1/composer.json (copied) (copied from eshipper-commerce/trunk/composer.json)
-
tags/2.15.1/composer.lock (copied) (copied from eshipper-commerce/trunk/composer.lock)
-
tags/2.15.1/docs (copied) (copied from eshipper-commerce/trunk/docs)
-
tags/2.15.1/framework (copied) (copied from eshipper-commerce/trunk/framework)
-
tags/2.15.1/framework/db.php (copied) (copied from eshipper-commerce/trunk/framework/db.php)
-
tags/2.15.1/framework/lib/admin-settings.js (copied) (copied from eshipper-commerce/trunk/framework/lib/admin-settings.js)
-
tags/2.15.1/framework/lib/admin.css (copied) (copied from eshipper-commerce/trunk/framework/lib/admin.css)
-
tags/2.15.1/framework/lib/plugin_health.css (copied) (copied from eshipper-commerce/trunk/framework/lib/plugin_health.css)
-
tags/2.15.1/framework/plugin.php (copied) (copied from eshipper-commerce/trunk/framework/plugin.php) (4 diffs)
-
tags/2.15.1/framework/resources.php (copied) (copied from eshipper-commerce/trunk/framework/resources.php)
-
tags/2.15.1/framework/shippingmethod.php (copied) (copied from eshipper-commerce/trunk/framework/shippingmethod.php)
-
tags/2.15.1/img (copied) (copied from eshipper-commerce/trunk/img)
-
tags/2.15.1/img/eshipper-logo.webp (copied) (copied from eshipper-commerce/trunk/img/eshipper-logo.webp)
-
tags/2.15.1/img/preloader.gif (copied) (copied from eshipper-commerce/trunk/img/preloader.gif)
-
tags/2.15.1/languages (copied) (copied from eshipper-commerce/trunk/languages)
-
tags/2.15.1/lib (copied) (copied from eshipper-commerce/trunk/lib)
-
tags/2.15.1/license.txt (copied) (copied from eshipper-commerce/trunk/license.txt)
-
tags/2.15.1/models (copied) (copied from eshipper-commerce/trunk/models)
-
tags/2.15.1/plugin (copied) (copied from eshipper-commerce/trunk/plugin)
-
tags/2.15.1/plugin/PluginHealthHelper.php (copied) (copied from eshipper-commerce/trunk/plugin/PluginHealthHelper.php)
-
tags/2.15.1/plugin/curlHandler.php (copied) (copied from eshipper-commerce/trunk/plugin/curlHandler.php)
-
tags/2.15.1/plugin/eshipperCalls.php (copied) (copied from eshipper-commerce/trunk/plugin/eshipperCalls.php)
-
tags/2.15.1/plugin/pluginLifeCycle.php (copied) (copied from eshipper-commerce/trunk/plugin/pluginLifeCycle.php)
-
tags/2.15.1/readme.txt (copied) (copied from eshipper-commerce/trunk/readme.txt)
-
tags/2.15.1/views (copied) (copied from eshipper-commerce/trunk/views)
-
tags/2.15.1/views/login_thickbox.php (copied) (copied from eshipper-commerce/trunk/views/login_thickbox.php)
-
tags/2.15.1/woocommerce-eshipper.php (copied) (copied from eshipper-commerce/trunk/woocommerce-eshipper.php)
-
trunk/framework/plugin.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eshipper-commerce/tags/2.15.1/framework/plugin.php
r2921969 r2921995 50 50 51 51 // Load Localisation 52 add_action('plugins_loaded', [&$this, ' load_localisation']);52 add_action('plugins_loaded', [&$this, 'eshipper_upgrades']); 53 53 54 54 // Checkout order details … … 189 189 wp_enqueue_script('eshipper-require-postalcode', plugins_url('lib/require-postalcode.js', ESHIPPER_PLUGIN_FILE), ['jquery'], '1.0', true); 190 190 echo '<div id="calc_shipping_postcode_required" class="hidden woocommerce-info" style="display:none">' . __( 191 'Zip / Postal Code is required to calculate shipping',192 'woocommerce-eshipper'193 ) . '</div>';191 'Zip / Postal Code is required to calculate shipping', 192 'woocommerce-eshipper' 193 ) . '</div>'; 194 194 } 195 195 … … 228 228 require_once(ESHIPPER_PLUGIN_PATH . '/models/woocommerce_eshipper_update.php'); 229 229 // $update = new woocommerce_eshipper_update( '', ESHIPPER_PLUGIN_FILE, array('version' => ESHIPPER_VERSION, 'upgrade_url'=>'', 'product'=>'eshipper')); 230 } 231 } 232 233 public function eshipper_upgrades() 234 { 235 $this->load_localisation(); 236 237 // DB upgrade for version 2.15.1 238 $version = get_option('eshipper_version', '1.0'); 239 if (version_compare($version, ESHIPPER_VERSION_2_15, '<')) { 240 $db = new woocommerce_eshipper_db(); 241 // Setup / Run Update. 242 $db->updateDB(); 230 243 } 231 244 } … … 244 257 $db->setup(); 245 258 } 246 247 $version = get_option('eshipper_version', '1.0');248 if (version_compare($version, ESHIPPER_VERSION_2_15, '<')) {249 $db = new woocommerce_eshipper_db();250 // Setup / Run Update.251 $db->updateDB();252 }253 259 } 254 260 -
eshipper-commerce/trunk/framework/plugin.php
r2921969 r2921995 50 50 51 51 // Load Localisation 52 add_action('plugins_loaded', [&$this, ' load_localisation']);52 add_action('plugins_loaded', [&$this, 'eshipper_upgrades']); 53 53 54 54 // Checkout order details … … 189 189 wp_enqueue_script('eshipper-require-postalcode', plugins_url('lib/require-postalcode.js', ESHIPPER_PLUGIN_FILE), ['jquery'], '1.0', true); 190 190 echo '<div id="calc_shipping_postcode_required" class="hidden woocommerce-info" style="display:none">' . __( 191 'Zip / Postal Code is required to calculate shipping',192 'woocommerce-eshipper'193 ) . '</div>';191 'Zip / Postal Code is required to calculate shipping', 192 'woocommerce-eshipper' 193 ) . '</div>'; 194 194 } 195 195 … … 228 228 require_once(ESHIPPER_PLUGIN_PATH . '/models/woocommerce_eshipper_update.php'); 229 229 // $update = new woocommerce_eshipper_update( '', ESHIPPER_PLUGIN_FILE, array('version' => ESHIPPER_VERSION, 'upgrade_url'=>'', 'product'=>'eshipper')); 230 } 231 } 232 233 public function eshipper_upgrades() 234 { 235 $this->load_localisation(); 236 237 // DB upgrade for version 2.15.1 238 $version = get_option('eshipper_version', '1.0'); 239 if (version_compare($version, ESHIPPER_VERSION_2_15, '<')) { 240 $db = new woocommerce_eshipper_db(); 241 // Setup / Run Update. 242 $db->updateDB(); 230 243 } 231 244 } … … 244 257 $db->setup(); 245 258 } 246 247 $version = get_option('eshipper_version', '1.0');248 if (version_compare($version, ESHIPPER_VERSION_2_15, '<')) {249 $db = new woocommerce_eshipper_db();250 // Setup / Run Update.251 $db->updateDB();252 }253 259 } 254 260
Note: See TracChangeset
for help on using the changeset viewer.