Viewing 15 replies - 1 through 15 (of 20 total)
  • I’m having the same problem!

    Plugin Author Zorem

    (@zorem)

    How do you add tracking information in order?

    Thread Starter djboro88

    (@djboro88)

    I add the tracking information by editing the order.

    Please review the screenshots I have included

    Image1: https://ibb.co/k1jNCkj
    Image2: https://ibb.co/SRWf59n
    Image3: https://ibb.co/HddDfyz

    • This reply was modified 3 years, 10 months ago by djboro88.
    • This reply was modified 3 years, 10 months ago by djboro88.
    Thread Starter djboro88

    (@djboro88)

    The date is also wrongly displayed when the mail is sent to the client (image3).
    ______
    I have installed version 3.3.2 and it works correctly.
    The problem is in the new version of the plugin 3.4 (please review the changes in that version.)

    • This reply was modified 3 years, 10 months ago by djboro88.
    Plugin Author Zorem

    (@zorem)

    Hi @djboro88,

    We checked with the latest version of the plugin but we can’t replicate this issue. Which date format do you use for your website.
    To check the date format on your WordPress admin dashboard navigate to Settings > General and check the Date Format.

    Thanks

    Thread Starter djboro88

    (@djboro88)

    This format: j \d\e F \d\e Y

    I attach a screenshot.
    https://ibb.co/q7HXK4L

    Plugin Author Zorem

    (@zorem)

    I checked with this date format and I can’t replicate any issue with the date.

    Thread Starter djboro88

    (@djboro88)

    Another user also has the same problem @wikisaqui
    I have WP v6.0 with PHP 8.

    Some change that was made in the last update has caused this problem.
    In v3.3.2 it works fine, but in 3.4 it doesn’t.
    Something has been changed that is affecting the dates.

    My website is also in Spanish, could that be related to the problem?

    SOLUTION

    @djboro88 I was playing around and apparently if you introduce the date in the format DD-MM-YY it works fine.
    Example: For June 2 2022 you must introduce 02-06-22.

    I developed a simple jQuery code that handles this automatically with the plugin’s date input:

    add_action( 'admin_footer', function () { ?>
    <script>
    	jQuery(window).bind("load", function () {
    		// Order: Format shipping tracking date
    		var avtDatePicker = jQuery('#date_shipped');
    		function updateDateShipped () {
    			avtDatePicker.val(moment(avtDatePicker.val(), 'YYYY-MM-DD').format('DD-MM-YY'));
    		}
    		if (avtDatePicker) {
    			updateDateShipped();
    			avtDatePicker.on('change', updateDateShipped);
    		}
    	});
    </script>
    <?php });

    Just add this to your theme’s (or child theme’s) functions.php file or use the Code Snippet plugin.

    If your site doesn’t support jQuery let me know and I will provide you a pure JS alternative.

    • This reply was modified 3 years, 10 months ago by Wikisaqui.
    Thread Starter djboro88

    (@djboro88)

    I would like to keep the format of date, day, month in letters and full year.

    In any case, something must have changed that is affecting it, since I am now with version 3.3.2 and it works without problem, but it is updating to 3.4 and it gives the error.

    With the subject of the script that you have sent, the author @zorem of the plugin may have some idea of ​​how to keep it working, regardless of whether it is from one language or another.

    @djboro88 This fix won’t change the format in which the date is displayed across the platform (or by the tracking system). It will only change the input format.

    In other words, it only changes the format here:

    View post on imgur.com

    The format on the rest of the platform will remain untouched:

    View post on imgur.com

    However, if you don’t like this fix, an alternative would be to downgrade your version of the plugin using WP Rollback.

    Plugin Author Zorem

    (@zorem)

    I will check the old version(3.3.2) and the new version(3.4) and see the changes and try to replicate the issue in Spanish.

    Thread Starter djboro88

    (@djboro88)

    I have downgraded to 3.3.2.

    If the author does not give a better solution, I will have to accept the fix you propose.
    Thank you @wikisaqui

    Thread Starter djboro88

    (@djboro88)

    We are waiting, @zorem
    Thanks !

Viewing 15 replies - 1 through 15 (of 20 total)

The topic ‘ERROR DATE TRACKING’ is closed to new replies.