Changeset 3375013
- Timestamp:
- 10/08/2025 11:06:11 AM (4 months ago)
- Location:
- philia-integration
- Files:
-
- 31 added
- 1 deleted
- 3 edited
-
tags/1.9.1.1/readme.txt (deleted)
-
tags/1.9.1.2 (added)
-
tags/1.9.1.2/assets (added)
-
tags/1.9.1.2/assets/philia-api-settings.js (added)
-
tags/1.9.1.2/assets/philia-api-sync.js (added)
-
tags/1.9.1.2/assets/philia-cashier-fields.js (added)
-
tags/1.9.1.2/includes (added)
-
tags/1.9.1.2/includes/cashier (added)
-
tags/1.9.1.2/includes/cashier/class-cashier-fields.php (added)
-
tags/1.9.1.2/includes/cashier/lib (added)
-
tags/1.9.1.2/includes/cashier/lib/SimpleXLSX.php (added)
-
tags/1.9.1.2/includes/cashier/lib/SimpleXLSXEx.php (added)
-
tags/1.9.1.2/includes/cashier/rest-routes (added)
-
tags/1.9.1.2/includes/cashier/rest-routes/class-cashier-route.php (added)
-
tags/1.9.1.2/includes/cashier/rest-routes/class-coupon-route.php (added)
-
tags/1.9.1.2/includes/cashier/rest-routes/class-customer-route.php (added)
-
tags/1.9.1.2/includes/cashier/rest-routes/class-invoice-route.php (added)
-
tags/1.9.1.2/includes/cashier/rest-routes/class-product-category-route.php (added)
-
tags/1.9.1.2/includes/cashier/rest-routes/class-product-route.php (added)
-
tags/1.9.1.2/includes/cashier/rest-routes/class-report-route.php (added)
-
tags/1.9.1.2/includes/cashier/rest-routes/class-reward-route.php (added)
-
tags/1.9.1.2/includes/class-api-log.php (added)
-
tags/1.9.1.2/includes/class-api-settings.php (added)
-
tags/1.9.1.2/includes/class-core-api.php (added)
-
tags/1.9.1.2/includes/class-login-redirect.php (added)
-
tags/1.9.1.2/includes/class-philia-wallet.php (added)
-
tags/1.9.1.2/includes/class-webhook-sender.php (added)
-
tags/1.9.1.2/includes/templates (added)
-
tags/1.9.1.2/includes/templates/wc-endpoint-wallet.php (added)
-
tags/1.9.1.2/includes/templates/woo-wallet-partial-payment.php (added)
-
tags/1.9.1.2/philia-integration.php (added)
-
tags/1.9.1.2/readme.txt (added)
-
trunk/includes/cashier/class-cashier-fields.php (modified) (3 diffs)
-
trunk/philia-integration.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
philia-integration/trunk/includes/cashier/class-cashier-fields.php
r3373692 r3375013 554 554 $cashier_settings = get_option('philia_cashier_fields'); 555 555 $shop_type = $cashier_settings['shop_type'] ?? 'single-shop'; 556 if( $shop_type != 'multi-inventory' ) { 557 // skip if shop type equal multi-inventory 558 return; 559 } 560 561 // Case 1: Direct product is pending 562 if ( $product && $product->get_status() === 'pending' ) { 563 return true; 564 } 556 if( $shop_type == 'multi-inventory' ) { 557 // Case 1: Direct product is pending 558 if ( $product && $product->get_status() === 'pending' ) { 559 return true; 560 } 561 } 562 565 563 return $purchasable; 566 564 } … … 577 575 $cashier_settings = get_option('philia_cashier_fields'); 578 576 $shop_type = $cashier_settings['shop_type'] ?? 'single-shop'; 579 if( $shop_type != 'multi-inventory' ) { 580 // skip if shop type equal multi-inventory 581 return; 582 } 583 584 if ( $variation && $variation->get_parent_id() ) { 585 $parent_post = get_post( $variation->get_parent_id() ); 586 if ( $parent_post && $parent_post->post_status === 'pending' ) { 587 return true; 588 } 589 } 577 if( $shop_type == 'multi-inventory' ) { 578 if ( $variation && $variation->get_parent_id() ) { 579 $parent_post = get_post( $variation->get_parent_id() ); 580 if ( $parent_post && $parent_post->post_status === 'pending' ) { 581 return true; 582 } 583 } 584 } 585 590 586 return $purchasable; 591 587 } … … 603 599 $cashier_settings = get_option('philia_cashier_fields'); 604 600 $shop_type = $cashier_settings['shop_type'] ?? 'single-shop'; 605 if( $shop_type != 'multi-inventory' ) { 606 // skip if shop type equal multi-inventory 607 return; 608 } 609 610 $parent_post = get_post( $parent_id ); 611 if ( $parent_post && $parent_post->post_status === 'pending' ) { 612 return true; 613 } 601 if( $shop_type == 'multi-inventory' ) { 602 $parent_post = get_post( $parent_id ); 603 if ( $parent_post && $parent_post->post_status === 'pending' ) { 604 return true; 605 } 606 } 607 614 608 return $visible; 615 609 } -
philia-integration/trunk/philia-integration.php
r3373692 r3375013 3 3 * Plugin Name: Philia Integration with WooCommerce 4 4 * Description: Sending Users, Products, Categories and invoices from WooCommerce to Philia and Receive Coupons and Cashback from Philia 5 * Version: 1.9.1. 15 * Version: 1.9.1.2 6 6 * Author: Philia 7 7 * Author URI: https://fa.philia.vip … … 17 17 18 18 // Define constants for plugin directory, URL, and table prefix. 19 define('PHILIA_PLUGIN_VERSION', '1.9.1. 1');19 define('PHILIA_PLUGIN_VERSION', '1.9.1.2'); 20 20 define('PHILIA_PLUGIN_DIR', plugin_dir_path(__FILE__)); 21 21 define('PHILIA_PLUGIN_URL', plugin_dir_url(__FILE__)); -
philia-integration/trunk/readme.txt
r3373692 r3375013 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 1.9.1. 16 Stable tag: 1.9.1.2 7 7 License: GPL-2.0+ 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 46 46 == Changelog == 47 47 48 = 1.9.1.2 = 49 * Bugs fixes and improvements 50 48 51 = 1.9.1.1 = 49 52 * Bugs fixes and improvements
Note: See TracChangeset
for help on using the changeset viewer.