Plugin Directory

Changeset 3375013


Ignore:
Timestamp:
10/08/2025 11:06:11 AM (4 months ago)
Author:
philiasolutions
Message:
  • Bugs fixes and improvements
Location:
philia-integration
Files:
31 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • philia-integration/trunk/includes/cashier/class-cashier-fields.php

    r3373692 r3375013  
    554554        $cashier_settings = get_option('philia_cashier_fields');
    555555        $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
    565563        return $purchasable;
    566564    }
     
    577575        $cashier_settings = get_option('philia_cashier_fields');
    578576        $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       
    590586        return $purchasable;
    591587    }
     
    603599        $cashier_settings = get_option('philia_cashier_fields');
    604600        $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       
    614608        return $visible;
    615609    }
  • philia-integration/trunk/philia-integration.php

    r3373692 r3375013  
    33 * Plugin Name: Philia Integration with WooCommerce
    44 * Description: Sending Users, Products, Categories and invoices from WooCommerce to Philia and Receive Coupons and Cashback from Philia
    5  * Version: 1.9.1.1
     5 * Version: 1.9.1.2
    66 * Author: Philia
    77 * Author URI: https://fa.philia.vip
     
    1717
    1818// Define constants for plugin directory, URL, and table prefix.
    19 define('PHILIA_PLUGIN_VERSION', '1.9.1.1');
     19define('PHILIA_PLUGIN_VERSION', '1.9.1.2');
    2020define('PHILIA_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2121define('PHILIA_PLUGIN_URL', plugin_dir_url(__FILE__));
  • philia-integration/trunk/readme.txt

    r3373692 r3375013  
    44Requires at least: 6.0
    55Tested up to: 6.8
    6 Stable tag: 1.9.1.1
     6Stable tag: 1.9.1.2
    77License: GPL-2.0+
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4646== Changelog ==
    4747
     48= 1.9.1.2 =
     49* Bugs fixes and improvements
     50
    4851= 1.9.1.1 =
    4952* Bugs fixes and improvements
Note: See TracChangeset for help on using the changeset viewer.