Plugin Directory

Changeset 3317990


Ignore:
Timestamp:
06/26/2025 05:59:43 AM (7 months ago)
Author:
platformlycom
Message:

Compatibility with WP 6.8

Location:
platformly-for-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • platformly-for-woocommerce/trunk/includes/functions.php

    r2788229 r3317990  
    11<?php
     2use Automattic\WooCommerce\Utilities\OrderUtil;
    23
    34if ( ! defined( 'ABSPATH' ) ) {
     
    308309    }
    309310}
     311/**
     312 * HPOS_enabled - flag for data from db, where hpos is enabled or not
     313 * @return bool
     314 */
     315function platformly_wc_hpos_enabled(){
     316    return class_exists( 'Automattic\WooCommerce\Utilities\OrderUtil' ) &&
     317           OrderUtil::custom_orders_table_usage_is_enabled();
     318}
  • platformly-for-woocommerce/trunk/platformly-for-woocommerce.php

    r3249460 r3317990  
    44 * Plugin Name: Platform.ly for WooCommerce
    55 * Description: Easily connect WooCommerce to your Platformly CRM, set up abandoned cart campaigns and access detailed customer reporting: lifetime value and more...
    6  * Version: 1.1.7
     6 * Version: 1.1.8
    77 * Author: Platform.ly
    88 * Author URI: https://www.platform.ly/
    99 *
    1010 * WC requires at least: 3.5.0
    11  * WC tested up to: 9.7.0
     11 * WC tested up to: 9.9.5
    1212 *
    1313 * License: GPL-2.0+
     
    2525     * @var string
    2626     */
    27     public $version = '1.1.7';
     27    public $version = '1.1.8';
    2828
    2929    /**
     
    512512        // if we passed in an order id, we update it here.
    513513        if ($order_id) {
    514             update_post_meta($order_id, $meta_key, $status);
     514            if(!platformly_wc_hpos_enabled()){
     515               update_post_meta($order_id, $meta_key, $status);
     516            } else {
     517                $order_c = wc_get_order($order_id);
     518                $order_c->update_meta_data($meta_key, $status);
     519                $order_c->save_meta_data();
     520            }
    515521        }
    516522
  • platformly-for-woocommerce/trunk/readme.txt

    r3249460 r3317990  
    44Tags: CRM, ecommerce, event tracking, abandoned cart, cart abandonment, sales reporting, platform.ly, platformly
    55Requires at least: 4.9.13
    6 Tested up to: 6.7
     6Tested up to: 6.8
    77Stable tag: trunk
    88Requires PHP: 5.6
     
    172172= 1.1.7 =
    173173* Bug fixes
     174
     175= 1.1.8 =
     176* Improvement: Compatibility with WP 6.8
Note: See TracChangeset for help on using the changeset viewer.