Plugin Directory

Changeset 2996245


Ignore:
Timestamp:
11/15/2023 09:21:11 AM (2 years ago)
Author:
oscomsupport
Message:

New version
Latest WP and WOO(HPOS) versions support
Bug fixes, Checkout page required box validation, Order Limit check

Location:
agreeme-checkboxes-for-woocommerce
Files:
29 added
8 edited

Legend:

Unmodified
Added
Removed
  • agreeme-checkboxes-for-woocommerce/trunk/agree-me-woocommerce.php

    r2916150 r2996245  
    44Plugin URI: https:///agreeme-checkbox-for-woocommerce/
    55Description: Add checkbox fields to WooCommerce pages.
    6 Version: 1.0.9
     6Version: 1.1.0
    77Author: Amin Y
    88Author URI: https://qcompsolutions.com
     
    1010Domain Path: /languages
    1111Copyright: © 2022 Qcompsolutions.com
    12 WC tested up to: 6.2.2
     12WC tested up to: 6.4.1
    1313License: GNU General Public License v3.0
    1414License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    3636define( 'AGRWC_NO',       __( 'No', 'agreeme-checkbox-for-woocommerce' ) );
    3737
     38//HPOS COMPATIBLE CODE
     39 add_action( 'before_woocommerce_init', function() {
     40    if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     41        \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
     42    }
     43} );
    3844
    3945
  • agreeme-checkboxes-for-woocommerce/trunk/inc/agrwc-functions.php

    r2775581 r2996245  
    33 * Agreeme Checkboxes for WooCommerce - Functions
    44 *
    5  * @version 1.0.2
     5 * @version 1.0.9
    66 * @since   1.0.0
    77 * @author  Amin Yasser.
    88 */
     9use Automattic\WooCommerce\Utilities\OrderUtil; //HPOS
    910
    1011if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
     
    1920     */
    2021    function agrwc_update_orderfields_data( $order_id, $fields_data ) {
     22        //HPOS
     23            if ( method_exists("OrderUtil","custom_orders_table_usage_is_enabled") &&  OrderUtil::custom_orders_table_usage_is_enabled() ) {
     24    // HPOS usage is enabled.
     25
     26    $order = wc_get_order( $order_id );
     27        $order->update_meta_data( '_' . AGR_WC_ID . '_data', $fields_data );
     28    $order->save();
     29    ///
     30            }else{
    2131        update_post_meta( $order_id, '_' . AGR_WC_ID . '_data', $fields_data );
     32            }
    2233    }
    2334}
  • agreeme-checkboxes-for-woocommerce/trunk/inc/classes/agrwc-compatibility.php

    r2884163 r2996245  
    77 * @author  Amin Yasser.
    88 */
     9use Automattic\WooCommerce\Utilities\OrderUtil; //HPOS
    910
    1011if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
     
    5758        }
    5859       
     60       
     61       
     62   
     63    /////AMIN WC3 HPOS   
     64    if ( OrderUtil::custom_orders_table_usage_is_enabled() ) {
     65    // HPOS usage is enabled.
     66
     67   
     68    $meta_data_obj =     $order->get_meta_data() ;
     69foreach( $order->get_meta_data() as $meta_data_obj ) {
     70    $meta_data_array = $meta_data_obj->get_data();
     71       $key   = $meta_data_array['key']; // The meta key
     72    $val = $meta_data_array['value']; // The meta value
     73   
     74    if(strstr($key,"argwc_"))
     75    {
     76        $keysarr=explode("_argwc_",$key);
     77       
     78        if(in_array(trim($keysarr[1]),$show_cbx))
     79        {
     80            $meta_key='Agree-'.$id;
     81$meta_value=$cbx->get_label()."-".$val_arr[$_SESSION['agrwc'][$id]];
     82    $order->{$meta_key} = $meta_value;
     83                   
     84       
     85        }
     86       
     87    }
     88   
     89}
     90
     91    /////AMIN WC3 HPOS   $meta_data_obj =    $order->get_meta_data() ;
     92} else {
     93    // Traditional CPT-based orders are in use.
     94       
     95       
    5996        $custom_field_value = get_post_meta( $order->id );
     97       
     98   
    6099        foreach($custom_field_value as $key=>$val)
    61100{
     
    79118
    80119   
    81                
     120}           
    82121                       
    83122       
     
    86125        return $order;
    87126    }
    88 
    89127    /**
    90128     * add_custom_fields_to_store_exporter.
  • agreeme-checkboxes-for-woocommerce/trunk/inc/classes/agrwc-frontend.php

    r2883996 r2996245  
    77 * @author  Amin Yasser.
    88 */
     9use Automattic\WooCommerce\Utilities\OrderUtil; //HPOS
     10
    911if (!defined('ABSPATH')) exit; // Exit if accessed directly
    1012if (!class_exists('agrwc_Frontend')):
     
    2325            $enabled = get_option('agrwc_enabled');
    2426            if (!$enabled || $enabled == "no") return false;
    25          
     27            if (session_status() == PHP_SESSION_NONE) {
     28   
     29       
     30   
     31        session_start();
     32    }
     33
    2634           
    2735            $this->checkoutpage_locations['after_customer_notes']='woocommerce_after_order_notes';
     
    4654            add_action('woocommerce_review_order_before_submit', array($this, 'addto_checkout_page'), PHP_INT_MAX);
    4755                                               
    48             add_action('woocommerce_thankyou', array($this, 'order_completed'), PHP_INT_MAX);
    49             add_action('woocommerce_checkout_update_order_meta', array($this, 'update_agree_checkbox_fields_order_meta'));
     56       add_action('woocommerce_thankyou', array($this, 'order_completed'), PHP_INT_MAX);
     57    add_action('woocommerce_checkout_update_order_meta', array($this, 'update_agree_checkbox_fields_order_meta'));
    5058            add_action('woocommerce_cart_calculate_fees', array($this, 'add_fees'), PHP_INT_MAX);
    5159            add_action('admin_enqueue_scripts', array($this, 'admin_enqueue'), PHP_INT_MAX);   
     
    5563            add_action('wp_footer', array($this, 'load_jsscripts'));
    5664            /// $this->load_jsscripts();
    57            
     65       
     66        add_action( 'woocommerce_admin_order_data_after_order_details', array( $this, 'add_agrwc_meta_admin_order' ), PHP_INT_MAX );
     67       
     68        add_action( 'woocommerce_email_after_order_table',                 array( $this, 'add_agrwc_meta_to_emails' ), PHP_INT_MAX );
     69   
    5870        }
    5971       
     
    8092         */
    8193        public function order_completed($order_id) {
    82                             if ( ! session_id() ) {
    83         session_start();
    84     }
     94   
    8595            if(isset($_SESSION['agrwc']))
    8696            {
     
    91101        public function agrwc_post() {
    92102            if (isset($_POST['action']) == 'agrwc_post') {
    93                                 if ( ! session_id() ) {
    94         session_start();
    95     }
     103   
    96104                $cbxs = AGRWC_CBX::get_cbxs();
    97105                //loop through all...
     
    114122            $cbxs = AGRWC_CBX::get_cbxs();
    115123           
    116                         if ( ! session_id() ) {
    117         session_start();
    118     }
     124   
    119125            //loop through all...
    120126            foreach ($cbxs as $id => $cbx) {
     
    127133                    //get the product id match if not return...
    128134                    $l_products = $cbx->get_limit_products();
     135                   
     136                              $l_cats = $cbx->get_limit_categories();
     137                             
     138                             
    129139                    if ($cbx->get_reqalert()) $alertmsg = $cbx->get_reqalert();
    130140                    //$l_products=  explode(",",$cbx->get_limit_products());
     
    138148                        }
    139149                    } else $match_product = true;
    140                     if (($match_product) && ($cbx->get_required() == 'yes') && (!isset($_REQUEST[$id]) && !isset($_POST[$id]))) {
     150                   
     151               
     152                       
     153                       
     154                   
     155                   
     156               
     157                   
     158                    if (($match_product) && ($cbx->get_required() == 'yes') && (!isset($_REQUEST[$id]) ) && isset($_REQUEST[$id."_"] )) {
    141159                   
    142160                       
     
    176194            //loop through all...
    177195           
    178                             if ( ! session_id() ) {
    179         session_start();
    180     }
     196
    181197            foreach ($cbxs as $id => $cbx) {
    182198                //get location of each...and proceed further if matches
     
    208224    $product_id = $line_item[ 'product_id' ];
    209225
    210                 if ( ! session_id() ) {
    211         session_start();
    212     }
     226
    213227            $passed = true;
    214228            //loop through all required applicable checkboxes...
     
    297311                    if ($match_product) {
    298312                        woocommerce_form_field($id, array('type' => 'checkbox', 'class' => array('form-row privacy', $reqclass), 'label_class' => array('woocommerce-form__label checkbox'), 'input_class' => array('woocommerce-form__input woocommerce-form__input-checkbox input-checkbox agrwc-cbx', $reqclass), 'required' => $req, 'label' => $cbx->get_label(),), $checked);
     313           
    299314                        $this->sdata[$id] = esc_js($cbx->get_reqalert());
     315                       
     316                       
    300317                    }
    301318                }
     
    306323            $cbxs = AGRWC_CBX::get_cbxs();
    307324            //loop through all the checkboxes...
    308                             if ( ! session_id() ) {
    309         session_start();
    310     }
     325           
     326
    311327            foreach ($cbxs as $id => $cbx) {
    312328                //get location of each...and proceed further if matches
     
    392408            $checkoutpage_locations['after_terms_conditions']='woocommerce_checkout_after_terms_conditions';
    393409            $checkoutpage_locations['before_submit']='woocommerce_review_order_before_submit';
    394                             if ( ! session_id() ) {
    395         session_start();
    396     }
     410   
    397411            $cbxs = AGRWC_CBX::get_cbxs();
    398412            //loop through all...
     
    400414                //get location of each...and proceed further if matches
    401415                $location_arr = $cbx->get_locations();
     416               
     417           
     418               
    402419                if (in_array(3, $location_arr)) //product page addtocart button
    403420                {
    404421                     $clocation = $cbx->get_clocation();
    405        
    406422           
    407423           
    408424                    if($checkoutpage_locations[$clocation]==$called_action_hook)
    409425                    {
     426                       
     427                   
    410428                    //get the product id match if not return...
    411429                    //get the product id match if not return...
     
    416434                    if (is_array($l_products) && count($l_products)) {
    417435                        $match_product = false;
     436                   
     437                       
    418438                        foreach (WC()->cart->get_cart() as $cart_item_key => $values) {
    419439                            if (in_array($values['product_id'], $l_products)) $match_product = true;
     
    423443                    $l_ordertotal = $cbx->get_limit_ordertotal();
    424444                    if ($l_ordertotal) {
     445                       
    425446                        $conditionx = $cbx->get_conditionx();
    426447                        $match_product = false;
    427448                        $ordertotal = WC()->cart->get_cart_contents_total();
     449                       
    428450                        switch ($conditionx) {
    429451                            case "<":
     
    431453                                break;
    432454                            case ">":
    433                                 if ($ordertotal < $l_ordertotal) $match_product = true;
     455                       
     456                                if ($ordertotal > $l_ordertotal) $match_product = true;
    434457                                break;
    435458                            }
    436459                        }
     460                       
     461               
     462                       
    437463                        if ($match_product) {
     464                                   
    438465                            if ($cbx->get_required() == 'yes') {
    439466                                $req = true;
     
    449476                       
    450477                            woocommerce_form_field($id, array('type' => 'checkbox', 'class' => array('form-row privacy', $reqclass), 'label_class' => array('woocommerce-form__label checkbox'), 'input_class' => array('woocommerce-form__input woocommerce-form__input-checkbox input-checkbox agrwc-cbx', $reqclass), 'required' => $req, 'label' => $cbx->get_label(),), $checked);
     478                                          woocommerce_form_field($id."_", array('type' => 'hidden'), '1');
    451479                            $this->sdata[$id] = esc_js($cbx->get_reqalert());
    452480                        }
     
    465493            $fees_to_add = array();
    466494           
    467                         if ( ! session_id() ) {
    468         session_start();
    469     }
     495
    470496            //get the checkboxes as array of cbx objects
    471497            $cbxs = AGRWC_CBX::get_cbxs();
     
    491517            }
    492518        }
     519       
     520       
     521        public function add_agrwc_meta_admin_order( $order ){
     522
     523
     524        $cbxs   = AGRWC_CBX::get_cbxs();
     525        $show_cbx=array();
     526        //loop through all...
     527       
     528        foreach($cbxs as $id=>$cbx)
     529        {
     530            $location_arr=$cbx->get_olocations();
     531           
     532        if(in_array(1,$location_arr)) //product page addtocart button
     533            {
     534$show_cbx[]=$id;
     535            }               
     536           
     537        }
     538   
     539?>
     540    <br class="clear" />
     541    <h4><?php echo __( 'Agree to', 'agreeme-checkbox-for-woocommerce' );?> </h4>
     542    <?php
     543   
     544         
     545         
     546    if ( method_exists('Automattic\WooCommerce\Utilities\OrderUtil','custom_orders_table_usage_is_enabled') && OrderUtil::custom_orders_table_usage_is_enabled() ) {
     547    // HPOS usage is enabled.
     548
     549     
     550    /////AMIN WC3 HPOS   $meta_data_obj =    $order->get_meta_data() ;
     551foreach( $order->get_meta_data() as $meta_data_obj ) {
     552   
     553   
     554    $meta_data_array = $meta_data_obj->get_data();
     555   
     556
     557       $key   = $meta_data_array['key']; // The meta key
     558    $value = $meta_data_array['value']; // The meta value
     559   
     560   
     561   
     562        if(strstr($key,"agrwc_"))
     563    {
     564       
     565           
     566   
     567        $keysarr=explode("_agrwc_",$key);
     568       
     569        if(!in_array($keysarr[1],$show_cbx))continue;
     570           $allowed_html = array('a' => array('href' => array(),), 'br' => array(),);
     571
     572    ?>
     573    <div class="custom_field">
     574        <p> <?php  echo esc_html($keysarr[1]) . ' : ' . wp_kses($value,$allowed_html) . '<br/>'; ?></p>
     575    </div>
     576
     577
     578<?php
     579    }
     580   
     581}
     582
     583} else {
     584
     585   
     586   
     587 $custom_field_value = get_post_meta( $order->get_id() );
     588
     589        foreach($custom_field_value as $key=>$val)
     590{
     591   
     592    if(strstr($key,"agrwc_"))
     593    {
     594        $keysarr=explode("_agrwc_",$key);
     595       
     596        if(!in_array($keysarr[1],$show_cbx))continue;
     597           $allowed_html = array('a' => array('href' => array(),), 'br' => array(),);
     598
     599    ?>
     600    <div class="custom_field">
     601        <p> <?php  echo esc_html($keysarr[1]) . ' : ' . wp_kses($val[0],$allowed_html) . '<br/>'; ?></p>
     602    </div>
     603
     604
     605<?php
     606    }
     607}
     608
     609}
     610
     611}
     612
     613public function add_agrwc_meta_to_emails( $order ){
     614   
     615   
     616            $cbxs   = AGRWC_CBX::get_cbxs();
     617        $show_cbx=array();
     618        //loop through all...
     619       
     620        foreach($cbxs as $id=>$cbx)
     621        {
     622            $location_arr=$cbx->get_olocations();
     623           
     624        //if(in_array(2,$location_arr)) //product page addtocart button
     625            //{
     626$show_cbx[]=$id;
     627            //}             
     628           
     629        }
     630
     631$op ='';
     632
     633
     634    /////AMIN WC3 HPOS   
     635    if ( method_exists('Automattic\WooCommerce\Utilities\OrderUtil',"custom_orders_table_usage_is_enabled") && OrderUtil::custom_orders_table_usage_is_enabled() ) {
     636    // HPOS usage is enabled.
     637
     638
     639   
     640    $meta_data_obj =     $order->get_meta_data() ;
     641foreach( $order->get_meta_data() as $meta_data_obj ) {
     642    $meta_data_array = $meta_data_obj->get_data();
     643       $key   = $meta_data_array['key']; // The meta key
     644    $val = $meta_data_array['value']; // The meta value
     645        if(strstr($key,"agrwc_"))
     646    {
     647        $keysarr=explode("_agrwc_",$key);
     648       
     649        if(!in_array($keysarr[1],$show_cbx))continue;
     650           $allowed_html = array('a' => array('href' => array(),), 'br' => array(),);
     651
     652  $op .=' <div class="custom_field"><p>'. wp_kses($val,$allowed_html) . '<br/></p> </div>';
     653
     654    }
     655   
     656}
     657
     658    /////AMIN WC3 HPOS   $meta_data_obj =    $order->get_meta_data() ;
     659} else {
     660    // Traditional CPT-based orders are in use.
     661   
     662     $custom_field_value = get_post_meta( $order->get_id() );
     663       
     664       
     665        foreach($custom_field_value as $key=>$val)
     666{
     667
     668    if(strstr($key,"agrwc_"))
     669    {
     670   
     671        $keysarr=explode("_agrwc_",$key);
     672       
     673        if(in_array(trim($keysarr[1]),$show_cbx))
     674        {
     675    $allowed_html = array('a' => array('href' => array(),), 'br' => array(),);
     676   
     677   $op .=' <div class="custom_field"><p>'. wp_kses($val[0],$allowed_html) . '<br/></p> </div>';
     678
     679
     680
     681        }
     682    }
     683}
     684}
     685
     686
     687       
     688
     689
     690
     691if($op) echo '<br class="clear" /><h4>'.__( 'Agree to:', 'agreeme-checkbox-for-woocommerce' ).' </h4>'.$op;
     692   
     693}
     694
     695
     696
    493697        /**
    494698         * update_custom_checkout_fields_order_meta.
     
    498702         * @todo
    499703         */
    500         function update_agree_checkbox_fields_order_meta($order_id) {
     704   public     function update_agree_checkbox_fields_order_meta($order_id) {
     705           
     706               remove_action('woocommerce_checkout_update_order_meta', array($this, 'update_agree_checkbox_fields_order_meta'));
     707               
     708               
    501709            $fields_data = array();
    502710            $val_arr[0] = AGRWC_NO;
     
    508716            //loop through all...
    509717            $ix = 0;
    510                             if ( ! session_id() ) {
    511         session_start();
    512     }
     718            $order_updated=0;
     719    $order = wc_get_order( $order_id );
    513720            foreach ($cbxs as $id => $cbx) {
     721               
    514722                $ix++;
    515723                if (isset($_SESSION['agrwc'][$id])) {
     724                   
     725       
     726
     727
     728   
     729            if ( method_exists('Automattic\WooCommerce\Utilities\OrderUtil',"custom_orders_table_usage_is_enabled") &&  OrderUtil::custom_orders_table_usage_is_enabled() ) {
     730    // HPOS usage is enabled.
     731
     732
     733
     734   
     735                        //HPOS
     736    $order_updated=1;
     737        $order->update_meta_data('_agrwc_' . $id, $cbx->get_label() . " - " . $val_arr[(int)$_SESSION['agrwc'][$id]] ); ///
     738
     739
     740                    }else
    516741                    update_post_meta($order_id, '_agrwc_' . $id, $cbx->get_label() . " - " . $val_arr[(int)$_SESSION['agrwc'][$id]]);
    517742                }
     743               
    518744            }
     745            if($order_updated){"Order saved"; $order->save();
     746            }
     747       
     748           
     749            add_action('woocommerce_checkout_update_order_meta', array($this, 'update_agree_checkbox_fields_order_meta'));
     750       
     751       
     752           
    519753        }
    520754    }
  • agreeme-checkboxes-for-woocommerce/trunk/inc/classes/agrwc-main.php

    r2775581 r2996245  
    2525            require_once( 'agrwc-cbxs.php' );
    2626            //if ( is_front_page() ){
    27             require_once( 'agrwc-frontend.php' );
     27        require_once( 'agrwc-frontend.php' );
    2828            //}
    2929        //  require_once( 'agrwc-scripts.php' );
    30             require_once( 'agrwc-orderdisplay.php' );
     30    //require_once( 'agrwc-orderdisplay.php' );
    3131       
    3232        }
  • agreeme-checkboxes-for-woocommerce/trunk/inc/classes/agrwc-orderdisplay.php

    r2835845 r2996245  
    2222    function __construct() {
    2323       
    24         add_action( 'woocommerce_admin_order_data_after_order_details', array( $this, 'add_agrwc_meta_admin_order' ), PHP_INT_MAX );
     24    ///add_action( 'woocommerce_admin_order_data_after_order_details', array( $this, 'add_agrwc_meta_admin_order' ), PHP_INT_MAX );
    2525       
    26         add_action( 'woocommerce_email_after_order_table',                 array( $this, 'add_agrwc_meta_to_emails' ), PHP_INT_MAX, 2 );
    27         if ( 'yes' === agrwc_get_option( 'add_to_order_received', 'yes' ) ) {
    28             ///add_action( 'woocommerce_order_details_after_order_table',     array( $this, 'add_custom_fields_to_view_order_and_thankyou_pages' ), PHP_INT_MAX );
    29         }
     26        ///add_action( 'woocommerce_email_after_order_table',                 array( $this, 'add_agrwc_meta_to_emails' ), PHP_INT_MAX );
     27   
    3028    }
    3129
    3230
    3331
    34 function add_agrwc_meta_admin_order( $order ){
    3532
    36 
    37         $cbxs   = AGRWC_CBX::get_cbxs();
    38         $show_cbx=array();
    39         //loop through all...
    40        
    41         foreach($cbxs as $id=>$cbx)
    42         {
    43             $location_arr=$cbx->get_olocations();
    44            
    45         if(in_array(1,$location_arr)) //product page addtocart button
    46             {
    47 $show_cbx[]=$id;
    48             }               
    49            
    50         }
    51    
    52 ?>
    53     <br class="clear" />
    54     <h4><?php echo __( 'Agree to', 'agreeme-checkbox-for-woocommerce' );?> </h4>
    55     <?php
    56         /*
    57          * get all the meta data values we need
    58          */
    59         $custom_field_value = get_post_meta( $order->get_id() );
    60    
    61         foreach($custom_field_value as $key=>$val)
    62 {
    63    
    64     if(strstr($key,"agrwc_"))
    65     {
    66         $keysarr=explode("_agrwc_",$key);
    67        
    68         if(!in_array($keysarr[1],$show_cbx))continue;
    69            $allowed_html = array('a' => array('href' => array(),), 'br' => array(),);
    70 
    71     ?>
    72     <div class="custom_field">
    73         <p> <?php  echo esc_html($keysarr[1]) . ' : ' . wp_kses($val[0],$allowed_html) . '<br/>'; ?></p>
    74     </div>
    75 
    76 
    77 <?php
    78     }
    79 }
    80 }
    81 
    82 function add_agrwc_meta_to_emails( $order ){
    83    
    84    
    85             $cbxs   = AGRWC_CBX::get_cbxs();
    86         $show_cbx=array();
    87         //loop through all...
    88        
    89         foreach($cbxs as $id=>$cbx)
    90         {
    91             $location_arr=$cbx->get_olocations();
    92            
    93         //if(in_array(2,$location_arr)) //product page addtocart button
    94             //{
    95 $show_cbx[]=$id;
    96             //}             
    97            
    98         }
    99 
    100 $op ='';
    101 
    102         /*
    103          * get all the meta data values we need
    104          */
    105         $custom_field_value = get_post_meta( $order->get_id() );
    106        
    107    
    108         foreach($custom_field_value as $key=>$val)
    109 {
    110 
    111     if(strstr($key,"agrwc_"))
    112     {
    113    
    114         $keysarr=explode("_agrwc_",$key);
    115        
    116         if(in_array(trim($keysarr[1]),$show_cbx))
    117         {
    118     $allowed_html = array('a' => array('href' => array(),), 'br' => array(),);
    119    
    120    $op .=' <div class="custom_field"><p>'. wp_kses($val[0],$allowed_html) . '<br/></p> </div>';
    121 
    122 
    123 
    124         }
    125     }
    126 }
    127 
    128 
    129 if($op) echo '<br class="clear" /><h4>'.__( 'Agree to:', 'agreeme-checkbox-for-woocommerce' ).' </h4>'.$op;
    130  
    131 }
    13233
    13334
     
    14041     * @since   1.0.0
    14142     */
    142     function get_order_id( $_order ) {
     43public  function get_order_id( $_order ) {
    14344        if ( ! $_order || ! is_object( $_order ) ) {
    14445            return 0;
  • agreeme-checkboxes-for-woocommerce/trunk/inc/classes/agrwc-thirdparty.php

    r2775581 r2996245  
    2323    function __construct() {
    2424        // "WooCommerce – Store Exporter" plugin - https://wordpress.org/plugins/woocommerce-exporter/
    25         add_filter( 'woo_ce_order_fields', array( $this, 'add_custom_fields_to_store_exporter' ) );
    26         add_filter( 'woo_ce_order',        array( $this, 'add_custom_fields_to_store_exporter_order' ), PHP_INT_MAX, 2 );
     25        //add_filter( 'woo_ce_order_fields', array( $this, 'add_custom_fields_to_store_exporter' ) );
     26        //add_filter( 'woo_ce_order',        array( $this, 'add_custom_fields_to_store_exporter_order' ), PHP_INT_MAX, 2 );
    2727    }
    2828
  • agreeme-checkboxes-for-woocommerce/trunk/readme.txt

    r2916150 r2996245  
    33Tags: woocommerce, checkout, woo commerce
    44Requires at least: 5.0
    5 Tested up to: 6.2.2
    6 Stable tag: 1.0.9
     5Tested up to: 6.4.1
     6Stable tag: 1.1.0
    77License: GNU General Public License v3.0
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2626* Required Field to be proceed further.
    2727* Optionally add Custom fee to the order total if customer agrees.
    28 * Store agreement details as Order meta and display those in admin Order details page and order confirmation emails.
     28* Store agreement details as Order meta and display those in admin Order details page and order confirmation emails(HPOS Support).
    2929
    3030
Note: See TracChangeset for help on using the changeset viewer.