Plugin Directory

Changeset 2748452


Ignore:
Timestamp:
06/27/2022 10:32:29 AM (4 years ago)
Author:
shoppingfeed
Message:

Update to version 6.1.14 from GitHub

Location:
shopping-feed
Files:
6 added
26 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shopping-feed/tags/6.1.14/readme.txt

    r2735519 r2748452  
    22Contributors: ShoppingFeed, BeAPI
    33Tags: shoppingfeed, marketplace, woocommerce, woocommerce shoppingfeed, create woocommerce products shoppingfeed, products feed, generate shoppingfeed, amazon, Jet, Walmart, many marketplace, import orders
    4 Stable tag: 6.1.13
    5 Version: 6.1.13
     4Stable tag: 6.1.14
     5Version: 6.1.14
    66Requires PHP: 5.6
    77Requires at least: 5.2
     
    1414
    1515== Changelog ==
    16 6.0.0: this is a major version, there are several changes and improvements which affect the architecture of the plugin. You will have to re-configure the plugin, all the previous settings will be lost
    17 6.0.1: edit readme.txt
    18 6.0.3: edit version number
    19 6.0.4: fix permalink issue
    20 6.0.5: correct attribute values
    21 6.0.6: add ean support for variations
    22 6.0.7: add weight as attribute + fix phone value
    23 6.0.8: add missing commit
    24 6.0.9  send WC shipping method name once order shipped
    25 6.0.10 fix deploy issue
    26 6.0.11 enhance logging
    27 6.0.12 fix static call
    28 6.0.13 add extra fields to feed
    29 6.0.14 add the possibility to export category tree in the feed
    30 6.0.15 add the possibility to choose the default statut for imported order
    31 6.0.16 sum quantity of all variations on parent
    32 6.0.17 using generator for generating products list"
    33 6.0.18 add async generation for feed
    34 6.0.19 add compat to the plugin Chained Product
    35 6.0.20 add compat to the plugin ATS
    36 6.0.21 Set status as publish on product list
    37 6.0.22 Fix file case issue
    38 6.0.23 If the billing address phone is empty, get the shipping one to display phone on the BO
    39 6.0.24 Tracking: fix bad condition
    40 6.0.25 Tracking: Add option to choose Retrieval Mode
    41 6.0.26 Fix version number
    42 6.0.27 Support WP 5.8
    43 6.0.28 Fix bad version
    44 6.0.29 AST compact with Shopping-Feed Advanced helper
    45 6.0.30 Do not force WC mail settings
    46 6.0.31 Do not send mails to other customers
    47 6.0.32 Add link to WC logs
    48 6.0.33 Fix priority issue with other plugins
    49 6.1.0 Add the possibility to connect multiple ShoppingFeed accounts to one WC shop
    50 6.1.3 Fix composer dependencies
    51 6.1.4 Added filter for fees handling + refresh translations
    52 6.1.5 Performances improvement : Logger and HTTP connection
    53 6.1.6 Release main
    54 6.1.7 Fix shipping options not saving
    55 6.1.8 Add Zalando as an available marketplace
    56 6.1.9 Fix wrong quantities for chained products
    57 6.1.10 Update AST addon to support the pro version
    58 6.1.11 Weight attribute is at the root of the product xml feed, 'other' field is map to the customer notes, Yoast categories are taken into account
    59 6.1.12 Fix missing admin tab
    60 6.1.13 Fix PHP error with WPSEO premium
     16* 6.1.14
     17  * Add support for Woocommerce Shipment Tracking Pro
     18  * Fix usage of Yoast option
     19  * Update readme
     20* 6.1.13
     21  * Fix PHP error with WPSEO premium
     22* 6.1.12
     23  * Fix missing admin tab
     24* 6.1.11
     25  * Weight attribute is at the root of the product xml feed
     26  * the 'other' field is map to the customer notes
     27  * Yoast categories are taken into account
     28* 6.1.10
     29  * Update AST addon to support the pro version
     30* 6.1.9
     31  * Fix wrong quantities for chained products
     32* 6.1.8
     33  * Add Zalando as an available marketplace
     34* 6.1.7
     35  * Fix shipping options not saving
     36* 6.1.6
     37  * Release main
     38* 6.1.5
     39  * Performances improvement : Logger and HTTP connection
     40* 6.1.4
     41  * Added filter for fees handling
     42  * refresh translations
     43* 6.1.3
     44  * Fix composer dependencies
     45* 6.1.0
     46  * Add the possibility to connect multiple ShoppingFeed accounts to one WC shop
     47* 6.0.33
     48  * Fix priority issue with other plugins
     49* 6.0.32
     50  * Add link to WC logs
     51* 6.0.31
     52  * Do not send mails to other customers
     53* 6.0.30
     54  * Do not force WC mail settings
     55* 6.0.29
     56  * AST compact with Shopping-Feed Advanced helper
     57* 6.0.28
     58  * Fix bad version
     59* 6.0.27
     60  * Support WP 5.8
     61* 6.0.26
     62  * Fix version number
     63* 6.0.25
     64  * Tracking: Add option to choose Retrieval Mode
     65* 6.0.24
     66  * Tracking: fix bad condition
     67* 6.0.23
     68  * If the billing address phone is empty, get the shipping one to display phone on the BO
     69* 6.0.22
     70  * Fix file case issue
     71* 6.0.21
     72  * Set status as publish on product list
     73* 6.0.20
     74  * add compat to the plugin ATS
     75* 6.0.19
     76  * add compat to the plugin Chained Product
     77* 6.0.18
     78  * add async generation for feed
     79* 6.0.17
     80  * using generator for generating products list"
     81* 6.0.16
     82  * sum quantity of all variations on parent
     83* 6.0.15
     84  * add the possibility to choose the default status for imported order
     85* 6.0.14
     86  * add the possibility to export category tree in the feed
     87* 6.0.13
     88  * add extra fields to feed
     89* 6.0.12
     90  * fix static call
     91* 6.0.11
     92  * enhance logging
     93* 6.0.10
     94  * fix deploy issue
     95* 6.0.9
     96  * send WC shipping method name once order shipped
     97* 6.0.8
     98  * add missing commit
     99* 6.0.7
     100  * add weight as attribute
     101  * fix phone value
     102* 6.0.6
     103  * add ean support for variations
     104* 6.0.5
     105  * correct attribute values
     106* 6.0.4
     107  * fix permalink issue
     108* 6.0.3
     109  * edit version number
     110* 6.0.1
     111  * edit readme.txt
     112* 6.0.0
     113  * this is a major version, there are several changes and improvements which affect the architecture of the plugin
     114  * You will have to re-configure the plugin, all the previous settings will be lost
    61115
    62116== Description ==
     
    84138- In Settings, check that ShoppingFeed is enabled and save changes
    85139
     140## Shipment tracking support
     141
     142For now, the only shipment tracking plugins supported are :
     143
     144* Advanced Shipment Tracking : https://wordpress.org/plugins/woo-advanced-shipment-tracking/
     145* Advanced Shipment Tracking PRO : https://www.zorem.com/product/woocommerce-advanced-shipment-tracking/
     146* Woocommerce Shipment Tracking Pro : https://www.pluginhive.com/product/woocommerce-shipment-tracking-pro/
     147
    86148## Configuration
    87149
     
    95157By default, we support `product_cat` as taxonomy slug to identify product's categories, you can override it using this snippet :
    96158
    97 `
     159```php
    98160add_filter( 'shopping_feed_custom_category_taxonomy', 'your_custom_category_function' );
     161
    99162/** @return string */
    100163function your_custom_category_function() {
    101 return 'your_custom_category_slug';
    102 }
    103 `
     164    return 'your_custom_category_slug';
     165}
     166```
    104167
    105168### Brands
    106169By default, we don’t support any custom plugin for product's brand, you can set custom taxonomy slug to identify it by using this snippet :
    107170
    108 `
     171```php
    109172add_filter( 'shopping_feed_custom_brand_taxonomy', 'your_custom_brand_function' );
     173
    110174/** @return string */
    111175function your_custom_brand_function() {
    112 return 'your_custom_brand_slug';
    113 }
    114 `
     176    return 'your_custom_brand_slug';
     177}
     178```
    115179
    116180### EAN
    117181By default, we don’t support any custom plugin for product EAN, you can set custom taxonomy slug to identify it by using this snippet :
    118182
    119 `
     183```php
    120184add_filter( 'shopping_feed_custom_ean', 'your_custom_ean_function' );
     185
    121186/** @return string */
    122187function your_custom_ean_function() {
    123 return 'your_custom_ean_slug';
    124 }
    125 `
     188    return 'your_custom_ean_slug';
     189}
     190```
    126191
    127192### Feed’s products list args
    128193To export the feed, we use the plugin’s setting, if you want to add/use specific args, you can use the following snippet
    129194
    130 `
     195```php
    131196add_filter( 'shopping_feed_products_custom_args', 'your_custom_args_function' );
    132 /**
    133 * @return array
    134 */
     197
     198/** @return array */
    135199function your_custom_args_function() {
    136200//array of args
    137 return array();
    138 }
    139 `
     201    return array();
     202}
     203```
    140204
    141205You can find all available args here
     
    145209By default, we import orders with ‘waiting_shipment’ status, if you want to import more statuses or a specific one, you can use the following snippet
    146210
    147 `
     211```php
    148212add_filter( 'shopping_feed_orders_to_import', 'your_custom_statuses_function' );
     213
    149214/** @return array */
    150215function your_custom_statuses_function() {
    151 //array of statuses (strings)
    152 return array();
    153 }
    154 `
     216    // array of statuses (strings)
     217    return array();
     218}
     219```
    155220
    156221`Status available` : created, waiting_store_acceptance, refused, waiting_shipment, shipped, cancelled, refunded, partially_refunded, partially_shipped
     
    159224
    160225### Tracking number
    161 By default, we don’t support any custom plugin for wc order tracking number, you can set custom meta key to identify it, you can use the following snippet
    162 
    163 `
     226If you want to set a custom meta key to identify it, you can use the following snippet
     227
     228```php
    164229add_filter( 'shopping_feed_tracking_number', 'your_custom_tracking_number_function' );
     230
    165231/** @return string */
    166232function your_custom_tracking_number_function() {
    167 return ‘your_custom_order_meta_key’
    168 }
    169 `
     233    return ‘your_custom_order_meta_key’
     234}
     235```
    170236
    171237### Tracking url
    172 By default, we don’t support any custom plugin for wc order tracking url, you can set custom meta key to identify it, you can use the following snippet
    173 `
     238If you want to set a custom meta key to identify it, you can use the following snippet
     239```php
    174240add_filter( 'shopping_feed_tracking_link', 'your_custom_tracking_url_function' );
     241
    175242/** @return string */
    176243function your_custom_tracking_url_function() {
    177 return ‘your_custom_order_meta_key’
    178 }
    179 `
     244    return ‘your_custom_order_meta_key’
     245}
     246```
    180247
    181248### Extra Fields
    182249If you want to add add extra fields to your XML Feed, you can use the following snippet
    183 `
     250```php
    184251add_filter( 'shopping_feed_extra_fields', 'your_custom_fields_function', 10, 2 );
     252
    185253/** @return array */
    186254function your_custom_tracking_url_function($fields, $wc_product) {
    187 $fields[] = array('name'=>'my_field', 'value'=>'my_value');
    188 return $fields;
    189 }
    190 `
     255    $fields[] = array('name'=>'my_field', 'value'=>'my_value');
     256    return $fields;
     257}
     258```
    191259
    192260### Variation Images
    193261By default, we don’t support any custom plugin for adding images to WC Product Variation, with this filter you can set the desired images to each variation, you can use the following snippet
    194 `
     262```php
    195263add_filter( 'shopping_feed_variation_images', 'your_custom_variation_images_function', 10, 2 );
     264
    196265/** @return array */
    197266function your_custom_tracking_url_function($images, $wc_product) {
    198 $images[] = 'https://domain.com/image1.jpg';
    199 $images[] = 'https://domain.com/image2.jpg';
    200 return $images;
    201 }
    202 `
     267    $images[] = 'https://domain.com/image1.jpg';
     268    $images[] = 'https://domain.com/image2.jpg';
     269
     270    return $images;
     271}
     272```
  • shopping-feed/tags/6.1.14/shoppingfeed.php

    r2735519 r2748452  
    88 * Text Domain:     shopping-feed
    99 * Domain Path:     /languages
    10  * Version:         6.1.13
     10 * Version:         6.1.14
    1111 * Requires at least WP: 5.7
    1212 * Requires at least WooCommerce: 5.1.0
     
    2626}
    2727
    28 define( 'SF_VERSION', '6.1.13' );
     28define( 'SF_VERSION', '6.1.14' );
    2929define( 'SF_DB_VERSION_SLUG', 'SF_DB_VERSION' );
    3030define( 'SF_DB_VERSION', '1.0.0' );
  • shopping-feed/tags/6.1.14/src/Addons/Addons.php

    r2542211 r2748452  
    1010use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ASTPlugin\ASTPlugin;
    1111use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ChainedProductsPlugin\ChainedProducts;
     12use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\PhWoocommerceShipmentTrackingProPlugin\PhWoocommerceShipmentTrackingProPlugin;
    1213use ShoppingFeed\ShoppingFeedWC\Addons\Shipping\Shipping;
    1314
     
    2728
    2829    /**
    29      * Shipping class
    3030     * @var Marketplaces
    3131     */
     
    3333
    3434    /**
    35      * Shipping class
    3635     * @var ChainedProducts
    3736     */
     
    3938
    4039    /**
    41      * Shipping class
    4240     * @var ASTPlugin
    4341     */
    4442    private $ast_plugin;
    4543
     44    /**
     45     * @var PhWoocommerceShipmentTrackingProPlugin
     46     */
     47    private $woocommerce_shipment_tracking_pro;
     48
    4649    public function __construct() {
    47         $this->shipping                = new Shipping();
    48         $this->inventory               = new Inventory();
    49         $this->marketplaces            = new Marketplaces();
    50         $this->chained_products_plugin = new ChainedProducts();
    51         $this->ast_plugin              = new ASTPlugin();
     50        $this->shipping                          = new Shipping();
     51        $this->inventory                         = new Inventory();
     52        $this->marketplaces                      = new Marketplaces();
     53        $this->chained_products_plugin           = new ChainedProducts();
     54        $this->ast_plugin                        = new ASTPlugin();
     55        $this->woocommerce_shipment_tracking_pro = new PhWoocommerceShipmentTrackingProPlugin();
    5256    }
    5357}
  • shopping-feed/tags/6.1.14/src/Addons/Plugins/ASTPlugin/ASTPlugin.php

    r2728392 r2748452  
    99 * Class ASTPlugin to manage the plugin advanced shipment tracking
    1010 * @link https://wordpress.org/plugins/woo-advanced-shipment-tracking/
    11  * @package ShoppingFeed\ShoppingFeedWC\Addons\ASTPlugin
     11 * @package ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ASTPlugin
    1212 */
    1313class ASTPlugin {
  • shopping-feed/tags/6.1.14/src/Addons/Plugins/ChainedProductsPlugin/ChainedProducts.php

    r2721915 r2748452  
    99 * Class ChainedProducts to manage the plugin chained products
    1010 * @link https://woocommerce.com/products/chained-products/
    11  * @package ShoppingFeed\ShoppingFeedWC\Addons\ChainedProductsPlugin
     11 * @package ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ChainedProductsPlugin
    1212 */
    1313class ChainedProducts {
  • shopping-feed/tags/6.1.14/src/Admin/Options.php

    r2734526 r2748452  
    4343    //Account options
    4444    const SF_ACCOUNT_OPTIONS = 'sf_account_options';
    45     const SF_FEED_OPTIONS    = 'sf_feed_options';
     45    const SF_FEED_OPTIONS = 'sf_feed_options';
    4646
    4747    //Feed options
    4848    const SF_SHIPPING_OPTIONS = 'sf_shipping_options';
    49     const SF_ORDERS_OPTIONS   = 'sf_orders_options';
     49    const SF_ORDERS_OPTIONS = 'sf_orders_options';
    5050
    5151    //Shipping options
     
    8787                    'manage_options',
    8888                    self::SF_SLUG,
    89                     array( $this, 'sf_settings_page' )
     89                    [ $this, 'sf_settings_page' ]
    9090                );
    9191            }
     
    125125                register_setting(
    126126                    'sf_yoast_page_fields',
    127                     self::SF_YOAST_OPTIONS
     127                    self::SF_YOAST_OPTIONS,
     128                    [
     129                        'sanitize_callback' => [ $this, 'default_yoast_option_value' ],
     130                    ]
    128131                );
    129132            }
     
    154157
    155158    /**
     159     * Force save a default value to register 0 if the checkbox is unchecked
     160     *
     161     * @param $value
     162     *
     163     * @return array|object
     164     * @author Stéphane Gillot
     165     */
     166    public function default_yoast_option_value( $value ) {
     167
     168        return wp_parse_args(
     169            $value,
     170            [
     171                'use_principal_categories' => '0',
     172            ]
     173        );
     174    }
     175
     176    /**
    156177     * Define the page structure
    157178     */
     
    164185        $tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'account';
    165186
    166         $tabs = array(
    167             array(
    168                 'tab' => 'account',
    169                 'url' => '?page=' . self::SF_SLUG,
     187        $tabs = [
     188            [
     189                'tab'   => 'account',
     190                'url'   => '?page=' . self::SF_SLUG,
    170191                'title' => __( 'Account', 'shopping-feed' ),
    171             ),
    172             array(
    173                 'tab' => 'feed-settings',
    174                 'url' => '?page=' . self::SF_SLUG . '&tab=feed-settings',
     192            ],
     193            [
     194                'tab'   => 'feed-settings',
     195                'url'   => '?page=' . self::SF_SLUG . '&tab=feed-settings',
    175196                'title' => __( 'Feed', 'shopping-feed' ),
    176             ),
    177             array(
    178                 'tab' => 'shipping-settings',
    179                 'url' => '?page=' . self::SF_SLUG . '&tab=shipping-settings',
     197            ],
     198            [
     199                'tab'   => 'shipping-settings',
     200                'url'   => '?page=' . self::SF_SLUG . '&tab=shipping-settings',
    180201                'title' => __( 'Shipping', 'shopping-feed' ),
    181             ),
    182             array(
    183                 'tab' => 'orders-settings',
    184                 'url' => '?page=' . self::SF_SLUG . '&tab=orders-settings',
     202            ],
     203            [
     204                'tab'   => 'orders-settings',
     205                'url'   => '?page=' . self::SF_SLUG . '&tab=orders-settings',
    185206                'title' => __( 'Orders', 'shopping-feed' ),
    186             ),
    187             array(
    188                 'tab' => 'logs',
    189                 'url' => admin_url( 'admin.php?page=wc-status&tab=logs' ),
    190                 'title' => __( 'Logs', 'shopping-feed' ),
    191             ),
    192         );
    193 
    194         if ( is_plugin_active( 'wordpress-seo/wp-seo.php' ) || is_plugin_active( 'worpdress-seo-premium/wp-seo-premium.php' ) ) {
    195             $tabs[] = array(
    196                 'tab' => 'yoast-settings',
    197                 'url' => '?page=' . self::SF_SLUG . '&tab=yoast-settings',
     207            ],
     208        ];
     209
     210        if ( defined( 'WPSEO_FILE' ) || defined( 'WPSEO_PREMIUM_FILE' ) ) {
     211            $tabs[] = [
     212                'tab'   => 'yoast-settings',
     213                'url'   => '?page=' . self::SF_SLUG . '&tab=yoast-settings',
    198214                'title' => __( 'Yoast', 'shopping-feed' ),
    199             );
     215            ];
    200216        }
    201217
     218        $tabs[] = [
     219            'tab'   => 'logs',
     220            'url'   => admin_url( 'admin.php?page=wc-status&tab=logs' ),
     221            'title' => __( 'Logs', 'shopping-feed' ),
     222        ];
    202223        ?>
    203224        <div class="wrap sf__plugin">
    204225
    205                 <h1 class="sf__header">
    206                     <div class="sf__logo"><?php echo esc_html( get_admin_page_title() ); ?></div>
    207                     <div class="sf__version"><?php esc_html_e( 'Plugin version:', 'shopping-feed' ); ?> <?php echo esc_html( SF_VERSION ); ?></div>
    208                 </h1>
     226            <h1 class="sf__header">
     227                <div class="sf__logo"><?php echo esc_html( get_admin_page_title() ); ?></div>
     228                <div class="sf__version"><?php esc_html_e( 'Plugin version:', 'shopping-feed' ); ?><?php echo esc_html( SF_VERSION ); ?></div>
     229            </h1>
    209230
    210231            <nav class="nav-tab-wrapper">
     
    212233                    <?php
    213234                    foreach (
    214                     $tabs as $_tab
     235                        $tabs as $_tab
    215236                    ) {
    216237                        ?>
     
    248269                    default:
    249270                        break;
    250         endswitch;
     271                endswitch;
    251272                ?>
    252273        </div>
     
    278299                ?>
    279300                <!-- Here we are comparing stored value with 1. Stored value is 1 if user checks the checkbox otherwise empty string. -->
    280                 <input type="checkbox" name="<?php echo esc_html( sprintf( '%s[use_principal_categories]', self::SF_YOAST_OPTIONS ) ); ?>" value="1" <?php checked( 1, (int) $this->sf_yoast_options['use_principal_categories'], true ); ?> />
     301                <input type="checkbox"
     302                       name="<?php echo esc_html( sprintf( '%s[use_principal_categories]', self::SF_YOAST_OPTIONS ) ); ?>"
     303                       value="1" <?php checked( 1, (int) $this->sf_yoast_options['use_principal_categories'], true ); ?> />
    281304                <?php
    282305            },
     
    305328     */
    306329    public function init_account_setting_page() {
    307             //check clean action
    308             $this->check_clean_action();
    309 
    310             //load assets
    311             $this->load_assets();
    312 
    313             add_settings_section(
    314                 'sf_account_settings',
    315                 __( 'Account settings', 'shopping-feed' ),
    316                 function () {
    317                 },
    318                 self::SF_ACCOUNT_SETTINGS_PAGE
    319             );
     330        //check clean action
     331        $this->check_clean_action();
     332
     333        //load assets
     334        $this->load_assets();
     335
     336        add_settings_section(
     337            'sf_account_settings',
     338            __( 'Account settings', 'shopping-feed' ),
     339            function () {
     340            },
     341            self::SF_ACCOUNT_SETTINGS_PAGE
     342        );
    320343        ?>
    321344        <div class="wrap">
     
    428451                ?>
    429452                <!--        REQUIREMENTS     -->
    430         </div>
     453            </div>
    431454        </div>
    432455
    433456        <div class="sf__column">
    434457            <div class="sf__marketing">
    435             <?php MarketingBord::get_instance()->display_marketing_bord(); ?>
     458                <?php MarketingBord::get_instance()->display_marketing_bord(); ?>
    436459            </div>
    437460        </div>
     
    453476            'sf_app',
    454477            SF_PLUGIN_URL . 'assets/css/app.css',
    455             array(),
     478            [],
    456479            true
    457480        );
     
    460483            'multi_js',
    461484            SF_PLUGIN_URL . 'assets/js/multi.min.js',
    462             array( 'jquery' ),
     485            [ 'jquery' ],
    463486            true,
    464487            true
     
    468491            'accounts',
    469492            SF_PLUGIN_URL . 'assets/js/accounts.js',
    470             array( 'jquery', 'underscore' ),
     493            [ 'jquery', 'underscore' ],
    471494            true,
    472495            true
    473496        );
    474497
    475         wp_enqueue_script( 'multi_js_init', SF_PLUGIN_URL . 'assets/js/init.js', array( 'multi_js' ), true );
     498        wp_enqueue_script( 'multi_js_init', SF_PLUGIN_URL . 'assets/js/init.js', [ 'multi_js' ], true );
    476499        wp_localize_script(
    477500            'multi_js_init',
    478501            'sf_options',
    479             array(
     502            [
    480503                'selected_orders'   => __( 'Selected order status', 'shopping-feed' ),
    481504                'unselected_orders' => __( 'Unselected order status', 'shopping-feed' ),
    482505                'search'            => __( 'Search', 'shopping-feed' ),
    483             )
     506            ]
    484507        );
    485508    }
     
    525548                        echo ! empty( $sf_last_generation_date ) ? esc_html( $sf_last_generation_date ) : esc_html__( 'Never', 'shopping-feed' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    526549                        ?>
    527                         <a href="<?php echo esc_url( ShoppingFeedHelper::get_public_feed_url_with_generation() ); ?>" target="_blank">
     550                        <a href="<?php echo esc_url( ShoppingFeedHelper::get_public_feed_url_with_generation() ); ?>"
     551                           target="_blank">
    528552                            <?php esc_html_e( 'Refresh', 'shopping-feed' ); ?>
    529553                        </a>
    530554                    <?php else : ?>
    531                         <strong>(<?php esc_html_e( 'The feed is update is running', 'shopping-feed' ); ?>) <a href="#" onClick="window.location.reload();"><?php esc_html_e( 'Refresh to check progress', 'shopping-feed' ); ?></a></strong>
     555                        <strong>(<?php esc_html_e( 'The feed is update is running', 'shopping-feed' ); ?>) <a href="#"
     556                                                                                                              onClick="window.location.reload();"><?php esc_html_e( 'Refresh to check progress', 'shopping-feed' ); ?></a></strong>
    532557                    <?php endif; ?>
    533558                </p>
     
    541566        $product_categories = get_terms(
    542567            ShoppingFeedHelper::wc_category_taxonomy(),
    543             array(
    544                 'orderby' => 'name',
    545                 'order' => 'asc',
     568            [
     569                'orderby'    => 'name',
     570                'order'      => 'asc',
    546571                'hide_empty' => false,
    547             )
     572            ]
    548573        );
    549574
     
    585610                    </option>
    586611                </select>
    587                 <p class="description" id="tagline-description"><?php echo esc_attr_e( 'Category Display Mode', 'shopping-feed' ); ?></p>
     612                <p class="description"
     613                   id="tagline-description"><?php echo esc_attr_e( 'Category Display Mode', 'shopping-feed' ); ?></p>
    588614                <?php
    589615            },
     
    604630                        ?>
    605631                        <option value="<?php echo esc_html( $category->term_id ); ?>"
    606                             <?php selected( in_array( $category->term_id, ! empty( $this->sf_feed_options['categories'] ) ? $this->sf_feed_options['categories'] : array() ), 1 ); ?>
     632                            <?php selected( in_array( $category->term_id, ! empty( $this->sf_feed_options['categories'] ) ? $this->sf_feed_options['categories'] : [] ), 1 ); ?>
    607633                        >
    608634                            <?php echo esc_html( $category->name ); ?></option>
     
    634660        );
    635661
    636         $frequencies_options = array();
    637         for ( $i = 1; $i <= 24; $i++ ) {
     662        $frequencies_options = [];
     663        for ( $i = 1; $i <= 24; $i ++ ) {
    638664            $frequencies_options[ $i * HOUR_IN_SECONDS ] = sprintf(
    639                 /* translators: %s: Frequency. */
     665            /* translators: %s: Frequency. */
    640666                _n(
    641667                    '%s hour',
     
    682708                <select name="<?php echo esc_html( sprintf( '%s[part_size]', self::SF_FEED_OPTIONS ) ); ?>">
    683709                    <?php
    684                     foreach ( array( 10, 20, 50, 100, 200, 500, 1000 ) as $part_size_option ) {
     710                    foreach ( [ 10, 20, 50, 100, 200, 500, 1000 ] as $part_size_option ) {
    685711                        ?>
    686712                        <option
     
    693719                </select>
    694720                <p class="description" id="tagline-description">
    695                    <?php esc_attr_e( 'Batch size (default 200 to decrease in case of performance issues)', 'shopping-feed' ); ?>
     721                    <?php esc_attr_e( 'Batch size (default 200 to decrease in case of performance issues)', 'shopping-feed' ); ?>
    696722                </p>
    697723                <p class="description">
    698724                    <?php esc_attr_e( 'If the feed is blocked and not generated', 'shopping-feed' ); ?>
    699                     <a href="<?php echo sprintf( '%s&clean_process=true', esc_url( ShoppingFeedHelper::get_setting_link() ) ); ?>" class="button-link-delete"><?php esc_attr_e( 'click here', 'shopping-feed' ); ?></a>
     725                    <a href="<?php echo sprintf( '%s&clean_process=true', esc_url( ShoppingFeedHelper::get_setting_link() ) ); ?>"
     726                       class="button-link-delete"><?php esc_attr_e( 'click here', 'shopping-feed' ); ?></a>
    700727                    <?php esc_attr_e( 'to clean all running process', 'shopping-feed' ); ?>
    701728                    <?php echo esc_html( sprintf( '(%s)', $running_process ) ); ?>
     
    726753            function () use ( $shipping_zones, $selected_shipping_zone ) {
    727754                ?>
    728                     <input class="hidden" id="selected_shipping_zone" value="<?php echo esc_attr( $selected_shipping_zone ); ?>">
    729                     <select id="default_shipping_zone" name="<?php echo esc_attr( sprintf( '%s[zone]', self::SF_FEED_OPTIONS ) ); ?>">
    730                         <option value=""><?php echo esc_attr_e( 'None', 'shopping-feed' ); ?></option>
     755                <input class="hidden" id="selected_shipping_zone"
     756                       value="<?php echo esc_attr( $selected_shipping_zone ); ?>">
     757            <select id="default_shipping_zone"
     758                    name="<?php echo esc_attr( sprintf( '%s[zone]', self::SF_FEED_OPTIONS ) ); ?>">
     759                <option value=""><?php echo esc_attr_e( 'None', 'shopping-feed' ); ?></option>
     760                <?php
     761                if ( ! empty( $shipping_zones ) ) {
     762                    foreach ( $shipping_zones as $zone ) {
     763                        ?>
     764                        <option
     765                                value="<?php echo esc_attr( $zone['id'] ); ?>"
     766                            <?php selected( $zone['id'], $selected_shipping_zone ); ?>
     767                        ><?php echo esc_html( $zone['zone_name'] ); ?></option>
    731768                        <?php
    732                         if ( ! empty( $shipping_zones ) ) {
    733                             foreach ( $shipping_zones as $zone ) {
    734                                 ?>
    735                             <option
    736                                     value="<?php echo esc_attr( $zone['id'] ); ?>"
    737                                 <?php selected( $zone['id'], $selected_shipping_zone ); ?>
    738                             ><?php echo esc_html( $zone['zone_name'] ); ?></option>
    739                                 <?php
    740                             }
    741                             ?>
     769                    }
     770                    ?>
    742771                    </select>
    743772                    <p class="description"
    744773                       id="tagline-description"><?php echo esc_attr_e( 'Selected shipping zone defines shipping method data used in the feed', 'shopping-feed' ); ?></p>
    745                             <?php
    746                         }},
     774                    <?php
     775                }
     776            },
    747777            self::SF_FEED_SETTINGS_PAGE,
    748778            'sf_feed_settings'
     
    795825        $this->load_assets();
    796826
    797         $zone_with_methods = ShoppingFeedHelper::get_zones_with_shipping_methods();
    798         $default_shipping_method = ShoppingFeedHelper::get_default_shipping_method();
     827        $zone_with_methods                            = ShoppingFeedHelper::get_zones_with_shipping_methods();
     828        $default_shipping_method                      = ShoppingFeedHelper::get_default_shipping_method();
    799829        $sf_orders_options_default_shipping_method_id = ! empty( $default_shipping_method['method_id'] ) ? $default_shipping_method['method_id'] : false;
    800830
     
    811841            function () {
    812842                ?>
    813                     <select id="retrieval_mode" name="<?php echo esc_html( sprintf( '%s[retrieval_mode]', self::SF_SHIPPING_OPTIONS ) ); ?>">
    814                         <option value="ADDONS"
    815                             <?php selected( 'ADDONS', $this->sf_shipping_options['retrieval_mode'] ? $this->sf_shipping_options['retrieval_mode'] : false ); ?>>Addons</option>
    816                         <option value="METAS"
    817                             <?php selected( 'METAS', $this->sf_shipping_options['retrieval_mode'] ? $this->sf_shipping_options['retrieval_mode'] : false ); ?>>Métas</option>
    818                     </select>
    819                     <p class="description"
    820                        id="tagline-description">
    821                        <?php echo esc_attr_e( 'How shipping information will be retrieved', 'shopping-feed' ); ?>
    822                        </p>
    823                     <?php
     843                <select id="retrieval_mode"
     844                        name="<?php echo esc_html( sprintf( '%s[retrieval_mode]', self::SF_SHIPPING_OPTIONS ) ); ?>">
     845                    <option value="ADDONS"
     846                        <?php selected( 'ADDONS', $this->sf_shipping_options['retrieval_mode'] ? $this->sf_shipping_options['retrieval_mode'] : false ); ?>>
     847                        Addons
     848                    </option>
     849                    <option value="METAS"
     850                        <?php selected( 'METAS', $this->sf_shipping_options['retrieval_mode'] ? $this->sf_shipping_options['retrieval_mode'] : false ); ?>>
     851                        Métas
     852                    </option>
     853                </select>
     854                <p class="description"
     855                   id="tagline-description">
     856                    <?php echo esc_attr_e( 'How shipping information will be retrieved', 'shopping-feed' ); ?>
     857                </p>
     858                <?php
    824859            },
    825860            self::SF_SHIPPING_SETTINGS_PAGE,
     
    832867            function () use ( $zone_with_methods, $sf_orders_options_default_shipping_method_id ) {
    833868                ?>
    834                     <select id="default_shipping_method" name="<?php echo esc_html( sprintf( '%s[default_shipping_method]', self::SF_SHIPPING_OPTIONS ) ); ?>">
    835                         <option value=""><?php echo esc_attr_e( '-', 'shopping-feed' ); ?></option>
    836                         <?php
    837                         if ( ! empty( $zone_with_methods ) ) {
    838                             foreach ( $zone_with_methods as $zone_with_method ) {
    839                                 ?>
    840                                 <optgroup label="<?php echo esc_html( $zone_with_method['zone_name'] ); ?>">
     869                <select id="default_shipping_method"
     870                        name="<?php echo esc_html( sprintf( '%s[default_shipping_method]', self::SF_SHIPPING_OPTIONS ) ); ?>">
     871                    <option value=""><?php echo esc_attr_e( '-', 'shopping-feed' ); ?></option>
     872                    <?php
     873                    if ( ! empty( $zone_with_methods ) ) {
     874                        foreach ( $zone_with_methods as $zone_with_method ) {
     875                            ?>
     876                            <optgroup label="<?php echo esc_html( $zone_with_method['zone_name'] ); ?>">
    841877                                <?php
    842878                                if ( ! empty( $zone_with_method['methods'] ) ) {
     
    844880                                        ?>
    845881                                        <option value="<?php echo wc_esc_json( wp_json_encode( $shipping_method ) ); ?>"
    846                                         <?php selected( $shipping_method['method_id'], $sf_orders_options_default_shipping_method_id ); ?>>
    847                                         <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?>
     882                                            <?php selected( $shipping_method['method_id'], $sf_orders_options_default_shipping_method_id ); ?>>
     883                                            <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?>
    848884                                        </option>
    849885                                        <?php
     
    851887                                }
    852888                                ?>
    853                                 </optgroup>
    854                                 <?php
    855                             }
     889                            </optgroup>
     890                            <?php
    856891                        }
    857                         ?>
    858                     </select>
    859                     <p class="description"
    860                        id="tagline-description">
    861                        <?php echo esc_attr_e( 'Default shipping method for imported orders from SF', 'shopping-feed' ); ?>
    862                        </p>
    863                     <?php
     892                    }
     893                    ?>
     894                </select>
     895                <p class="description"
     896                   id="tagline-description">
     897                    <?php echo esc_attr_e( 'Default shipping method for imported orders from SF', 'shopping-feed' ); ?>
     898                </p>
     899                <?php
    864900            },
    865901            self::SF_SHIPPING_SETTINGS_PAGE,
     
    867903        );
    868904
    869         $sf_carriers = ShoppingFeedHelper::get_sf_carriers();
     905        $sf_carriers       = ShoppingFeedHelper::get_sf_carriers();
    870906        $zone_with_methods = ShoppingFeedHelper::get_zones_with_shipping_methods();
    871907
    872908        if ( ! empty( $sf_carriers ) ) {
    873             $matching_shipping_method = ! empty( $this->sf_shipping_options['matching_shipping_method'] ) ? $this->sf_shipping_options['matching_shipping_method'] : array();
     909            $matching_shipping_method = ! empty( $this->sf_shipping_options['matching_shipping_method'] ) ? $this->sf_shipping_options['matching_shipping_method'] : [];
    874910            add_settings_section(
    875911                'sf_orders_settings_shippings_methods_matching',
     
    895931                    function () use ( $zone_with_methods, $sf_carrier_id, $matching_shipping_method_carrier ) {
    896932                        ?>
    897                         <select id="<?php echo esc_html( 'matching_shipping_' . $sf_carrier_id ); ?>" name="<?php echo esc_html( sprintf( '%s[matching_shipping_method][%s]', self::SF_SHIPPING_OPTIONS, $sf_carrier_id ) ); ?>">
     933                        <select id="<?php echo esc_html( 'matching_shipping_' . $sf_carrier_id ); ?>"
     934                                name="<?php echo esc_html( sprintf( '%s[matching_shipping_method][%s]', self::SF_SHIPPING_OPTIONS, $sf_carrier_id ) ); ?>">
    898935                            <option value=""><?php echo esc_attr_e( '-', 'shopping-feed' ); ?></option>
    899936                            <?php
     
    902939                                    ?>
    903940                                    <optgroup label="<?php echo esc_html( $zone_with_method['zone_name'] ); ?>">
     941                                        <?php
     942                                        if ( ! empty( $zone_with_method['methods'] ) ) {
     943                                            foreach ( $zone_with_method['methods'] as $shipping_method ) {
     944                                                $shipping_method['sf_shipping'] = $sf_carrier_id;
     945                                                ?>
     946                                                <option value="<?php echo wc_esc_json( wp_json_encode( $shipping_method ) ); ?>"
     947                                                    <?php selected( wp_json_encode( $shipping_method ), $matching_shipping_method_carrier ); ?>>
     948                                                    <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?></option>>
     949                                                <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?></option>
     950                                                <?php
     951                                            }
     952                                        }
     953                                        ?>
     954                                    </optgroup>
     955
    904956                                    <?php
    905                                     if ( ! empty( $zone_with_method['methods'] ) ) {
    906                                         foreach ( $zone_with_method['methods'] as $shipping_method ) {
    907                                             $shipping_method['sf_shipping'] = $sf_carrier_id;
    908                                             ?>
    909                                             <option value="<?php echo wc_esc_json( wp_json_encode( $shipping_method ) ); ?>"
    910                                             <?php selected( wp_json_encode( $shipping_method ), $matching_shipping_method_carrier ); ?>>
    911                                             <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?></option>>
    912                                             <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?></option>
    913                                             <?php
    914                                         }
    915                                     }
    916                                     ?>
    917 </optgroup>
    918 
    919                                                             <?php
    920957                                }
    921958                            }
     
    929966            }
    930967        }
    931 
    932968        ?>
    933969        <div class="wrap">
     
    961997
    962998        //cron settings
    963         $frequencies = array( 5, 10, 15, 30, 45, 60 );
    964         $frequencies_options = array();
     999        $frequencies         = [ 5, 10, 15, 30, 45, 60 ];
     1000        $frequencies_options = [];
    9651001        foreach ( $frequencies as $frequency ) {
    9661002            $frequencies_options[ $frequency * MINUTE_IN_SECONDS ] = sprintf( '%s %s', $frequency, __( 'min', 'shopping-feed' ) );
     
    10511087                            ?>
    10521088                            <option value="<?php echo esc_html( $wc_status ); ?>"
    1053                                 <?php selected( in_array( $wc_status, ! empty( $this->sf_orders_options['statuses_actions'][ $sf_action ] ) ? $this->sf_orders_options['statuses_actions'][ $sf_action ] : array() ), 1 ); ?>
     1089                                <?php selected( in_array( $wc_status, ! empty( $this->sf_orders_options['statuses_actions'][ $sf_action ] ) ? $this->sf_orders_options['statuses_actions'][ $sf_action ] : [] ), 1 ); ?>
    10541090
    10551091                            ><?php echo esc_html( $name ); ?></option>
     
    10641100            );
    10651101        }
    1066 
    10671102        ?>
    10681103        <div class="wrap">
    10691104            <?php settings_errors(); ?>
    1070 
    10711105            <form method="post" action="options.php">
    10721106                <?php
     
    10791113        <?php
    10801114    }
    1081 
    10821115}
     1116
  • shopping-feed/tags/6.1.14/src/Products/Product.php

    r2735519 r2748452  
    8888    private function set_category() {
    8989
    90         $return        = '';
    91         $taxonomy_name = ShoppingFeedHelper::wc_category_taxonomy();
    92 
    93         if ( class_exists( '\WPSEO_Primary_Term' ) ) {
     90        $return           = '';
     91        $taxonomy_name    = ShoppingFeedHelper::wc_category_taxonomy();
     92        $sf_yoast_options = ShoppingFeedHelper::get_sf_yoast_options();
     93
     94        if ( class_exists( \WPSEO_Primary_Term::class ) && 1 === (int) $sf_yoast_options['use_principal_categories'] ) {
    9495            // Show Primary category by Yoast if it is enabled & set
    9596            $wpseo_primary_term = new \WPSEO_Primary_Term( $taxonomy_name, $this->id );
  • shopping-feed/tags/6.1.14/src/ShoppingFeedHelper.php

    r2734526 r2748452  
    152152     */
    153153    public static function get_sf_yoast_options() {
     154
    154155        $yoast_options = get_option( Options::SF_YOAST_OPTIONS, [] );
    155156
     
    157158            $yoast_options,
    158159            [
    159                 'use_principal_categories' => '0',
     160                'use_principal_categories' => '1',
    160161            ]
    161162        );
    162163    }
    163 
    164164
    165165    /**
  • shopping-feed/tags/6.1.14/vendor/autoload.php

    r2735519 r2748452  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitbcebf4b65ffce532675f3cde63be4313::getLoader();
     7return ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3::getLoader();
  • shopping-feed/tags/6.1.14/vendor/composer/autoload_classmap.php

    r2730546 r2748452  
    312312    'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ASTPlugin\\ASTPlugin' => $baseDir . '/src/Addons/Plugins/ASTPlugin/ASTPlugin.php',
    313313    'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ChainedProductsPlugin\\ChainedProducts' => $baseDir . '/src/Addons/Plugins/ChainedProductsPlugin/ChainedProducts.php',
     314    'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\PhWoocommerceShipmentTrackingProPlugin\\PhWoocommerceShipmentTrackingProPlugin' => $baseDir . '/src/Addons/Plugins/PhWoocommerceShipmentTrackingProPlugin/PhWoocommerceShipmentTrackingProPlugin.php',
    314315    'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Cdiscount' => $baseDir . '/src/Addons/Shipping/Marketplaces/Cdiscount.php',
    315316    'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Rdc' => $baseDir . '/src/Addons/Shipping/Marketplaces/Rdc.php',
  • shopping-feed/tags/6.1.14/vendor/composer/autoload_real.php

    r2735519 r2748452  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitbcebf4b65ffce532675f3cde63be4313
     5class ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitbcebf4b65ffce532675f3cde63be4313', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    27         spl_autoload_unregister(array('ComposerAutoloaderInitbcebf4b65ffce532675f3cde63be4313', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInitbcebf4b65ffce532675f3cde63be4313::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5252
    5353        if ($useStaticLoader) {
    54             $includeFiles = Composer\Autoload\ComposerStaticInitbcebf4b65ffce532675f3cde63be4313::$files;
     54            $includeFiles = Composer\Autoload\ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$files;
    5555        } else {
    5656            $includeFiles = require __DIR__ . '/autoload_files.php';
    5757        }
    5858        foreach ($includeFiles as $fileIdentifier => $file) {
    59             composerRequirebcebf4b65ffce532675f3cde63be4313($fileIdentifier, $file);
     59            composerRequiredd8933b5a3cada16dc312f6fa248b9d3($fileIdentifier, $file);
    6060        }
    6161
     
    6969 * @return void
    7070 */
    71 function composerRequirebcebf4b65ffce532675f3cde63be4313($fileIdentifier, $file)
     71function composerRequiredd8933b5a3cada16dc312f6fa248b9d3($fileIdentifier, $file)
    7272{
    7373    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • shopping-feed/tags/6.1.14/vendor/composer/autoload_static.php

    r2735519 r2748452  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitbcebf4b65ffce532675f3cde63be4313
     7class ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3
    88{
    99    public static $files = array (
     
    402402        'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ASTPlugin\\ASTPlugin' => __DIR__ . '/../..' . '/src/Addons/Plugins/ASTPlugin/ASTPlugin.php',
    403403        'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ChainedProductsPlugin\\ChainedProducts' => __DIR__ . '/../..' . '/src/Addons/Plugins/ChainedProductsPlugin/ChainedProducts.php',
     404        'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\PhWoocommerceShipmentTrackingProPlugin\\PhWoocommerceShipmentTrackingProPlugin' => __DIR__ . '/../..' . '/src/Addons/Plugins/PhWoocommerceShipmentTrackingProPlugin/PhWoocommerceShipmentTrackingProPlugin.php',
    404405        'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Cdiscount' => __DIR__ . '/../..' . '/src/Addons/Shipping/Marketplaces/Cdiscount.php',
    405406        'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Rdc' => __DIR__ . '/../..' . '/src/Addons/Shipping/Marketplaces/Rdc.php',
     
    447448    {
    448449        return \Closure::bind(function () use ($loader) {
    449             $loader->prefixLengthsPsr4 = ComposerStaticInitbcebf4b65ffce532675f3cde63be4313::$prefixLengthsPsr4;
    450             $loader->prefixDirsPsr4 = ComposerStaticInitbcebf4b65ffce532675f3cde63be4313::$prefixDirsPsr4;
    451             $loader->classMap = ComposerStaticInitbcebf4b65ffce532675f3cde63be4313::$classMap;
     450            $loader->prefixLengthsPsr4 = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$prefixLengthsPsr4;
     451            $loader->prefixDirsPsr4 = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$prefixDirsPsr4;
     452            $loader->classMap = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$classMap;
    452453
    453454        }, null, ClassLoader::class);
  • shopping-feed/tags/6.1.14/vendor/composer/installed.php

    r2735519 r2748452  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '6.1.13',
    4         'version' => '6.1.13.0',
     3        'pretty_version' => '6.1.14',
     4        'version' => '6.1.14.0',
    55        'type' => 'wordpress-plugin',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '32c9bb4498e0e8c9b31a5a672500c40787682378',
     8        'reference' => '30543d07ba92c4fcb261f42fbe3aa4a11c637b8a',
    99        'name' => 'shoppingfeed/shoppingfeed-for-woocommerce',
    1010        'dev' => false,
     
    102102        ),
    103103        'shoppingfeed/shoppingfeed-for-woocommerce' => array(
    104             'pretty_version' => '6.1.13',
    105             'version' => '6.1.13.0',
     104            'pretty_version' => '6.1.14',
     105            'version' => '6.1.14.0',
    106106            'type' => 'wordpress-plugin',
    107107            'install_path' => __DIR__ . '/../../',
    108108            'aliases' => array(),
    109             'reference' => '32c9bb4498e0e8c9b31a5a672500c40787682378',
     109            'reference' => '30543d07ba92c4fcb261f42fbe3aa4a11c637b8a',
    110110            'dev_requirement' => false,
    111111        ),
  • shopping-feed/trunk/readme.txt

    r2735519 r2748452  
    22Contributors: ShoppingFeed, BeAPI
    33Tags: shoppingfeed, marketplace, woocommerce, woocommerce shoppingfeed, create woocommerce products shoppingfeed, products feed, generate shoppingfeed, amazon, Jet, Walmart, many marketplace, import orders
    4 Stable tag: 6.1.13
    5 Version: 6.1.13
     4Stable tag: 6.1.14
     5Version: 6.1.14
    66Requires PHP: 5.6
    77Requires at least: 5.2
     
    1414
    1515== Changelog ==
    16 6.0.0: this is a major version, there are several changes and improvements which affect the architecture of the plugin. You will have to re-configure the plugin, all the previous settings will be lost
    17 6.0.1: edit readme.txt
    18 6.0.3: edit version number
    19 6.0.4: fix permalink issue
    20 6.0.5: correct attribute values
    21 6.0.6: add ean support for variations
    22 6.0.7: add weight as attribute + fix phone value
    23 6.0.8: add missing commit
    24 6.0.9  send WC shipping method name once order shipped
    25 6.0.10 fix deploy issue
    26 6.0.11 enhance logging
    27 6.0.12 fix static call
    28 6.0.13 add extra fields to feed
    29 6.0.14 add the possibility to export category tree in the feed
    30 6.0.15 add the possibility to choose the default statut for imported order
    31 6.0.16 sum quantity of all variations on parent
    32 6.0.17 using generator for generating products list"
    33 6.0.18 add async generation for feed
    34 6.0.19 add compat to the plugin Chained Product
    35 6.0.20 add compat to the plugin ATS
    36 6.0.21 Set status as publish on product list
    37 6.0.22 Fix file case issue
    38 6.0.23 If the billing address phone is empty, get the shipping one to display phone on the BO
    39 6.0.24 Tracking: fix bad condition
    40 6.0.25 Tracking: Add option to choose Retrieval Mode
    41 6.0.26 Fix version number
    42 6.0.27 Support WP 5.8
    43 6.0.28 Fix bad version
    44 6.0.29 AST compact with Shopping-Feed Advanced helper
    45 6.0.30 Do not force WC mail settings
    46 6.0.31 Do not send mails to other customers
    47 6.0.32 Add link to WC logs
    48 6.0.33 Fix priority issue with other plugins
    49 6.1.0 Add the possibility to connect multiple ShoppingFeed accounts to one WC shop
    50 6.1.3 Fix composer dependencies
    51 6.1.4 Added filter for fees handling + refresh translations
    52 6.1.5 Performances improvement : Logger and HTTP connection
    53 6.1.6 Release main
    54 6.1.7 Fix shipping options not saving
    55 6.1.8 Add Zalando as an available marketplace
    56 6.1.9 Fix wrong quantities for chained products
    57 6.1.10 Update AST addon to support the pro version
    58 6.1.11 Weight attribute is at the root of the product xml feed, 'other' field is map to the customer notes, Yoast categories are taken into account
    59 6.1.12 Fix missing admin tab
    60 6.1.13 Fix PHP error with WPSEO premium
     16* 6.1.14
     17  * Add support for Woocommerce Shipment Tracking Pro
     18  * Fix usage of Yoast option
     19  * Update readme
     20* 6.1.13
     21  * Fix PHP error with WPSEO premium
     22* 6.1.12
     23  * Fix missing admin tab
     24* 6.1.11
     25  * Weight attribute is at the root of the product xml feed
     26  * the 'other' field is map to the customer notes
     27  * Yoast categories are taken into account
     28* 6.1.10
     29  * Update AST addon to support the pro version
     30* 6.1.9
     31  * Fix wrong quantities for chained products
     32* 6.1.8
     33  * Add Zalando as an available marketplace
     34* 6.1.7
     35  * Fix shipping options not saving
     36* 6.1.6
     37  * Release main
     38* 6.1.5
     39  * Performances improvement : Logger and HTTP connection
     40* 6.1.4
     41  * Added filter for fees handling
     42  * refresh translations
     43* 6.1.3
     44  * Fix composer dependencies
     45* 6.1.0
     46  * Add the possibility to connect multiple ShoppingFeed accounts to one WC shop
     47* 6.0.33
     48  * Fix priority issue with other plugins
     49* 6.0.32
     50  * Add link to WC logs
     51* 6.0.31
     52  * Do not send mails to other customers
     53* 6.0.30
     54  * Do not force WC mail settings
     55* 6.0.29
     56  * AST compact with Shopping-Feed Advanced helper
     57* 6.0.28
     58  * Fix bad version
     59* 6.0.27
     60  * Support WP 5.8
     61* 6.0.26
     62  * Fix version number
     63* 6.0.25
     64  * Tracking: Add option to choose Retrieval Mode
     65* 6.0.24
     66  * Tracking: fix bad condition
     67* 6.0.23
     68  * If the billing address phone is empty, get the shipping one to display phone on the BO
     69* 6.0.22
     70  * Fix file case issue
     71* 6.0.21
     72  * Set status as publish on product list
     73* 6.0.20
     74  * add compat to the plugin ATS
     75* 6.0.19
     76  * add compat to the plugin Chained Product
     77* 6.0.18
     78  * add async generation for feed
     79* 6.0.17
     80  * using generator for generating products list"
     81* 6.0.16
     82  * sum quantity of all variations on parent
     83* 6.0.15
     84  * add the possibility to choose the default status for imported order
     85* 6.0.14
     86  * add the possibility to export category tree in the feed
     87* 6.0.13
     88  * add extra fields to feed
     89* 6.0.12
     90  * fix static call
     91* 6.0.11
     92  * enhance logging
     93* 6.0.10
     94  * fix deploy issue
     95* 6.0.9
     96  * send WC shipping method name once order shipped
     97* 6.0.8
     98  * add missing commit
     99* 6.0.7
     100  * add weight as attribute
     101  * fix phone value
     102* 6.0.6
     103  * add ean support for variations
     104* 6.0.5
     105  * correct attribute values
     106* 6.0.4
     107  * fix permalink issue
     108* 6.0.3
     109  * edit version number
     110* 6.0.1
     111  * edit readme.txt
     112* 6.0.0
     113  * this is a major version, there are several changes and improvements which affect the architecture of the plugin
     114  * You will have to re-configure the plugin, all the previous settings will be lost
    61115
    62116== Description ==
     
    84138- In Settings, check that ShoppingFeed is enabled and save changes
    85139
     140## Shipment tracking support
     141
     142For now, the only shipment tracking plugins supported are :
     143
     144* Advanced Shipment Tracking : https://wordpress.org/plugins/woo-advanced-shipment-tracking/
     145* Advanced Shipment Tracking PRO : https://www.zorem.com/product/woocommerce-advanced-shipment-tracking/
     146* Woocommerce Shipment Tracking Pro : https://www.pluginhive.com/product/woocommerce-shipment-tracking-pro/
     147
    86148## Configuration
    87149
     
    95157By default, we support `product_cat` as taxonomy slug to identify product's categories, you can override it using this snippet :
    96158
    97 `
     159```php
    98160add_filter( 'shopping_feed_custom_category_taxonomy', 'your_custom_category_function' );
     161
    99162/** @return string */
    100163function your_custom_category_function() {
    101 return 'your_custom_category_slug';
    102 }
    103 `
     164    return 'your_custom_category_slug';
     165}
     166```
    104167
    105168### Brands
    106169By default, we don’t support any custom plugin for product's brand, you can set custom taxonomy slug to identify it by using this snippet :
    107170
    108 `
     171```php
    109172add_filter( 'shopping_feed_custom_brand_taxonomy', 'your_custom_brand_function' );
     173
    110174/** @return string */
    111175function your_custom_brand_function() {
    112 return 'your_custom_brand_slug';
    113 }
    114 `
     176    return 'your_custom_brand_slug';
     177}
     178```
    115179
    116180### EAN
    117181By default, we don’t support any custom plugin for product EAN, you can set custom taxonomy slug to identify it by using this snippet :
    118182
    119 `
     183```php
    120184add_filter( 'shopping_feed_custom_ean', 'your_custom_ean_function' );
     185
    121186/** @return string */
    122187function your_custom_ean_function() {
    123 return 'your_custom_ean_slug';
    124 }
    125 `
     188    return 'your_custom_ean_slug';
     189}
     190```
    126191
    127192### Feed’s products list args
    128193To export the feed, we use the plugin’s setting, if you want to add/use specific args, you can use the following snippet
    129194
    130 `
     195```php
    131196add_filter( 'shopping_feed_products_custom_args', 'your_custom_args_function' );
    132 /**
    133 * @return array
    134 */
     197
     198/** @return array */
    135199function your_custom_args_function() {
    136200//array of args
    137 return array();
    138 }
    139 `
     201    return array();
     202}
     203```
    140204
    141205You can find all available args here
     
    145209By default, we import orders with ‘waiting_shipment’ status, if you want to import more statuses or a specific one, you can use the following snippet
    146210
    147 `
     211```php
    148212add_filter( 'shopping_feed_orders_to_import', 'your_custom_statuses_function' );
     213
    149214/** @return array */
    150215function your_custom_statuses_function() {
    151 //array of statuses (strings)
    152 return array();
    153 }
    154 `
     216    // array of statuses (strings)
     217    return array();
     218}
     219```
    155220
    156221`Status available` : created, waiting_store_acceptance, refused, waiting_shipment, shipped, cancelled, refunded, partially_refunded, partially_shipped
     
    159224
    160225### Tracking number
    161 By default, we don’t support any custom plugin for wc order tracking number, you can set custom meta key to identify it, you can use the following snippet
    162 
    163 `
     226If you want to set a custom meta key to identify it, you can use the following snippet
     227
     228```php
    164229add_filter( 'shopping_feed_tracking_number', 'your_custom_tracking_number_function' );
     230
    165231/** @return string */
    166232function your_custom_tracking_number_function() {
    167 return ‘your_custom_order_meta_key’
    168 }
    169 `
     233    return ‘your_custom_order_meta_key’
     234}
     235```
    170236
    171237### Tracking url
    172 By default, we don’t support any custom plugin for wc order tracking url, you can set custom meta key to identify it, you can use the following snippet
    173 `
     238If you want to set a custom meta key to identify it, you can use the following snippet
     239```php
    174240add_filter( 'shopping_feed_tracking_link', 'your_custom_tracking_url_function' );
     241
    175242/** @return string */
    176243function your_custom_tracking_url_function() {
    177 return ‘your_custom_order_meta_key’
    178 }
    179 `
     244    return ‘your_custom_order_meta_key’
     245}
     246```
    180247
    181248### Extra Fields
    182249If you want to add add extra fields to your XML Feed, you can use the following snippet
    183 `
     250```php
    184251add_filter( 'shopping_feed_extra_fields', 'your_custom_fields_function', 10, 2 );
     252
    185253/** @return array */
    186254function your_custom_tracking_url_function($fields, $wc_product) {
    187 $fields[] = array('name'=>'my_field', 'value'=>'my_value');
    188 return $fields;
    189 }
    190 `
     255    $fields[] = array('name'=>'my_field', 'value'=>'my_value');
     256    return $fields;
     257}
     258```
    191259
    192260### Variation Images
    193261By default, we don’t support any custom plugin for adding images to WC Product Variation, with this filter you can set the desired images to each variation, you can use the following snippet
    194 `
     262```php
    195263add_filter( 'shopping_feed_variation_images', 'your_custom_variation_images_function', 10, 2 );
     264
    196265/** @return array */
    197266function your_custom_tracking_url_function($images, $wc_product) {
    198 $images[] = 'https://domain.com/image1.jpg';
    199 $images[] = 'https://domain.com/image2.jpg';
    200 return $images;
    201 }
    202 `
     267    $images[] = 'https://domain.com/image1.jpg';
     268    $images[] = 'https://domain.com/image2.jpg';
     269
     270    return $images;
     271}
     272```
  • shopping-feed/trunk/shoppingfeed.php

    r2735519 r2748452  
    88 * Text Domain:     shopping-feed
    99 * Domain Path:     /languages
    10  * Version:         6.1.13
     10 * Version:         6.1.14
    1111 * Requires at least WP: 5.7
    1212 * Requires at least WooCommerce: 5.1.0
     
    2626}
    2727
    28 define( 'SF_VERSION', '6.1.13' );
     28define( 'SF_VERSION', '6.1.14' );
    2929define( 'SF_DB_VERSION_SLUG', 'SF_DB_VERSION' );
    3030define( 'SF_DB_VERSION', '1.0.0' );
  • shopping-feed/trunk/src/Addons/Addons.php

    r2542211 r2748452  
    1010use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ASTPlugin\ASTPlugin;
    1111use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ChainedProductsPlugin\ChainedProducts;
     12use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\PhWoocommerceShipmentTrackingProPlugin\PhWoocommerceShipmentTrackingProPlugin;
    1213use ShoppingFeed\ShoppingFeedWC\Addons\Shipping\Shipping;
    1314
     
    2728
    2829    /**
    29      * Shipping class
    3030     * @var Marketplaces
    3131     */
     
    3333
    3434    /**
    35      * Shipping class
    3635     * @var ChainedProducts
    3736     */
     
    3938
    4039    /**
    41      * Shipping class
    4240     * @var ASTPlugin
    4341     */
    4442    private $ast_plugin;
    4543
     44    /**
     45     * @var PhWoocommerceShipmentTrackingProPlugin
     46     */
     47    private $woocommerce_shipment_tracking_pro;
     48
    4649    public function __construct() {
    47         $this->shipping                = new Shipping();
    48         $this->inventory               = new Inventory();
    49         $this->marketplaces            = new Marketplaces();
    50         $this->chained_products_plugin = new ChainedProducts();
    51         $this->ast_plugin              = new ASTPlugin();
     50        $this->shipping                          = new Shipping();
     51        $this->inventory                         = new Inventory();
     52        $this->marketplaces                      = new Marketplaces();
     53        $this->chained_products_plugin           = new ChainedProducts();
     54        $this->ast_plugin                        = new ASTPlugin();
     55        $this->woocommerce_shipment_tracking_pro = new PhWoocommerceShipmentTrackingProPlugin();
    5256    }
    5357}
  • shopping-feed/trunk/src/Addons/Plugins/ASTPlugin/ASTPlugin.php

    r2728392 r2748452  
    99 * Class ASTPlugin to manage the plugin advanced shipment tracking
    1010 * @link https://wordpress.org/plugins/woo-advanced-shipment-tracking/
    11  * @package ShoppingFeed\ShoppingFeedWC\Addons\ASTPlugin
     11 * @package ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ASTPlugin
    1212 */
    1313class ASTPlugin {
  • shopping-feed/trunk/src/Addons/Plugins/ChainedProductsPlugin/ChainedProducts.php

    r2721915 r2748452  
    99 * Class ChainedProducts to manage the plugin chained products
    1010 * @link https://woocommerce.com/products/chained-products/
    11  * @package ShoppingFeed\ShoppingFeedWC\Addons\ChainedProductsPlugin
     11 * @package ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ChainedProductsPlugin
    1212 */
    1313class ChainedProducts {
  • shopping-feed/trunk/src/Admin/Options.php

    r2734526 r2748452  
    4343    //Account options
    4444    const SF_ACCOUNT_OPTIONS = 'sf_account_options';
    45     const SF_FEED_OPTIONS    = 'sf_feed_options';
     45    const SF_FEED_OPTIONS = 'sf_feed_options';
    4646
    4747    //Feed options
    4848    const SF_SHIPPING_OPTIONS = 'sf_shipping_options';
    49     const SF_ORDERS_OPTIONS   = 'sf_orders_options';
     49    const SF_ORDERS_OPTIONS = 'sf_orders_options';
    5050
    5151    //Shipping options
     
    8787                    'manage_options',
    8888                    self::SF_SLUG,
    89                     array( $this, 'sf_settings_page' )
     89                    [ $this, 'sf_settings_page' ]
    9090                );
    9191            }
     
    125125                register_setting(
    126126                    'sf_yoast_page_fields',
    127                     self::SF_YOAST_OPTIONS
     127                    self::SF_YOAST_OPTIONS,
     128                    [
     129                        'sanitize_callback' => [ $this, 'default_yoast_option_value' ],
     130                    ]
    128131                );
    129132            }
     
    154157
    155158    /**
     159     * Force save a default value to register 0 if the checkbox is unchecked
     160     *
     161     * @param $value
     162     *
     163     * @return array|object
     164     * @author Stéphane Gillot
     165     */
     166    public function default_yoast_option_value( $value ) {
     167
     168        return wp_parse_args(
     169            $value,
     170            [
     171                'use_principal_categories' => '0',
     172            ]
     173        );
     174    }
     175
     176    /**
    156177     * Define the page structure
    157178     */
     
    164185        $tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'account';
    165186
    166         $tabs = array(
    167             array(
    168                 'tab' => 'account',
    169                 'url' => '?page=' . self::SF_SLUG,
     187        $tabs = [
     188            [
     189                'tab'   => 'account',
     190                'url'   => '?page=' . self::SF_SLUG,
    170191                'title' => __( 'Account', 'shopping-feed' ),
    171             ),
    172             array(
    173                 'tab' => 'feed-settings',
    174                 'url' => '?page=' . self::SF_SLUG . '&tab=feed-settings',
     192            ],
     193            [
     194                'tab'   => 'feed-settings',
     195                'url'   => '?page=' . self::SF_SLUG . '&tab=feed-settings',
    175196                'title' => __( 'Feed', 'shopping-feed' ),
    176             ),
    177             array(
    178                 'tab' => 'shipping-settings',
    179                 'url' => '?page=' . self::SF_SLUG . '&tab=shipping-settings',
     197            ],
     198            [
     199                'tab'   => 'shipping-settings',
     200                'url'   => '?page=' . self::SF_SLUG . '&tab=shipping-settings',
    180201                'title' => __( 'Shipping', 'shopping-feed' ),
    181             ),
    182             array(
    183                 'tab' => 'orders-settings',
    184                 'url' => '?page=' . self::SF_SLUG . '&tab=orders-settings',
     202            ],
     203            [
     204                'tab'   => 'orders-settings',
     205                'url'   => '?page=' . self::SF_SLUG . '&tab=orders-settings',
    185206                'title' => __( 'Orders', 'shopping-feed' ),
    186             ),
    187             array(
    188                 'tab' => 'logs',
    189                 'url' => admin_url( 'admin.php?page=wc-status&tab=logs' ),
    190                 'title' => __( 'Logs', 'shopping-feed' ),
    191             ),
    192         );
    193 
    194         if ( is_plugin_active( 'wordpress-seo/wp-seo.php' ) || is_plugin_active( 'worpdress-seo-premium/wp-seo-premium.php' ) ) {
    195             $tabs[] = array(
    196                 'tab' => 'yoast-settings',
    197                 'url' => '?page=' . self::SF_SLUG . '&tab=yoast-settings',
     207            ],
     208        ];
     209
     210        if ( defined( 'WPSEO_FILE' ) || defined( 'WPSEO_PREMIUM_FILE' ) ) {
     211            $tabs[] = [
     212                'tab'   => 'yoast-settings',
     213                'url'   => '?page=' . self::SF_SLUG . '&tab=yoast-settings',
    198214                'title' => __( 'Yoast', 'shopping-feed' ),
    199             );
     215            ];
    200216        }
    201217
     218        $tabs[] = [
     219            'tab'   => 'logs',
     220            'url'   => admin_url( 'admin.php?page=wc-status&tab=logs' ),
     221            'title' => __( 'Logs', 'shopping-feed' ),
     222        ];
    202223        ?>
    203224        <div class="wrap sf__plugin">
    204225
    205                 <h1 class="sf__header">
    206                     <div class="sf__logo"><?php echo esc_html( get_admin_page_title() ); ?></div>
    207                     <div class="sf__version"><?php esc_html_e( 'Plugin version:', 'shopping-feed' ); ?> <?php echo esc_html( SF_VERSION ); ?></div>
    208                 </h1>
     226            <h1 class="sf__header">
     227                <div class="sf__logo"><?php echo esc_html( get_admin_page_title() ); ?></div>
     228                <div class="sf__version"><?php esc_html_e( 'Plugin version:', 'shopping-feed' ); ?><?php echo esc_html( SF_VERSION ); ?></div>
     229            </h1>
    209230
    210231            <nav class="nav-tab-wrapper">
     
    212233                    <?php
    213234                    foreach (
    214                     $tabs as $_tab
     235                        $tabs as $_tab
    215236                    ) {
    216237                        ?>
     
    248269                    default:
    249270                        break;
    250         endswitch;
     271                endswitch;
    251272                ?>
    252273        </div>
     
    278299                ?>
    279300                <!-- Here we are comparing stored value with 1. Stored value is 1 if user checks the checkbox otherwise empty string. -->
    280                 <input type="checkbox" name="<?php echo esc_html( sprintf( '%s[use_principal_categories]', self::SF_YOAST_OPTIONS ) ); ?>" value="1" <?php checked( 1, (int) $this->sf_yoast_options['use_principal_categories'], true ); ?> />
     301                <input type="checkbox"
     302                       name="<?php echo esc_html( sprintf( '%s[use_principal_categories]', self::SF_YOAST_OPTIONS ) ); ?>"
     303                       value="1" <?php checked( 1, (int) $this->sf_yoast_options['use_principal_categories'], true ); ?> />
    281304                <?php
    282305            },
     
    305328     */
    306329    public function init_account_setting_page() {
    307             //check clean action
    308             $this->check_clean_action();
    309 
    310             //load assets
    311             $this->load_assets();
    312 
    313             add_settings_section(
    314                 'sf_account_settings',
    315                 __( 'Account settings', 'shopping-feed' ),
    316                 function () {
    317                 },
    318                 self::SF_ACCOUNT_SETTINGS_PAGE
    319             );
     330        //check clean action
     331        $this->check_clean_action();
     332
     333        //load assets
     334        $this->load_assets();
     335
     336        add_settings_section(
     337            'sf_account_settings',
     338            __( 'Account settings', 'shopping-feed' ),
     339            function () {
     340            },
     341            self::SF_ACCOUNT_SETTINGS_PAGE
     342        );
    320343        ?>
    321344        <div class="wrap">
     
    428451                ?>
    429452                <!--        REQUIREMENTS     -->
    430         </div>
     453            </div>
    431454        </div>
    432455
    433456        <div class="sf__column">
    434457            <div class="sf__marketing">
    435             <?php MarketingBord::get_instance()->display_marketing_bord(); ?>
     458                <?php MarketingBord::get_instance()->display_marketing_bord(); ?>
    436459            </div>
    437460        </div>
     
    453476            'sf_app',
    454477            SF_PLUGIN_URL . 'assets/css/app.css',
    455             array(),
     478            [],
    456479            true
    457480        );
     
    460483            'multi_js',
    461484            SF_PLUGIN_URL . 'assets/js/multi.min.js',
    462             array( 'jquery' ),
     485            [ 'jquery' ],
    463486            true,
    464487            true
     
    468491            'accounts',
    469492            SF_PLUGIN_URL . 'assets/js/accounts.js',
    470             array( 'jquery', 'underscore' ),
     493            [ 'jquery', 'underscore' ],
    471494            true,
    472495            true
    473496        );
    474497
    475         wp_enqueue_script( 'multi_js_init', SF_PLUGIN_URL . 'assets/js/init.js', array( 'multi_js' ), true );
     498        wp_enqueue_script( 'multi_js_init', SF_PLUGIN_URL . 'assets/js/init.js', [ 'multi_js' ], true );
    476499        wp_localize_script(
    477500            'multi_js_init',
    478501            'sf_options',
    479             array(
     502            [
    480503                'selected_orders'   => __( 'Selected order status', 'shopping-feed' ),
    481504                'unselected_orders' => __( 'Unselected order status', 'shopping-feed' ),
    482505                'search'            => __( 'Search', 'shopping-feed' ),
    483             )
     506            ]
    484507        );
    485508    }
     
    525548                        echo ! empty( $sf_last_generation_date ) ? esc_html( $sf_last_generation_date ) : esc_html__( 'Never', 'shopping-feed' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    526549                        ?>
    527                         <a href="<?php echo esc_url( ShoppingFeedHelper::get_public_feed_url_with_generation() ); ?>" target="_blank">
     550                        <a href="<?php echo esc_url( ShoppingFeedHelper::get_public_feed_url_with_generation() ); ?>"
     551                           target="_blank">
    528552                            <?php esc_html_e( 'Refresh', 'shopping-feed' ); ?>
    529553                        </a>
    530554                    <?php else : ?>
    531                         <strong>(<?php esc_html_e( 'The feed is update is running', 'shopping-feed' ); ?>) <a href="#" onClick="window.location.reload();"><?php esc_html_e( 'Refresh to check progress', 'shopping-feed' ); ?></a></strong>
     555                        <strong>(<?php esc_html_e( 'The feed is update is running', 'shopping-feed' ); ?>) <a href="#"
     556                                                                                                              onClick="window.location.reload();"><?php esc_html_e( 'Refresh to check progress', 'shopping-feed' ); ?></a></strong>
    532557                    <?php endif; ?>
    533558                </p>
     
    541566        $product_categories = get_terms(
    542567            ShoppingFeedHelper::wc_category_taxonomy(),
    543             array(
    544                 'orderby' => 'name',
    545                 'order' => 'asc',
     568            [
     569                'orderby'    => 'name',
     570                'order'      => 'asc',
    546571                'hide_empty' => false,
    547             )
     572            ]
    548573        );
    549574
     
    585610                    </option>
    586611                </select>
    587                 <p class="description" id="tagline-description"><?php echo esc_attr_e( 'Category Display Mode', 'shopping-feed' ); ?></p>
     612                <p class="description"
     613                   id="tagline-description"><?php echo esc_attr_e( 'Category Display Mode', 'shopping-feed' ); ?></p>
    588614                <?php
    589615            },
     
    604630                        ?>
    605631                        <option value="<?php echo esc_html( $category->term_id ); ?>"
    606                             <?php selected( in_array( $category->term_id, ! empty( $this->sf_feed_options['categories'] ) ? $this->sf_feed_options['categories'] : array() ), 1 ); ?>
     632                            <?php selected( in_array( $category->term_id, ! empty( $this->sf_feed_options['categories'] ) ? $this->sf_feed_options['categories'] : [] ), 1 ); ?>
    607633                        >
    608634                            <?php echo esc_html( $category->name ); ?></option>
     
    634660        );
    635661
    636         $frequencies_options = array();
    637         for ( $i = 1; $i <= 24; $i++ ) {
     662        $frequencies_options = [];
     663        for ( $i = 1; $i <= 24; $i ++ ) {
    638664            $frequencies_options[ $i * HOUR_IN_SECONDS ] = sprintf(
    639                 /* translators: %s: Frequency. */
     665            /* translators: %s: Frequency. */
    640666                _n(
    641667                    '%s hour',
     
    682708                <select name="<?php echo esc_html( sprintf( '%s[part_size]', self::SF_FEED_OPTIONS ) ); ?>">
    683709                    <?php
    684                     foreach ( array( 10, 20, 50, 100, 200, 500, 1000 ) as $part_size_option ) {
     710                    foreach ( [ 10, 20, 50, 100, 200, 500, 1000 ] as $part_size_option ) {
    685711                        ?>
    686712                        <option
     
    693719                </select>
    694720                <p class="description" id="tagline-description">
    695                    <?php esc_attr_e( 'Batch size (default 200 to decrease in case of performance issues)', 'shopping-feed' ); ?>
     721                    <?php esc_attr_e( 'Batch size (default 200 to decrease in case of performance issues)', 'shopping-feed' ); ?>
    696722                </p>
    697723                <p class="description">
    698724                    <?php esc_attr_e( 'If the feed is blocked and not generated', 'shopping-feed' ); ?>
    699                     <a href="<?php echo sprintf( '%s&clean_process=true', esc_url( ShoppingFeedHelper::get_setting_link() ) ); ?>" class="button-link-delete"><?php esc_attr_e( 'click here', 'shopping-feed' ); ?></a>
     725                    <a href="<?php echo sprintf( '%s&clean_process=true', esc_url( ShoppingFeedHelper::get_setting_link() ) ); ?>"
     726                       class="button-link-delete"><?php esc_attr_e( 'click here', 'shopping-feed' ); ?></a>
    700727                    <?php esc_attr_e( 'to clean all running process', 'shopping-feed' ); ?>
    701728                    <?php echo esc_html( sprintf( '(%s)', $running_process ) ); ?>
     
    726753            function () use ( $shipping_zones, $selected_shipping_zone ) {
    727754                ?>
    728                     <input class="hidden" id="selected_shipping_zone" value="<?php echo esc_attr( $selected_shipping_zone ); ?>">
    729                     <select id="default_shipping_zone" name="<?php echo esc_attr( sprintf( '%s[zone]', self::SF_FEED_OPTIONS ) ); ?>">
    730                         <option value=""><?php echo esc_attr_e( 'None', 'shopping-feed' ); ?></option>
     755                <input class="hidden" id="selected_shipping_zone"
     756                       value="<?php echo esc_attr( $selected_shipping_zone ); ?>">
     757            <select id="default_shipping_zone"
     758                    name="<?php echo esc_attr( sprintf( '%s[zone]', self::SF_FEED_OPTIONS ) ); ?>">
     759                <option value=""><?php echo esc_attr_e( 'None', 'shopping-feed' ); ?></option>
     760                <?php
     761                if ( ! empty( $shipping_zones ) ) {
     762                    foreach ( $shipping_zones as $zone ) {
     763                        ?>
     764                        <option
     765                                value="<?php echo esc_attr( $zone['id'] ); ?>"
     766                            <?php selected( $zone['id'], $selected_shipping_zone ); ?>
     767                        ><?php echo esc_html( $zone['zone_name'] ); ?></option>
    731768                        <?php
    732                         if ( ! empty( $shipping_zones ) ) {
    733                             foreach ( $shipping_zones as $zone ) {
    734                                 ?>
    735                             <option
    736                                     value="<?php echo esc_attr( $zone['id'] ); ?>"
    737                                 <?php selected( $zone['id'], $selected_shipping_zone ); ?>
    738                             ><?php echo esc_html( $zone['zone_name'] ); ?></option>
    739                                 <?php
    740                             }
    741                             ?>
     769                    }
     770                    ?>
    742771                    </select>
    743772                    <p class="description"
    744773                       id="tagline-description"><?php echo esc_attr_e( 'Selected shipping zone defines shipping method data used in the feed', 'shopping-feed' ); ?></p>
    745                             <?php
    746                         }},
     774                    <?php
     775                }
     776            },
    747777            self::SF_FEED_SETTINGS_PAGE,
    748778            'sf_feed_settings'
     
    795825        $this->load_assets();
    796826
    797         $zone_with_methods = ShoppingFeedHelper::get_zones_with_shipping_methods();
    798         $default_shipping_method = ShoppingFeedHelper::get_default_shipping_method();
     827        $zone_with_methods                            = ShoppingFeedHelper::get_zones_with_shipping_methods();
     828        $default_shipping_method                      = ShoppingFeedHelper::get_default_shipping_method();
    799829        $sf_orders_options_default_shipping_method_id = ! empty( $default_shipping_method['method_id'] ) ? $default_shipping_method['method_id'] : false;
    800830
     
    811841            function () {
    812842                ?>
    813                     <select id="retrieval_mode" name="<?php echo esc_html( sprintf( '%s[retrieval_mode]', self::SF_SHIPPING_OPTIONS ) ); ?>">
    814                         <option value="ADDONS"
    815                             <?php selected( 'ADDONS', $this->sf_shipping_options['retrieval_mode'] ? $this->sf_shipping_options['retrieval_mode'] : false ); ?>>Addons</option>
    816                         <option value="METAS"
    817                             <?php selected( 'METAS', $this->sf_shipping_options['retrieval_mode'] ? $this->sf_shipping_options['retrieval_mode'] : false ); ?>>Métas</option>
    818                     </select>
    819                     <p class="description"
    820                        id="tagline-description">
    821                        <?php echo esc_attr_e( 'How shipping information will be retrieved', 'shopping-feed' ); ?>
    822                        </p>
    823                     <?php
     843                <select id="retrieval_mode"
     844                        name="<?php echo esc_html( sprintf( '%s[retrieval_mode]', self::SF_SHIPPING_OPTIONS ) ); ?>">
     845                    <option value="ADDONS"
     846                        <?php selected( 'ADDONS', $this->sf_shipping_options['retrieval_mode'] ? $this->sf_shipping_options['retrieval_mode'] : false ); ?>>
     847                        Addons
     848                    </option>
     849                    <option value="METAS"
     850                        <?php selected( 'METAS', $this->sf_shipping_options['retrieval_mode'] ? $this->sf_shipping_options['retrieval_mode'] : false ); ?>>
     851                        Métas
     852                    </option>
     853                </select>
     854                <p class="description"
     855                   id="tagline-description">
     856                    <?php echo esc_attr_e( 'How shipping information will be retrieved', 'shopping-feed' ); ?>
     857                </p>
     858                <?php
    824859            },
    825860            self::SF_SHIPPING_SETTINGS_PAGE,
     
    832867            function () use ( $zone_with_methods, $sf_orders_options_default_shipping_method_id ) {
    833868                ?>
    834                     <select id="default_shipping_method" name="<?php echo esc_html( sprintf( '%s[default_shipping_method]', self::SF_SHIPPING_OPTIONS ) ); ?>">
    835                         <option value=""><?php echo esc_attr_e( '-', 'shopping-feed' ); ?></option>
    836                         <?php
    837                         if ( ! empty( $zone_with_methods ) ) {
    838                             foreach ( $zone_with_methods as $zone_with_method ) {
    839                                 ?>
    840                                 <optgroup label="<?php echo esc_html( $zone_with_method['zone_name'] ); ?>">
     869                <select id="default_shipping_method"
     870                        name="<?php echo esc_html( sprintf( '%s[default_shipping_method]', self::SF_SHIPPING_OPTIONS ) ); ?>">
     871                    <option value=""><?php echo esc_attr_e( '-', 'shopping-feed' ); ?></option>
     872                    <?php
     873                    if ( ! empty( $zone_with_methods ) ) {
     874                        foreach ( $zone_with_methods as $zone_with_method ) {
     875                            ?>
     876                            <optgroup label="<?php echo esc_html( $zone_with_method['zone_name'] ); ?>">
    841877                                <?php
    842878                                if ( ! empty( $zone_with_method['methods'] ) ) {
     
    844880                                        ?>
    845881                                        <option value="<?php echo wc_esc_json( wp_json_encode( $shipping_method ) ); ?>"
    846                                         <?php selected( $shipping_method['method_id'], $sf_orders_options_default_shipping_method_id ); ?>>
    847                                         <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?>
     882                                            <?php selected( $shipping_method['method_id'], $sf_orders_options_default_shipping_method_id ); ?>>
     883                                            <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?>
    848884                                        </option>
    849885                                        <?php
     
    851887                                }
    852888                                ?>
    853                                 </optgroup>
    854                                 <?php
    855                             }
     889                            </optgroup>
     890                            <?php
    856891                        }
    857                         ?>
    858                     </select>
    859                     <p class="description"
    860                        id="tagline-description">
    861                        <?php echo esc_attr_e( 'Default shipping method for imported orders from SF', 'shopping-feed' ); ?>
    862                        </p>
    863                     <?php
     892                    }
     893                    ?>
     894                </select>
     895                <p class="description"
     896                   id="tagline-description">
     897                    <?php echo esc_attr_e( 'Default shipping method for imported orders from SF', 'shopping-feed' ); ?>
     898                </p>
     899                <?php
    864900            },
    865901            self::SF_SHIPPING_SETTINGS_PAGE,
     
    867903        );
    868904
    869         $sf_carriers = ShoppingFeedHelper::get_sf_carriers();
     905        $sf_carriers       = ShoppingFeedHelper::get_sf_carriers();
    870906        $zone_with_methods = ShoppingFeedHelper::get_zones_with_shipping_methods();
    871907
    872908        if ( ! empty( $sf_carriers ) ) {
    873             $matching_shipping_method = ! empty( $this->sf_shipping_options['matching_shipping_method'] ) ? $this->sf_shipping_options['matching_shipping_method'] : array();
     909            $matching_shipping_method = ! empty( $this->sf_shipping_options['matching_shipping_method'] ) ? $this->sf_shipping_options['matching_shipping_method'] : [];
    874910            add_settings_section(
    875911                'sf_orders_settings_shippings_methods_matching',
     
    895931                    function () use ( $zone_with_methods, $sf_carrier_id, $matching_shipping_method_carrier ) {
    896932                        ?>
    897                         <select id="<?php echo esc_html( 'matching_shipping_' . $sf_carrier_id ); ?>" name="<?php echo esc_html( sprintf( '%s[matching_shipping_method][%s]', self::SF_SHIPPING_OPTIONS, $sf_carrier_id ) ); ?>">
     933                        <select id="<?php echo esc_html( 'matching_shipping_' . $sf_carrier_id ); ?>"
     934                                name="<?php echo esc_html( sprintf( '%s[matching_shipping_method][%s]', self::SF_SHIPPING_OPTIONS, $sf_carrier_id ) ); ?>">
    898935                            <option value=""><?php echo esc_attr_e( '-', 'shopping-feed' ); ?></option>
    899936                            <?php
     
    902939                                    ?>
    903940                                    <optgroup label="<?php echo esc_html( $zone_with_method['zone_name'] ); ?>">
     941                                        <?php
     942                                        if ( ! empty( $zone_with_method['methods'] ) ) {
     943                                            foreach ( $zone_with_method['methods'] as $shipping_method ) {
     944                                                $shipping_method['sf_shipping'] = $sf_carrier_id;
     945                                                ?>
     946                                                <option value="<?php echo wc_esc_json( wp_json_encode( $shipping_method ) ); ?>"
     947                                                    <?php selected( wp_json_encode( $shipping_method ), $matching_shipping_method_carrier ); ?>>
     948                                                    <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?></option>>
     949                                                <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?></option>
     950                                                <?php
     951                                            }
     952                                        }
     953                                        ?>
     954                                    </optgroup>
     955
    904956                                    <?php
    905                                     if ( ! empty( $zone_with_method['methods'] ) ) {
    906                                         foreach ( $zone_with_method['methods'] as $shipping_method ) {
    907                                             $shipping_method['sf_shipping'] = $sf_carrier_id;
    908                                             ?>
    909                                             <option value="<?php echo wc_esc_json( wp_json_encode( $shipping_method ) ); ?>"
    910                                             <?php selected( wp_json_encode( $shipping_method ), $matching_shipping_method_carrier ); ?>>
    911                                             <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?></option>>
    912                                             <?php echo sprintf( '%s', esc_html( $shipping_method['method_title'] ) ); ?></option>
    913                                             <?php
    914                                         }
    915                                     }
    916                                     ?>
    917 </optgroup>
    918 
    919                                                             <?php
    920957                                }
    921958                            }
     
    929966            }
    930967        }
    931 
    932968        ?>
    933969        <div class="wrap">
     
    961997
    962998        //cron settings
    963         $frequencies = array( 5, 10, 15, 30, 45, 60 );
    964         $frequencies_options = array();
     999        $frequencies         = [ 5, 10, 15, 30, 45, 60 ];
     1000        $frequencies_options = [];
    9651001        foreach ( $frequencies as $frequency ) {
    9661002            $frequencies_options[ $frequency * MINUTE_IN_SECONDS ] = sprintf( '%s %s', $frequency, __( 'min', 'shopping-feed' ) );
     
    10511087                            ?>
    10521088                            <option value="<?php echo esc_html( $wc_status ); ?>"
    1053                                 <?php selected( in_array( $wc_status, ! empty( $this->sf_orders_options['statuses_actions'][ $sf_action ] ) ? $this->sf_orders_options['statuses_actions'][ $sf_action ] : array() ), 1 ); ?>
     1089                                <?php selected( in_array( $wc_status, ! empty( $this->sf_orders_options['statuses_actions'][ $sf_action ] ) ? $this->sf_orders_options['statuses_actions'][ $sf_action ] : [] ), 1 ); ?>
    10541090
    10551091                            ><?php echo esc_html( $name ); ?></option>
     
    10641100            );
    10651101        }
    1066 
    10671102        ?>
    10681103        <div class="wrap">
    10691104            <?php settings_errors(); ?>
    1070 
    10711105            <form method="post" action="options.php">
    10721106                <?php
     
    10791113        <?php
    10801114    }
    1081 
    10821115}
     1116
  • shopping-feed/trunk/src/Products/Product.php

    r2735519 r2748452  
    8888    private function set_category() {
    8989
    90         $return        = '';
    91         $taxonomy_name = ShoppingFeedHelper::wc_category_taxonomy();
    92 
    93         if ( class_exists( '\WPSEO_Primary_Term' ) ) {
     90        $return           = '';
     91        $taxonomy_name    = ShoppingFeedHelper::wc_category_taxonomy();
     92        $sf_yoast_options = ShoppingFeedHelper::get_sf_yoast_options();
     93
     94        if ( class_exists( \WPSEO_Primary_Term::class ) && 1 === (int) $sf_yoast_options['use_principal_categories'] ) {
    9495            // Show Primary category by Yoast if it is enabled & set
    9596            $wpseo_primary_term = new \WPSEO_Primary_Term( $taxonomy_name, $this->id );
  • shopping-feed/trunk/src/ShoppingFeedHelper.php

    r2734526 r2748452  
    152152     */
    153153    public static function get_sf_yoast_options() {
     154
    154155        $yoast_options = get_option( Options::SF_YOAST_OPTIONS, [] );
    155156
     
    157158            $yoast_options,
    158159            [
    159                 'use_principal_categories' => '0',
     160                'use_principal_categories' => '1',
    160161            ]
    161162        );
    162163    }
    163 
    164164
    165165    /**
  • shopping-feed/trunk/vendor/autoload.php

    r2735519 r2748452  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitbcebf4b65ffce532675f3cde63be4313::getLoader();
     7return ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3::getLoader();
  • shopping-feed/trunk/vendor/composer/autoload_classmap.php

    r2730546 r2748452  
    312312    'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ASTPlugin\\ASTPlugin' => $baseDir . '/src/Addons/Plugins/ASTPlugin/ASTPlugin.php',
    313313    'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ChainedProductsPlugin\\ChainedProducts' => $baseDir . '/src/Addons/Plugins/ChainedProductsPlugin/ChainedProducts.php',
     314    'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\PhWoocommerceShipmentTrackingProPlugin\\PhWoocommerceShipmentTrackingProPlugin' => $baseDir . '/src/Addons/Plugins/PhWoocommerceShipmentTrackingProPlugin/PhWoocommerceShipmentTrackingProPlugin.php',
    314315    'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Cdiscount' => $baseDir . '/src/Addons/Shipping/Marketplaces/Cdiscount.php',
    315316    'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Rdc' => $baseDir . '/src/Addons/Shipping/Marketplaces/Rdc.php',
  • shopping-feed/trunk/vendor/composer/autoload_real.php

    r2735519 r2748452  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitbcebf4b65ffce532675f3cde63be4313
     5class ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitbcebf4b65ffce532675f3cde63be4313', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    27         spl_autoload_unregister(array('ComposerAutoloaderInitbcebf4b65ffce532675f3cde63be4313', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInitbcebf4b65ffce532675f3cde63be4313::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5252
    5353        if ($useStaticLoader) {
    54             $includeFiles = Composer\Autoload\ComposerStaticInitbcebf4b65ffce532675f3cde63be4313::$files;
     54            $includeFiles = Composer\Autoload\ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$files;
    5555        } else {
    5656            $includeFiles = require __DIR__ . '/autoload_files.php';
    5757        }
    5858        foreach ($includeFiles as $fileIdentifier => $file) {
    59             composerRequirebcebf4b65ffce532675f3cde63be4313($fileIdentifier, $file);
     59            composerRequiredd8933b5a3cada16dc312f6fa248b9d3($fileIdentifier, $file);
    6060        }
    6161
     
    6969 * @return void
    7070 */
    71 function composerRequirebcebf4b65ffce532675f3cde63be4313($fileIdentifier, $file)
     71function composerRequiredd8933b5a3cada16dc312f6fa248b9d3($fileIdentifier, $file)
    7272{
    7373    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • shopping-feed/trunk/vendor/composer/autoload_static.php

    r2735519 r2748452  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitbcebf4b65ffce532675f3cde63be4313
     7class ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3
    88{
    99    public static $files = array (
     
    402402        'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ASTPlugin\\ASTPlugin' => __DIR__ . '/../..' . '/src/Addons/Plugins/ASTPlugin/ASTPlugin.php',
    403403        'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ChainedProductsPlugin\\ChainedProducts' => __DIR__ . '/../..' . '/src/Addons/Plugins/ChainedProductsPlugin/ChainedProducts.php',
     404        'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\PhWoocommerceShipmentTrackingProPlugin\\PhWoocommerceShipmentTrackingProPlugin' => __DIR__ . '/../..' . '/src/Addons/Plugins/PhWoocommerceShipmentTrackingProPlugin/PhWoocommerceShipmentTrackingProPlugin.php',
    404405        'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Cdiscount' => __DIR__ . '/../..' . '/src/Addons/Shipping/Marketplaces/Cdiscount.php',
    405406        'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Rdc' => __DIR__ . '/../..' . '/src/Addons/Shipping/Marketplaces/Rdc.php',
     
    447448    {
    448449        return \Closure::bind(function () use ($loader) {
    449             $loader->prefixLengthsPsr4 = ComposerStaticInitbcebf4b65ffce532675f3cde63be4313::$prefixLengthsPsr4;
    450             $loader->prefixDirsPsr4 = ComposerStaticInitbcebf4b65ffce532675f3cde63be4313::$prefixDirsPsr4;
    451             $loader->classMap = ComposerStaticInitbcebf4b65ffce532675f3cde63be4313::$classMap;
     450            $loader->prefixLengthsPsr4 = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$prefixLengthsPsr4;
     451            $loader->prefixDirsPsr4 = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$prefixDirsPsr4;
     452            $loader->classMap = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$classMap;
    452453
    453454        }, null, ClassLoader::class);
  • shopping-feed/trunk/vendor/composer/installed.php

    r2735519 r2748452  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '6.1.13',
    4         'version' => '6.1.13.0',
     3        'pretty_version' => '6.1.14',
     4        'version' => '6.1.14.0',
    55        'type' => 'wordpress-plugin',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '32c9bb4498e0e8c9b31a5a672500c40787682378',
     8        'reference' => '30543d07ba92c4fcb261f42fbe3aa4a11c637b8a',
    99        'name' => 'shoppingfeed/shoppingfeed-for-woocommerce',
    1010        'dev' => false,
     
    102102        ),
    103103        'shoppingfeed/shoppingfeed-for-woocommerce' => array(
    104             'pretty_version' => '6.1.13',
    105             'version' => '6.1.13.0',
     104            'pretty_version' => '6.1.14',
     105            'version' => '6.1.14.0',
    106106            'type' => 'wordpress-plugin',
    107107            'install_path' => __DIR__ . '/../../',
    108108            'aliases' => array(),
    109             'reference' => '32c9bb4498e0e8c9b31a5a672500c40787682378',
     109            'reference' => '30543d07ba92c4fcb261f42fbe3aa4a11c637b8a',
    110110            'dev_requirement' => false,
    111111        ),
Note: See TracChangeset for help on using the changeset viewer.