Plugin Directory

Changeset 2849950


Ignore:
Timestamp:
01/17/2023 05:32:34 PM (3 years ago)
Author:
shadim
Message:

tagging v1.3.2

Location:
faire-for-woocommerce/tags/1.3.2
Files:
1 deleted
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • faire-for-woocommerce/tags/1.3.2/faire-for-woocommerce.php

    r2838583 r2849950  
    55 * Author: Faire
    66 * Author URI: https://faire.com/
    7  * Version: 1.3.1
     7 * Version: 1.3.2
    88 *
    99 * This program is free software: you can redistribute it and/or modify
     
    2929}
    3030
    31 const VERSION = '1.3.1';
     31const VERSION = '1.3.2';
    3232
    3333if ( ! defined( 'FAIRE_WC_PLUGIN_FILE' ) ) {
  • faire-for-woocommerce/tags/1.3.2/src/sync/class-sync-product.php

    r2838583 r2849950  
    9090        add_action( 'before_delete_post', array( $this, 'on_delete_post_maybe_product' ), 10, 1 );
    9191        add_action( 'wp_trash_post', array( $this, 'on_delete_post_maybe_product' ), 10, 1 );
     92    add_filter( 'woocommerce_duplicate_product_exclude_meta', array( $this, 'duplicate_exclude_meta' ), 10, 2 );
    9293
    9394        // Adds custom  meta-boxes.
     
    24832484    return substr(bin2hex($bytes), 0, $len);
    24842485  }
     2486
     2487  /**
     2488     * Exclude faire meta keys when WC duplicating product
     2489     *
     2490     * @param array $exclude_meta Meta keys to exclude.
     2491   * @param array $existing_meta_keys Existing meta keys on product.
     2492     *
     2493     * @return array
     2494     */
     2495  public function duplicate_exclude_meta( $exclude_meta, $existing_meta_keys ) {
     2496    $exclude_meta[] = $this->meta_faire_product_id;
     2497    $exclude_meta[] = $this->meta_faire_variant_id;
     2498    $exclude_meta[] = self::META_FAIRE_PRODUCT_SYNC_RESULT;
     2499    $exclude_meta[] = '_faire_product_linking_error';
     2500    $exclude_meta[] = '_faire_product_linking_error_faire_id';
     2501    $exclude_meta[] = '_faire_product_unmatched_variants';
     2502    return $exclude_meta;
     2503  }
     2504
    24852505}
  • faire-for-woocommerce/tags/1.3.2/src/woocommerce/class-order.php

    r2838583 r2849950  
    273273     * @param object|null $item The order item.
    274274     *
    275      * @return float
    276      */
    277     private static function get_order_item_price( ?object $item ): float {
     275     * @return int The item price.
     276     */
     277    private static function get_order_item_price( ?object $item ): int {
    278278        // Field price_cents is null if the brand’s shop currency
    279279        //is not set to USD.
Note: See TracChangeset for help on using the changeset viewer.