Plugin Directory

Changeset 2873586


Ignore:
Timestamp:
03/02/2023 11:21:23 AM (3 years ago)
Author:
rulecom
Message:

Update to version 3.0.0 from GitHub

Location:
woorule
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woorule/tags/3.0.0/README.txt

    r2790316 r2873586  
    55Tested up to: 6.0
    66Requires PHP: 5.6+
    7 Stable tag: 2.8.0
     7Stable tag: 3.0.0
    88License: MIT
    99License URI: http://opensource.org/licenses/MIT
     
    109109For more information, check out our [releases](https://github.com/rulecom/woorule/releases).
    110110
    111 = 2.7.8 =
     111= 3.0.0 =
     112* Updated flow for CartInProgress tags to follow our best practices. Read below what you need to adjust if you use this function.
     113* Changed CartInProgress so it will save to custom group Cart instead of Order. Prepare your automations in Rule that triggers on CartInProgress so they will use data from Cart group.
     114* When making above change take into consideration your interval on the automations. Triggers created before the upgrade will still have their data in Order group.
     115* These changes will create a more accurate history of your orders in Rule while separating unfinished carts into their own data set.
     116
     117= 2.8.0 =
    112118* Added product alert functionality
    113119
  • woorule/tags/3.0.0/inc/class-rulemailer-api.php

    r2790316 r2873586  
    2222    use Woorule_Logging;
    2323
    24     const URL = 'https://app.rule.io/api/v2/subscribers?source=woorule&version=2.8.0';
     24    const URL = 'https://app.rule.io/api/v2/subscribers?source=woorule&version=3.0.0';
    2525
    2626    /**
  • woorule/tags/3.0.0/inc/class-woorule-cart-hooks.php

    r2719394 r2873586  
    131131
    132132                foreach ( $fields as $key => $field ) {
    133                     if ( 'Order.BillingTele' === $field['key'] ) {
     133                    if ( 'Cart.BillingTele' === $field['key'] ) {
    134134                        unset( $fields[ $key ] );
    135135                    }
     
    214214        return array(
    215215            array(
    216                 'key'   => 'Order.Number',
    217                 'value' => null,
    218             ),
    219             array(
    220                 'key'   => 'Order.Date',
     216                'key'   => 'Cart.Date',
    221217                'value' => gmdate( 'Y-m-d H:i:s' ),
    222218                'type'  => 'datetime',
    223219            ),
    224220            array(
    225                 'key'   => 'Order.Subtotal',
     221                'key'   => 'Cart.Subtotal',
    226222                'value' => Woorule_Utils::round( WC()->cart->get_subtotal() ),
    227223            ),
    228224            array(
    229                 'key'   => 'Order.SubtotalVat',
     225                'key'   => 'Cart.SubtotalVat',
    230226                'value' => Woorule_Utils::round( WC()->cart->get_subtotal() + WC()->cart->get_cart_contents_tax() ),
    231227            ),
    232228            array(
    233                 'key'   => 'Order.Discount',
     229                'key'   => 'Cart.Discount',
    234230                'value' => Woorule_Utils::round( WC()->cart->get_discount_total() ),
    235231            ),
    236232            array(
    237                 'key'   => 'Order.Shipping',
     233                'key'   => 'Cart.Shipping',
    238234                'value' => Woorule_Utils::round( WC()->cart->get_shipping_total() ),
    239235            ),
    240236            array(
    241                 'key'   => 'Order.ShippingVat',
     237                'key'   => 'Cart.ShippingVat',
    242238                'value' => Woorule_Utils::round( WC()->cart->get_shipping_total() + WC()->cart->get_shipping_tax() ),
    243239            ),
    244240            array(
    245                 'key'   => 'Order.Total',
     241                'key'   => 'Cart.Total',
    246242                'value' => Woorule_Utils::round( WC()->cart->get_total( null ) ),
    247243            ),
    248244            array(
    249                 'key'   => 'Order.Vat',
     245                'key'   => 'Cart.Vat',
    250246                'value' => Woorule_Utils::round( WC()->cart->get_total_tax() ),
    251247            ),
    252248            array(
    253                 'key'   => 'Order.Currency',
     249                'key'   => 'Cart.Currency',
    254250                'value' => get_woocommerce_currency(),
    255251            ),
    256252            array(
    257                 'key'   => 'Order.PaymentMethod',
     253                'key'   => 'Cart.PaymentMethod',
    258254                'value' => null,
    259255                'type'  => 'multiple',
    260256            ),
    261257            array(
    262                 'key'   => 'Order.DeliveryMethod',
     258                'key'   => 'Cart.DeliveryMethod',
    263259                'value' => null,
    264260                'type'  => 'multiple',
    265261            ),
    266262            array(
    267                 'key'   => 'Order.BillingFirstname',
     263                'key'   => 'Cart.BillingFirstname',
    268264                'value' => $this->current_customer->get_billing_first_name(),
    269265            ),
    270266            array(
    271                 'key'   => 'Order.BillingLastname',
     267                'key'   => 'Cart.BillingLastname',
    272268                'value' => $this->current_customer->get_billing_last_name(),
    273269            ),
    274270            array(
    275                 'key'   => 'Order.BillingStreet',
     271                'key'   => 'Cart.BillingStreet',
    276272                'value' => $this->current_customer->get_billing_address_1(),
    277273            ),
    278274            array(
    279                 'key'   => 'Order.BillingCity',
     275                'key'   => 'Cart.BillingCity',
    280276                'value' => $this->current_customer->get_billing_city(),
    281277            ),
    282278            array(
    283                 'key'   => 'Order.BillingZipcode',
     279                'key'   => 'Cart.BillingZipcode',
    284280                'value' => $this->current_customer->get_billing_postcode(),
    285281            ),
    286282            array(
    287                 'key'   => 'Order.BillingState',
     283                'key'   => 'Cart.BillingState',
    288284                'value' => $this->current_customer->get_billing_state(),
    289285            ),
    290286            array(
    291                 'key'   => 'Order.BillingCountry',
     287                'key'   => 'Cart.BillingCountry',
    292288                'value' => $this->current_customer->get_billing_country(),
    293289            ),
    294290            array(
    295                 'key'   => 'Order.BillingTele',
     291                'key'   => 'Cart.BillingTele',
    296292                'value' => Woorule_Utils::get_customer_phone_number( $this->current_customer ),
    297293            ),
    298294            array(
    299                 'key'   => 'Order.BillingCompany',
     295                'key'   => 'Cart.BillingCompany',
    300296                'value' => $this->current_customer->get_billing_company(),
    301297            ),
    302298            array(
    303                 'key'   => 'Order.CartUrl',
     299                'key'   => 'Cart.CartUrl',
    304300                'value' => wc_get_cart_url(),
    305301            ),
     
    320316        if ( ! empty( $brands ) ) {
    321317            $order_items_fields[] = array(
    322                 'key'   => 'Order.Brands',
     318                'key'   => 'Cart.Brands',
    323319                'value' => $brands,
    324320                'type'  => 'multiple',
     
    328324        if ( ! empty( $items_data['categories'] ) ) {
    329325            $order_items_fields[] = array(
    330                 'key'   => 'Order.Collections',
     326                'key'   => 'Cart.Collections',
    331327                'value' => $items_data['categories'],
    332328                'type'  => 'multiple',
     
    336332        if ( ! empty( $items_data['tags'] ) ) {
    337333            $order_items_fields[] = array(
    338                 'key'   => 'Order.Tags',
     334                'key'   => 'Cart.Tags',
    339335                'value' => $items_data['tags'],
    340336                'type'  => 'multiple',
     
    344340        if ( ! empty( $items_data['products'] ) ) {
    345341            $order_items_fields[] = array(
    346                 'key'   => 'Order.Products',
     342                'key'   => 'Cart.Products',
    347343                'value' => wp_json_encode( $items_data['products'] ),
    348344                'type'  => 'json',
     
    352348            if ( ! empty( $products_names ) ) {
    353349                $order_items_fields[] = array(
    354                     'key'   => 'Order.Names',
     350                    'key'   => 'Cart.Names',
    355351                    'value' => $products_names,
    356352                    'type'  => 'multiple',
  • woorule/tags/3.0.0/languages/woorule.pot

    r2790316 r2873586  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooRule 2.8.0\n"
     5"Project-Id-Version: WooRule 3.0.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woorule\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1212"POT-Creation-Date: 2022-02-02T11:13:33+03:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.8.0\n"
     14"X-Generator: WP-CLI 2.6.0\n"
    1515"X-Domain: woorule\n"
    1616
  • woorule/tags/3.0.0/woorule.php

    r2790316 r2873586  
    99 * Plugin URI:      http://github.com/rulecom/woorule
    1010 * Description:     Rule integration for WooCommerce
    11  * Version:         2.8.0
     11 * Version:         3.0.0
    1212 * Author:          Rule
    1313 * Author URI:      http://rule.se
     
    2121 */
    2222
    23 define( 'WOORULE_VERSION', '2.8.0' );
     23define( 'WOORULE_VERSION', '3.0.0' );
    2424define( 'WOORULE_PATH', plugin_dir_path( __FILE__ ) );
    2525define( 'WOORULE_URL', plugin_dir_url( __FILE__ ) );
  • woorule/trunk/README.txt

    r2790316 r2873586  
    55Tested up to: 6.0
    66Requires PHP: 5.6+
    7 Stable tag: 2.8.0
     7Stable tag: 3.0.0
    88License: MIT
    99License URI: http://opensource.org/licenses/MIT
     
    109109For more information, check out our [releases](https://github.com/rulecom/woorule/releases).
    110110
    111 = 2.7.8 =
     111= 3.0.0 =
     112* Updated flow for CartInProgress tags to follow our best practices. Read below what you need to adjust if you use this function.
     113* Changed CartInProgress so it will save to custom group Cart instead of Order. Prepare your automations in Rule that triggers on CartInProgress so they will use data from Cart group.
     114* When making above change take into consideration your interval on the automations. Triggers created before the upgrade will still have their data in Order group.
     115* These changes will create a more accurate history of your orders in Rule while separating unfinished carts into their own data set.
     116
     117= 2.8.0 =
    112118* Added product alert functionality
    113119
  • woorule/trunk/inc/class-rulemailer-api.php

    r2790316 r2873586  
    2222    use Woorule_Logging;
    2323
    24     const URL = 'https://app.rule.io/api/v2/subscribers?source=woorule&version=2.8.0';
     24    const URL = 'https://app.rule.io/api/v2/subscribers?source=woorule&version=3.0.0';
    2525
    2626    /**
  • woorule/trunk/inc/class-woorule-cart-hooks.php

    r2719394 r2873586  
    131131
    132132                foreach ( $fields as $key => $field ) {
    133                     if ( 'Order.BillingTele' === $field['key'] ) {
     133                    if ( 'Cart.BillingTele' === $field['key'] ) {
    134134                        unset( $fields[ $key ] );
    135135                    }
     
    214214        return array(
    215215            array(
    216                 'key'   => 'Order.Number',
    217                 'value' => null,
    218             ),
    219             array(
    220                 'key'   => 'Order.Date',
     216                'key'   => 'Cart.Date',
    221217                'value' => gmdate( 'Y-m-d H:i:s' ),
    222218                'type'  => 'datetime',
    223219            ),
    224220            array(
    225                 'key'   => 'Order.Subtotal',
     221                'key'   => 'Cart.Subtotal',
    226222                'value' => Woorule_Utils::round( WC()->cart->get_subtotal() ),
    227223            ),
    228224            array(
    229                 'key'   => 'Order.SubtotalVat',
     225                'key'   => 'Cart.SubtotalVat',
    230226                'value' => Woorule_Utils::round( WC()->cart->get_subtotal() + WC()->cart->get_cart_contents_tax() ),
    231227            ),
    232228            array(
    233                 'key'   => 'Order.Discount',
     229                'key'   => 'Cart.Discount',
    234230                'value' => Woorule_Utils::round( WC()->cart->get_discount_total() ),
    235231            ),
    236232            array(
    237                 'key'   => 'Order.Shipping',
     233                'key'   => 'Cart.Shipping',
    238234                'value' => Woorule_Utils::round( WC()->cart->get_shipping_total() ),
    239235            ),
    240236            array(
    241                 'key'   => 'Order.ShippingVat',
     237                'key'   => 'Cart.ShippingVat',
    242238                'value' => Woorule_Utils::round( WC()->cart->get_shipping_total() + WC()->cart->get_shipping_tax() ),
    243239            ),
    244240            array(
    245                 'key'   => 'Order.Total',
     241                'key'   => 'Cart.Total',
    246242                'value' => Woorule_Utils::round( WC()->cart->get_total( null ) ),
    247243            ),
    248244            array(
    249                 'key'   => 'Order.Vat',
     245                'key'   => 'Cart.Vat',
    250246                'value' => Woorule_Utils::round( WC()->cart->get_total_tax() ),
    251247            ),
    252248            array(
    253                 'key'   => 'Order.Currency',
     249                'key'   => 'Cart.Currency',
    254250                'value' => get_woocommerce_currency(),
    255251            ),
    256252            array(
    257                 'key'   => 'Order.PaymentMethod',
     253                'key'   => 'Cart.PaymentMethod',
    258254                'value' => null,
    259255                'type'  => 'multiple',
    260256            ),
    261257            array(
    262                 'key'   => 'Order.DeliveryMethod',
     258                'key'   => 'Cart.DeliveryMethod',
    263259                'value' => null,
    264260                'type'  => 'multiple',
    265261            ),
    266262            array(
    267                 'key'   => 'Order.BillingFirstname',
     263                'key'   => 'Cart.BillingFirstname',
    268264                'value' => $this->current_customer->get_billing_first_name(),
    269265            ),
    270266            array(
    271                 'key'   => 'Order.BillingLastname',
     267                'key'   => 'Cart.BillingLastname',
    272268                'value' => $this->current_customer->get_billing_last_name(),
    273269            ),
    274270            array(
    275                 'key'   => 'Order.BillingStreet',
     271                'key'   => 'Cart.BillingStreet',
    276272                'value' => $this->current_customer->get_billing_address_1(),
    277273            ),
    278274            array(
    279                 'key'   => 'Order.BillingCity',
     275                'key'   => 'Cart.BillingCity',
    280276                'value' => $this->current_customer->get_billing_city(),
    281277            ),
    282278            array(
    283                 'key'   => 'Order.BillingZipcode',
     279                'key'   => 'Cart.BillingZipcode',
    284280                'value' => $this->current_customer->get_billing_postcode(),
    285281            ),
    286282            array(
    287                 'key'   => 'Order.BillingState',
     283                'key'   => 'Cart.BillingState',
    288284                'value' => $this->current_customer->get_billing_state(),
    289285            ),
    290286            array(
    291                 'key'   => 'Order.BillingCountry',
     287                'key'   => 'Cart.BillingCountry',
    292288                'value' => $this->current_customer->get_billing_country(),
    293289            ),
    294290            array(
    295                 'key'   => 'Order.BillingTele',
     291                'key'   => 'Cart.BillingTele',
    296292                'value' => Woorule_Utils::get_customer_phone_number( $this->current_customer ),
    297293            ),
    298294            array(
    299                 'key'   => 'Order.BillingCompany',
     295                'key'   => 'Cart.BillingCompany',
    300296                'value' => $this->current_customer->get_billing_company(),
    301297            ),
    302298            array(
    303                 'key'   => 'Order.CartUrl',
     299                'key'   => 'Cart.CartUrl',
    304300                'value' => wc_get_cart_url(),
    305301            ),
     
    320316        if ( ! empty( $brands ) ) {
    321317            $order_items_fields[] = array(
    322                 'key'   => 'Order.Brands',
     318                'key'   => 'Cart.Brands',
    323319                'value' => $brands,
    324320                'type'  => 'multiple',
     
    328324        if ( ! empty( $items_data['categories'] ) ) {
    329325            $order_items_fields[] = array(
    330                 'key'   => 'Order.Collections',
     326                'key'   => 'Cart.Collections',
    331327                'value' => $items_data['categories'],
    332328                'type'  => 'multiple',
     
    336332        if ( ! empty( $items_data['tags'] ) ) {
    337333            $order_items_fields[] = array(
    338                 'key'   => 'Order.Tags',
     334                'key'   => 'Cart.Tags',
    339335                'value' => $items_data['tags'],
    340336                'type'  => 'multiple',
     
    344340        if ( ! empty( $items_data['products'] ) ) {
    345341            $order_items_fields[] = array(
    346                 'key'   => 'Order.Products',
     342                'key'   => 'Cart.Products',
    347343                'value' => wp_json_encode( $items_data['products'] ),
    348344                'type'  => 'json',
     
    352348            if ( ! empty( $products_names ) ) {
    353349                $order_items_fields[] = array(
    354                     'key'   => 'Order.Names',
     350                    'key'   => 'Cart.Names',
    355351                    'value' => $products_names,
    356352                    'type'  => 'multiple',
  • woorule/trunk/languages/woorule.pot

    r2790316 r2873586  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooRule 2.8.0\n"
     5"Project-Id-Version: WooRule 3.0.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woorule\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1212"POT-Creation-Date: 2022-02-02T11:13:33+03:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.8.0\n"
     14"X-Generator: WP-CLI 2.6.0\n"
    1515"X-Domain: woorule\n"
    1616
  • woorule/trunk/woorule.php

    r2790316 r2873586  
    99 * Plugin URI:      http://github.com/rulecom/woorule
    1010 * Description:     Rule integration for WooCommerce
    11  * Version:         2.8.0
     11 * Version:         3.0.0
    1212 * Author:          Rule
    1313 * Author URI:      http://rule.se
     
    2121 */
    2222
    23 define( 'WOORULE_VERSION', '2.8.0' );
     23define( 'WOORULE_VERSION', '3.0.0' );
    2424define( 'WOORULE_PATH', plugin_dir_path( __FILE__ ) );
    2525define( 'WOORULE_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.