Plugin Directory

Changeset 3323835


Ignore:
Timestamp:
07/07/2025 05:47:40 PM (5 months ago)
Author:
truvisibility
Message:

added additional fields

Location:
truvisibility-all-in-one-marketing-suite/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • truvisibility-all-in-one-marketing-suite/trunk/README.txt

    r3206208 r3323835  
    77Tested up to: 6.6.2
    88Requires PHP: 7.2
    9 Stable tag: 1.2.1
     9Stable tag: 1.2.2
    1010
    1111The TruVISIBILITY Plugin integrates your website with their all-in-one Marketing Suite featuring a CRM, Email Automation, Forms, & Live Chat/Chatbots.
     
    136136== Changelog ==
    137137
     138= 1.2.2 =
     139* (added) additional fields
     140
    138141= 1.2.1 =
    139142* (fixed) minor fixes
  • truvisibility-all-in-one-marketing-suite/trunk/config/class-truvisibility-platform-config.php

    r3206208 r3323835  
    55    const PLUGIN_NAME = 'truvisibility-platform';
    66
    7     const PLUGIN_VERSION = '1.2.1';
     7    const PLUGIN_VERSION = '1.2.2';
    88
    99    const CLIENT_ACCESS_TOKEN_OPTION = 'truvisibility_platform_client_access_token';
     
    1212
    1313    const SERVER_ACCESS_TOKEN_OPTION = 'truvisibility_platform_server_access_token';
    14     const SERVER_REFRESH_TOKEN_OPTION = 'truvisibility_platform_server_refresh_token';
    15     const SERVER_ACCESS_TOKEN_EXPIRES_OPTION = 'truvisibility_platform_server_expires';   
    16    
    17     const GDPR_ENABLED = 'truvisibility_platform_gdpr_enabled';
     14    const SERVER_REFRESH_TOKEN_OPTION = 'truvisibility_platform_server_refresh_token';
     15    const SERVER_ACCESS_TOKEN_EXPIRES_OPTION = 'truvisibility_platform_server_expires';
     16   
     17    const GDPR_ENABLED = 'truvisibility_platform_gdpr_enabled';
    1818    const GDPR_PRIVACY_URL = 'truvisibility_platform_gdpr_privacy_url';
    19    
    20     const ACTIVATION_REDIRECT_OPTION = 'truvisibility_platform_activation_redirect';
     19   
     20    const ACTIVATION_REDIRECT_OPTION = 'truvisibility_platform_activation_redirect';
    2121
    2222    public static $TvUmbrellaRoot         = 'truvisibility.com';
  • truvisibility-all-in-one-marketing-suite/trunk/services/class-truvisibility-platform-order-info.php

    r3206208 r3323835  
    4646
    4747    /**
     48     * Order Modified Date.
     49     *
     50     * @var string
     51     */
     52    public $modified_date;
     53
     54    /**
    4855     * Order Total.
    4956     *
     
    5360
    5461    /**
     62     * Order Total Tax.
     63     *
     64     * @var float
     65     */
     66    public $total_tax;
     67
     68    /**
    5569     * Order Status.
    5670     *
     
    95109
    96110    /**
     111     * Order Ship First Name.
     112     *
     113     * @var string
     114     */
     115    public $ship_first_name;
     116
     117    /**
     118     * Order Ship Last Name.
     119     *
     120     * @var string
     121     */
     122    public $ship_last_name;
     123
     124    /**
     125     * Order Ship Company.
     126     *
     127     * @var string
     128     */
     129    public $ship_company;
     130
     131    /**
     132     * Order Ship Phone.
     133     *
     134     * @var string
     135     */
     136    public $ship_phone;
     137
     138    /**
    97139     * Order Ship Address 1.
    98140     *
     
    137179
    138180    /**
    139      * Order Ship ZIP.
     181     * Order Shipping Total.
     182     *
     183     * @var string
     184     */
     185    public $shipping_total;
     186
     187    /**
     188     * Order Shipping Tax.
     189     *
     190     * @var string
     191     */
     192    public $shipping_tax;
     193
     194    /**
     195     * Order Currency.
     196     *
     197     * @var string
     198     */
     199    public $currency;
     200
     201    /**
     202     * Order Parent ID.
     203     *
     204     * @var int
     205     */
     206    public $parent_id;
     207
     208    /**
     209     * Order Prices Include Tax.
     210     *
     211     * @var bool
     212     */
     213    public $prices_include_tax;
     214
     215    /**
     216     * Order Discount Total.
     217     *
     218     * @var string
     219     */
     220    public $discount_total;
     221
     222    /**
     223     * Order Discount Tax.
     224     *
     225     * @var string
     226     */
     227    public $discount_tax;
     228
     229    /**
     230     * Order Cart Tax.
     231     *
     232     * @var float
     233     */
     234    public $cart_tax;
     235
     236    /**
     237     * Order Payment Method.
     238     *
     239     * @var string
     240     */
     241    public $payment_method;
     242
     243    /**
     244     * Order Payment Method Title.
     245     *
     246     * @var string
     247     */
     248    public $payment_method_title;
     249
     250    /**
     251     * Order Transaction Id.
     252     *
     253     * @var string
     254     */
     255    public $transaction_id;
     256
     257    /**
     258     * Order Customer Ip Address.
     259     *
     260     * @var string
     261     */
     262    public $customer_ip_address;
     263
     264    /**
     265     * Order Customer User Agent.
     266     *
     267     * @var string
     268     */
     269    public $customer_user_agent;
     270
     271    /**
     272     * Order Created Via.
     273     *
     274     * @var string
     275     */
     276    public $created_via;
     277
     278    /**
     279     * Order Customer Note.
     280     *
     281     * @var string
     282     */
     283    public $customer_note;
     284
     285    /**
     286     * Order Date Completed.
     287     *
     288     * @var string
     289     */
     290    public $completed_date;
     291
     292    /**
     293     * Order Date Paid.
     294     *
     295     * @var string
     296     */
     297    public $paid_date;
     298
     299    /**
     300     * Order Billing First Name.
     301     *
     302     * @var string
     303     */
     304    public $billing_first_name;
     305
     306    /**
     307     * Order Billing Last Name.
     308     *
     309     * @var string
     310     */
     311    public $billing_last_name;
     312
     313    /**
     314     * Order Billing Company.
     315     *
     316     * @var string
     317     */
     318    public $billing_company;
     319
     320    /**
     321     * Order Billing Phone.
     322     *
     323     * @var string
     324     */
     325    public $billing_phone;
     326
     327    /**
     328     * Order Billing Email.
     329     *
     330     * @var string
     331     */
     332    public $billing_email;
     333
     334    /**
     335     * Order Billing Address 1.
     336     *
     337     * @var string
     338     */
     339    public $billing_address_1;
     340
     341    /**
     342     * Order Billing Address 2.
     343     *
     344     * @var string
     345     */
     346    public $billing_address_2;
     347
     348    /**
     349     * Order Billing City.
     350     *
     351     * @var string
     352     */
     353    public $billing_city;
     354
     355    /**
     356     * Order Billing State.
     357     *
     358     * @var string
     359     */
     360    public $billing_state;
     361
     362    /**
     363     * Order Billing Country.
     364     *
     365     * @var string
     366     */
     367    public $billing_country;
     368
     369    /**
     370     * Order Billing ZIP.
     371     *
     372     * @var string
     373     */
     374    public $billing_zip;
     375
     376    /**
     377     * Order Products.
    140378     *
    141379     * @var TruVisibility_Platform_Product_Info[]
     
    152390        $this->id = $order_id;
    153391
    154         $order                = wc_get_order($order_id);
    155         $data                 = $order->get_data();
    156         $this->customer_id    = $order->get_customer_id();
    157         $this->url            = $order->get_view_order_url();
    158         $this->created_date   = is_subclass_of($data['date_created'], 'DateTime') ? get_date_from_gmt(gmdate('Y-m-d H:i:s', $data['date_created']->getTimestamp())) : $data['date_created'];
    159         $this->amount         = $order->get_total();
    160         $this->status         = $order->get_status();
    161         $this->ship_to        = trim($order->get_shipping_first_name() . ' ' . $order->get_shipping_last_name());
    162         $this->ship_address_1 = $order->get_shipping_address_1();
    163         $this->ship_address_2 = $order->get_shipping_address_2();
    164         $this->ship_city      = $order->get_shipping_city();
    165         $this->ship_state     = $order->get_shipping_state();
    166         $this->ship_country   = $order->get_shipping_country();
    167         $this->ship_zip       = $order->get_shipping_postcode();
    168 
    169         $this->products = array();
     392        $order               = wc_get_order($order_id);
     393        $data                = $order->get_data();
     394        $this->customer_id   = $order->get_customer_id();
     395        $this->url           = $order->get_view_order_url();
     396        $this->created_date  = is_subclass_of($data['date_created'], 'DateTime') ? get_date_from_gmt(gmdate('Y-m-d H:i:s', $data['date_created']->getTimestamp())) : $data['date_created'];
     397        $this->modified_date = is_subclass_of($data['date_modified'], 'DateTime') ? get_date_from_gmt(gmdate('Y-m-d H:i:s', $data['date_modified']->getTimestamp())) : $data['date_modified'];
     398        $this->amount        = $order->get_total();
     399        $this->status        = $order->get_status();
     400
     401        $this->ship_to         = trim($order->get_shipping_first_name() . ' ' . $order->get_shipping_last_name());
     402        $this->ship_first_name = $order->get_shipping_first_name();
     403        $this->ship_last_name  = $order->get_shipping_last_name();
     404        $this->ship_company    = $order->get_shipping_company();
     405        $this->ship_phone      = $order->get_shipping_phone();
     406        $this->ship_address_1  = $order->get_shipping_address_1();
     407        $this->ship_address_2  = $order->get_shipping_address_2();
     408        $this->ship_city       = $order->get_shipping_city();
     409        $this->ship_state      = $order->get_shipping_state();
     410        $this->ship_country    = $order->get_shipping_country();
     411        $this->ship_zip        = $order->get_shipping_postcode();
     412        $this->shipping_total  = $order->get_shipping_total();
     413        $this->shipping_tax    = $order->get_shipping_tax();
     414
     415        $this->billing_first_name = $order->get_billing_first_name();
     416        $this->billing_last_name  = $order->get_billing_last_name();
     417        $this->billing_company    = $order->get_billing_company();
     418        $this->billing_phone      = $order->get_billing_phone();
     419        $this->billing_email      = $order->get_billing_email();
     420        $this->billing_address_1  = $order->get_billing_address_1();
     421        $this->billing_address_2  = $order->get_billing_address_2();
     422        $this->billing_city       = $order->get_billing_city();
     423        $this->billing_state      = $order->get_billing_state();
     424        $this->billing_country    = $order->get_billing_country();
     425        $this->billing_zip        = $order->get_billing_postcode();
     426
     427        $this->currency             = $order->get_currency();
     428        $this->parent_id            = $order->get_parent_id();
     429        $this->prices_include_tax   = $order->get_prices_include_tax();
     430        $this->discount_total       = $order->get_discount_total();
     431        $this->discount_tax         = $order->get_discount_tax();
     432        $this->cart_tax             = $order->get_cart_tax();
     433        $this->total_tax            = $order->get_total_tax();
     434        $this->payment_method       = $order->get_payment_method();
     435        $this->payment_method_title = $order->get_payment_method_title();
     436        $this->transaction_id       = $order->get_transaction_id();
     437        $this->customer_ip_address  = $order->get_customer_ip_address();
     438        $this->customer_user_agent  = $order->get_customer_user_agent();
     439        $this->created_via          = $order->get_created_via();
     440        $this->customer_note        = $order->get_customer_note();
     441        $this->completed_date       = is_subclass_of($data['date_completed'], 'DateTime') ? get_date_from_gmt(gmdate('Y-m-d H:i:s', $data['date_completed']->getTimestamp())) : $data['date_completed'];
     442        $this->paid_date            = is_subclass_of($data['date_paid'], 'DateTime') ? get_date_from_gmt(gmdate('Y-m-d H:i:s', $data['date_paid']->getTimestamp())) : $data['date_paid'];
     443
     444        $this->products = [];
    170445        foreach ($order->get_items() as $item) {
    171             if (!$item instanceof WC_Order_Item_Product) {
     446            if (! $item instanceof WC_Order_Item_Product) {
    172447                continue;
    173448            }
  • truvisibility-all-in-one-marketing-suite/trunk/truvisibility-platform.php

    r3206208 r3323835  
    1010 * Plugin Name:       TruVISIBILITY All-In-One Marketing Suite
    1111 * Description:       The TruVISIBILITY Plugin integrates your website with their all-in-one Marketing Suite featuring a CRM, Email Automation, Forms, & Live Chat/Chatbots.
    12  * Version:           1.2.1
     12 * Version:           1.2.2
    1313 * Author:            TruVisibility, LLC
    1414 * Author URI:        https://truvisibility.com
Note: See TracChangeset for help on using the changeset viewer.