Plugin Directory

Changeset 3212333


Ignore:
Timestamp:
12/23/2024 10:43:30 PM (16 months ago)
Author:
echeckpointplugin
Message:

Added tags/2.0.1 directory and updated files in trunk

Location:
echeckpoint
Files:
29 added
4 edited

Legend:

Unmodified
Added
Removed
  • echeckpoint/trunk/README.md

    r3193406 r3212333  
    44Requires at least: 4.7
    55Tested up to: 6.7
    6 Stable tag: 2.0.0
     6Stable tag: 2.0.1
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    133133== Changelog ==
    134134
     135= 2.0.1 - 2024.12.23 =
     136* Updated post-order check to properly handle variant product IDs.
     137
    135138= 2.00 - 2024.11.14 =
    136139* Updated the plugin for compatibility with WooCommerce Block Checkout.
  • echeckpoint/trunk/ReleaseNotes.txt

    r3193406 r3212333  
     1= 2.0.1 - 2024.12.23 =
     2* Updated post-order check to properly handle variant product IDs.
     3
    14= 2.00 - 2024.11.14 =
    25* Updated the plugin for compatibility with WooCommerce Block Checkout.
  • echeckpoint/trunk/echeckpoint.php

    r3193406 r3212333  
    55 * Requires at least: 6.6
    66 * Requires PHP:      7.2
    7  * Version:           2.0.0
     7 * Version:           2.0.1
    88 * Author:          eCheckpoint
    99 * License:         GPL-2.0-or-later
  • echeckpoint/trunk/echeckpoint_post-order-check.php

    r3193406 r3212333  
    5858            foreach ($items as $item) {
    5959                $product_id = $item->get_product_id();
    60                 $product_exist = $product_id ? wc_get_product($product_id) : null;
     60                $variation_id = $item->get_variation_id();
     61                 // Determine if it's a variation
     62                $product_exist = $variation_id ? wc_get_product($variation_id) : wc_get_product($product_id);
    6163                $product_skus[] = $product_exist ? array('ID' => sanitize_text_field($product_exist->get_sku()), 'Name' => sanitize_text_field($product_exist->get_name())) : ' ';
    6264            }
Note: See TracChangeset for help on using the changeset viewer.