<?php

require_once (dirname(__FILE__) . '/conditions-billing-payment-method.php');
require_once (dirname(__FILE__) . '/conditions-billing-country.php');
require_once (dirname(__FILE__) . '/conditions-billing-state.php');
require_once (dirname(__FILE__) . '/conditions-billing-postcode.php');
require_once (dirname(__FILE__) . '/conditions-shipping-method.php');
require_once (dirname(__FILE__) . '/conditions-shipping-rate.php');
require_once (dirname(__FILE__) . '/conditions-shipping-zone.php');
require_once (dirname(__FILE__) . '/conditions-shipping-cost.php');
require_once (dirname(__FILE__) . '/conditions-shipping-country.php');
require_once (dirname(__FILE__) . '/conditions-shipping-state.php');
require_once (dirname(__FILE__) . '/conditions-shipping-postcode.php');

require_once (dirname(__FILE__) . '/conditions-cart-subtotals.php');
//require_once (dirname(__FILE__) . '/conditions-cart-totals.php');
require_once (dirname(__FILE__) . '/conditions-cart-total-quantity.php');
require_once (dirname(__FILE__) . '/conditions-cart-total-weight.php');
require_once (dirname(__FILE__) . '/conditions-cart-line-item-count.php');
require_once (dirname(__FILE__) . '/conditions-cart-coupons.php');

require_once (dirname(__FILE__) . '/conditions-cart-items-products.php');
require_once (dirname(__FILE__) . '/conditions-cart-items-categories.php');
require_once (dirname(__FILE__) . '/conditions-cart-items-tags.php');
require_once (dirname(__FILE__) . '/conditions-cart-items-variations.php');
require_once (dirname(__FILE__) . '/conditions-cart-items-attributes.php');
require_once (dirname(__FILE__) . '/conditions-cart-items-meta-field.php');

require_once (dirname(__FILE__) . '/conditions-cart-item-subtotal-products.php');
require_once (dirname(__FILE__) . '/conditions-cart-item-subtotal-categories.php');
require_once (dirname(__FILE__) . '/conditions-cart-item-subtotal-tags.php');
require_once (dirname(__FILE__) . '/conditions-cart-item-subtotal-attributes.php');
require_once (dirname(__FILE__) . '/conditions-cart-item-subtotal-variations.php');

require_once (dirname(__FILE__) . '/conditions-cart-item-quantity-products.php');
require_once (dirname(__FILE__) . '/conditions-cart-item-quantity-categories.php');
require_once (dirname(__FILE__) . '/conditions-cart-item-quantity-tags.php');
require_once (dirname(__FILE__) . '/conditions-cart-item-quantity-attributes.php');
require_once (dirname(__FILE__) . '/conditions-cart-item-quantity-variations.php');

require_once (dirname(__FILE__) . '/conditions-user-customers.php');
require_once (dirname(__FILE__) . '/conditions-user-is-logged-in.php');
require_once (dirname(__FILE__) . '/conditions-user-roles.php');
require_once (dirname(__FILE__) . '/conditions-user-caps.php');
require_once (dirname(__FILE__) . '/conditions-user-meta-field.php');

require_once (dirname(__FILE__) . '/conditions-customer-value-used-coupons.php');
require_once (dirname(__FILE__) . '/conditions-customer-value-total-spent.php');
require_once (dirname(__FILE__) . '/conditions-customer-value-last-order.php');
require_once (dirname(__FILE__) . '/conditions-customer-value-last-spent.php');
require_once (dirname(__FILE__) . '/conditions-customer-value-average-spent.php');
require_once (dirname(__FILE__) . '/conditions-customer-value-max-spent.php');
require_once (dirname(__FILE__) . '/conditions-customer-value-min-spent.php');
require_once (dirname(__FILE__) . '/conditions-customer-value-orders-count.php');
require_once (dirname(__FILE__) . '/conditions-customer-value-reviews-count.php');

require_once (dirname(__FILE__) . '/conditions-calendar-date.php');
require_once (dirname(__FILE__) . '/conditions-calendar-time.php');
require_once (dirname(__FILE__) . '/conditions-calendar-date-time.php');
require_once (dirname(__FILE__) . '/conditions-calendar-days-of-week.php');
require_once (dirname(__FILE__) . '/conditions-calendar-days-of-month.php');
require_once (dirname(__FILE__) . '/conditions-calendar-months-of-year.php');

require_once (dirname(__FILE__) . '/conditions-purchased-history-item-products.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-item-categories.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-item-tags.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-item-attributes.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-item-variations.php');

require_once (dirname(__FILE__) . '/conditions-purchased-history-quantity-products.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-quantity-categories.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-quantity-tags.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-quantity-attributes.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-quantity-variations.php');

require_once (dirname(__FILE__) . '/conditions-purchased-history-value-products.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-value-categories.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-value-tags.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-value-attributes.php');
require_once (dirname(__FILE__) . '/conditions-purchased-history-value-variations.php');


add_filter('zcpri/get-condition-type-groups', 'zc_pri_get_conditions_rule_type_groups', 10, 2);

if (!function_exists('zc_pri_get_conditions_rule_type_groups')) {

    function zc_pri_get_conditions_rule_type_groups($groups = array(), $args) {

        $groups['billing_shipping'] = array(
            'label' => __('Billing & Shipping', 'zc-woo-pricely')
        );

        $groups['cart'] = array(
            'label' => __('Cart', 'zc-woo-pricely')
        );
        $groups['cart_items'] = array(
            'label' => __('Items In Cart', 'zc-woo-pricely')
        );
         $groups['cart_items_subtotal'] = array(
            'label' => __('Cart Item Subtotals', 'zc-woo-pricely')
        );
        $groups['cart_items_quantity'] = array(
            'label' => __('Cart Item Quantity', 'zc-woo-pricely')
        );
        $groups['customer'] = array(
            'label' => __('Customer', 'zc-woo-pricely')
        );
        $groups['customer_value'] = array(
            'label' => __('Customer Value', 'zc-woo-pricely')
        );
        $groups['date_time'] = array(
            'label' => __('Date & Time', 'zc-woo-pricely')
        );
        $groups['purchased_history'] = array(
            'label' => __('Purchase History', 'zc-woo-pricely')
        );
        $groups['purchased_history_qty'] = array(
            'label' => __('Purchase History Quantity', 'zc-woo-pricely')
        );
        $groups['purchased_history_value'] = array(
            'label' => __('Purchase History Value', 'zc-woo-pricely')
        );
        return $groups;
    }

}
