Skip to content

Commit

Permalink
Update version 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRiera committed May 7, 2024
1 parent f24ce3c commit b51c46b
Show file tree
Hide file tree
Showing 12 changed files with 289 additions and 154 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
=== Estimated Delivery for WooCommerce ===
Contributors: DanielRiera
Donate link: https://www.paypal.com/donate/?hosted_button_id=EZ67DG78KMXWQ
Tags: estimated delivery, delivery woocommerce
Tags: estimated delivery, delivery woocommerce, shipping date
Requires at least: 4.3
Tested up to: 6.4.2
Tested up to: 6.5.3
Requires PHP: 5.0
Stable tag: 1.3.5
Stable tag: 1.4.0

== Description ==

Shows the estimated or guaranteed delivery date on each product, select the days on which deliveries are not made.

## 🎉 +1000 active intallations! 🎉
## 🎉 +2000 active intallations! 🎉

`[estimate_delivery]` shortcode available from 1.1.1 version.

Expand All @@ -25,9 +25,12 @@ You can add holidays dates with next format, comma separated:

XXXX/12/31,XXXX/01/01,2024/10/02

## Date Format
From 1.4.0 version you can change date format

Do you need more options?
## Support

Do you need more options or report a issue?
[Click here Github](https://github.com/DanielRiera/estimated-delivery-woocommerce/issues)

== Installation ==
Expand All @@ -43,6 +46,11 @@ If you need support open a new ticket on [Github](https://github.com/DanielRiera

== Changelog ==

= 1.4.0 =
* Format Dates
* Check compatibility with latest versions WordPress and WooCommerce
* Change banner and icon :)

= 1.3.5 =
* Compatibility with High-Performance order storage (COT)
* Add new option with Holidays dates, see description for more information
Expand Down
14 changes: 7 additions & 7 deletions estimated-delivery-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
* Description: Show estimated / guaranteed delivery, simple and easy
* Author: Daniel Riera
* Author URI: https://danielriera.net
* Version: 1.3.5
* Version: 1.4.0
* Text Domain: estimated-delivery-for-woocommerce
* Domain Path: /languages
* WC requires at least: 3.0
* WC tested up to: 8.3.1
* WC tested up to: 8.8.3
* Required WP: 5.0
* Tested WP: 6.4.2
* Tested WP: 6.3.2
*/
if(!defined('ABSPATH')) { exit; }

define('EDW_PATH', dirname(__FILE__).'/');
define('EDW_POSITION_SHOW', get_option('_edw_position', 'woocommerce_after_add_to_cart_button'));
define('EDW_USE_JS', get_option('_edw_cache', '0'));
define('EDW_Version', '1.3.5');
define('EDW_Version', '1.4.0');

require_once EDW_PATH . 'class.api.php';

Expand Down Expand Up @@ -470,13 +470,13 @@ function edw_show_message($productParam = false, $separed = false){
}else{
if($d && !$m && !$y) {
//00 - 00 MM, YYYY
$date = date_i18n("j ", strtotime($minDate)) . ' - ' . date_i18n("j F, Y", strtotime($maxDate));
$date = date_i18n(get_option('_edw_date_format_1_0', 'j'), strtotime($minDate)) . ' - ' . date_i18n(get_option('_edw_date_format_1_1', "j F, Y"), strtotime($maxDate));
}elseif($d && $m && !$y) {
// 00 MM - 00 MM, YYYY
$date = date_i18n("j F", strtotime($minDate)) . ' - ' . date_i18n("j F, Y", strtotime($maxDate));
$date = date_i18n(get_option('_edw_date_format_2_0', 'j F'), strtotime($minDate)) . ' - ' . date_i18n(get_option('_edw_date_format_2_1', "j F, Y"), strtotime($maxDate));
}else{
// 00 MM YYYY - 00 MM YYYY
$date = date_i18n("j F Y", strtotime($minDate)) . ' - ' . date_i18n("j F Y", strtotime($maxDate));
$date = date_i18n(get_option('_edw_date_format_3_0',"j F Y"), strtotime($minDate)) . ' - ' . date_i18n(get_option('_edw_date_format_3_1',"j F Y"), strtotime($maxDate));
}
}
}else{
Expand Down
Binary file modified languages/estimated-delivery-for-woocommerce-es_ES.mo
Binary file not shown.
Loading

0 comments on commit b51c46b

Please sign in to comment.