Changeset 2849950
- Timestamp:
- 01/17/2023 05:32:34 PM (3 years ago)
- Location:
- faire-for-woocommerce/tags/1.3.2
- Files:
-
- 1 deleted
- 3 edited
- 1 copied
-
. (copied) (copied from faire-for-woocommerce/tags/1.3.1)
-
faire-for-woocommerce.php (modified) (2 diffs)
-
readme.txt (deleted)
-
src/sync/class-sync-product.php (modified) (2 diffs)
-
src/woocommerce/class-order.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
faire-for-woocommerce/tags/1.3.2/faire-for-woocommerce.php
r2838583 r2849950 5 5 * Author: Faire 6 6 * Author URI: https://faire.com/ 7 * Version: 1.3. 17 * Version: 1.3.2 8 8 * 9 9 * This program is free software: you can redistribute it and/or modify … … 29 29 } 30 30 31 const VERSION = '1.3. 1';31 const VERSION = '1.3.2'; 32 32 33 33 if ( ! defined( 'FAIRE_WC_PLUGIN_FILE' ) ) { -
faire-for-woocommerce/tags/1.3.2/src/sync/class-sync-product.php
r2838583 r2849950 90 90 add_action( 'before_delete_post', array( $this, 'on_delete_post_maybe_product' ), 10, 1 ); 91 91 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 ); 92 93 93 94 // Adds custom meta-boxes. … … 2483 2484 return substr(bin2hex($bytes), 0, $len); 2484 2485 } 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 2485 2505 } -
faire-for-woocommerce/tags/1.3.2/src/woocommerce/class-order.php
r2838583 r2849950 273 273 * @param object|null $item The order item. 274 274 * 275 * @return float276 */ 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 { 278 278 // Field price_cents is null if the brand’s shop currency 279 279 //is not set to USD.
Note: See TracChangeset
for help on using the changeset viewer.