Changeset 2748452
- Timestamp:
- 06/27/2022 10:32:29 AM (4 years ago)
- Location:
- shopping-feed
- Files:
-
- 6 added
- 26 edited
- 1 copied
-
tags/6.1.14 (copied) (copied from shopping-feed/trunk)
-
tags/6.1.14/readme.md (added)
-
tags/6.1.14/readme.txt (modified) (6 diffs)
-
tags/6.1.14/shoppingfeed.php (modified) (2 diffs)
-
tags/6.1.14/src/Addons/Addons.php (modified) (4 diffs)
-
tags/6.1.14/src/Addons/Plugins/ASTPlugin/ASTPlugin.php (modified) (1 diff)
-
tags/6.1.14/src/Addons/Plugins/ChainedProductsPlugin/ChainedProducts.php (modified) (1 diff)
-
tags/6.1.14/src/Addons/Plugins/PhWoocommerceShipmentTrackingProPlugin (added)
-
tags/6.1.14/src/Addons/Plugins/PhWoocommerceShipmentTrackingProPlugin/PhWoocommerceShipmentTrackingProPlugin.php (added)
-
tags/6.1.14/src/Admin/Options.php (modified) (34 diffs)
-
tags/6.1.14/src/Products/Product.php (modified) (1 diff)
-
tags/6.1.14/src/ShoppingFeedHelper.php (modified) (2 diffs)
-
tags/6.1.14/vendor/autoload.php (modified) (1 diff)
-
tags/6.1.14/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/6.1.14/vendor/composer/autoload_real.php (modified) (5 diffs)
-
tags/6.1.14/vendor/composer/autoload_static.php (modified) (3 diffs)
-
tags/6.1.14/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/readme.md (added)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/shoppingfeed.php (modified) (2 diffs)
-
trunk/src/Addons/Addons.php (modified) (4 diffs)
-
trunk/src/Addons/Plugins/ASTPlugin/ASTPlugin.php (modified) (1 diff)
-
trunk/src/Addons/Plugins/ChainedProductsPlugin/ChainedProducts.php (modified) (1 diff)
-
trunk/src/Addons/Plugins/PhWoocommerceShipmentTrackingProPlugin (added)
-
trunk/src/Addons/Plugins/PhWoocommerceShipmentTrackingProPlugin/PhWoocommerceShipmentTrackingProPlugin.php (added)
-
trunk/src/Admin/Options.php (modified) (34 diffs)
-
trunk/src/Products/Product.php (modified) (1 diff)
-
trunk/src/ShoppingFeedHelper.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (5 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shopping-feed/tags/6.1.14/readme.txt
r2735519 r2748452 2 2 Contributors: ShoppingFeed, BeAPI 3 3 Tags: 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.1 35 Version: 6.1.1 34 Stable tag: 6.1.14 5 Version: 6.1.14 6 6 Requires PHP: 5.6 7 7 Requires at least: 5.2 … … 14 14 15 15 == 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 61 115 62 116 == Description == … … 84 138 - In Settings, check that ShoppingFeed is enabled and save changes 85 139 140 ## Shipment tracking support 141 142 For 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 86 148 ## Configuration 87 149 … … 95 157 By default, we support `product_cat` as taxonomy slug to identify product's categories, you can override it using this snippet : 96 158 97 ` 159 ```php 98 160 add_filter( 'shopping_feed_custom_category_taxonomy', 'your_custom_category_function' ); 161 99 162 /** @return string */ 100 163 function your_custom_category_function() { 101 return 'your_custom_category_slug';102 } 103 ` 164 return 'your_custom_category_slug'; 165 } 166 ``` 104 167 105 168 ### Brands 106 169 By 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 : 107 170 108 ` 171 ```php 109 172 add_filter( 'shopping_feed_custom_brand_taxonomy', 'your_custom_brand_function' ); 173 110 174 /** @return string */ 111 175 function your_custom_brand_function() { 112 return 'your_custom_brand_slug';113 } 114 ` 176 return 'your_custom_brand_slug'; 177 } 178 ``` 115 179 116 180 ### EAN 117 181 By default, we don’t support any custom plugin for product EAN, you can set custom taxonomy slug to identify it by using this snippet : 118 182 119 ` 183 ```php 120 184 add_filter( 'shopping_feed_custom_ean', 'your_custom_ean_function' ); 185 121 186 /** @return string */ 122 187 function your_custom_ean_function() { 123 return 'your_custom_ean_slug';124 } 125 ` 188 return 'your_custom_ean_slug'; 189 } 190 ``` 126 191 127 192 ### Feed’s products list args 128 193 To export the feed, we use the plugin’s setting, if you want to add/use specific args, you can use the following snippet 129 194 130 ` 195 ```php 131 196 add_filter( 'shopping_feed_products_custom_args', 'your_custom_args_function' ); 132 /** 133 * @return array 134 */ 197 198 /** @return array */ 135 199 function your_custom_args_function() { 136 200 //array of args 137 return array();138 } 139 ` 201 return array(); 202 } 203 ``` 140 204 141 205 You can find all available args here … … 145 209 By 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 146 210 147 ` 211 ```php 148 212 add_filter( 'shopping_feed_orders_to_import', 'your_custom_statuses_function' ); 213 149 214 /** @return array */ 150 215 function your_custom_statuses_function() { 151 //array of statuses (strings)152 return array();153 } 154 ` 216 // array of statuses (strings) 217 return array(); 218 } 219 ``` 155 220 156 221 `Status available` : created, waiting_store_acceptance, refused, waiting_shipment, shipped, cancelled, refunded, partially_refunded, partially_shipped … … 159 224 160 225 ### Tracking number 161 By default, we don’t support any custom plugin for wc order tracking number, you can setcustom meta key to identify it, you can use the following snippet162 163 ` 226 If you want to set a custom meta key to identify it, you can use the following snippet 227 228 ```php 164 229 add_filter( 'shopping_feed_tracking_number', 'your_custom_tracking_number_function' ); 230 165 231 /** @return string */ 166 232 function your_custom_tracking_number_function() { 167 return ‘your_custom_order_meta_key’168 } 169 ` 233 return ‘your_custom_order_meta_key’ 234 } 235 ``` 170 236 171 237 ### Tracking url 172 By default, we don’t support any custom plugin for wc order tracking url, you can setcustom meta key to identify it, you can use the following snippet173 ` 238 If you want to set a custom meta key to identify it, you can use the following snippet 239 ```php 174 240 add_filter( 'shopping_feed_tracking_link', 'your_custom_tracking_url_function' ); 241 175 242 /** @return string */ 176 243 function your_custom_tracking_url_function() { 177 return ‘your_custom_order_meta_key’178 } 179 ` 244 return ‘your_custom_order_meta_key’ 245 } 246 ``` 180 247 181 248 ### Extra Fields 182 249 If you want to add add extra fields to your XML Feed, you can use the following snippet 183 ` 250 ```php 184 251 add_filter( 'shopping_feed_extra_fields', 'your_custom_fields_function', 10, 2 ); 252 185 253 /** @return array */ 186 254 function 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 ``` 191 259 192 260 ### Variation Images 193 261 By 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 195 263 add_filter( 'shopping_feed_variation_images', 'your_custom_variation_images_function', 10, 2 ); 264 196 265 /** @return array */ 197 266 function 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 8 8 * Text Domain: shopping-feed 9 9 * Domain Path: /languages 10 * Version: 6.1.1 310 * Version: 6.1.14 11 11 * Requires at least WP: 5.7 12 12 * Requires at least WooCommerce: 5.1.0 … … 26 26 } 27 27 28 define( 'SF_VERSION', '6.1.1 3' );28 define( 'SF_VERSION', '6.1.14' ); 29 29 define( 'SF_DB_VERSION_SLUG', 'SF_DB_VERSION' ); 30 30 define( 'SF_DB_VERSION', '1.0.0' ); -
shopping-feed/tags/6.1.14/src/Addons/Addons.php
r2542211 r2748452 10 10 use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ASTPlugin\ASTPlugin; 11 11 use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ChainedProductsPlugin\ChainedProducts; 12 use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\PhWoocommerceShipmentTrackingProPlugin\PhWoocommerceShipmentTrackingProPlugin; 12 13 use ShoppingFeed\ShoppingFeedWC\Addons\Shipping\Shipping; 13 14 … … 27 28 28 29 /** 29 * Shipping class30 30 * @var Marketplaces 31 31 */ … … 33 33 34 34 /** 35 * Shipping class36 35 * @var ChainedProducts 37 36 */ … … 39 38 40 39 /** 41 * Shipping class42 40 * @var ASTPlugin 43 41 */ 44 42 private $ast_plugin; 45 43 44 /** 45 * @var PhWoocommerceShipmentTrackingProPlugin 46 */ 47 private $woocommerce_shipment_tracking_pro; 48 46 49 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(); 52 56 } 53 57 } -
shopping-feed/tags/6.1.14/src/Addons/Plugins/ASTPlugin/ASTPlugin.php
r2728392 r2748452 9 9 * Class ASTPlugin to manage the plugin advanced shipment tracking 10 10 * @link https://wordpress.org/plugins/woo-advanced-shipment-tracking/ 11 * @package ShoppingFeed\ShoppingFeedWC\Addons\ ASTPlugin11 * @package ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ASTPlugin 12 12 */ 13 13 class ASTPlugin { -
shopping-feed/tags/6.1.14/src/Addons/Plugins/ChainedProductsPlugin/ChainedProducts.php
r2721915 r2748452 9 9 * Class ChainedProducts to manage the plugin chained products 10 10 * @link https://woocommerce.com/products/chained-products/ 11 * @package ShoppingFeed\ShoppingFeedWC\Addons\ ChainedProductsPlugin11 * @package ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ChainedProductsPlugin 12 12 */ 13 13 class ChainedProducts { -
shopping-feed/tags/6.1.14/src/Admin/Options.php
r2734526 r2748452 43 43 //Account options 44 44 const SF_ACCOUNT_OPTIONS = 'sf_account_options'; 45 const SF_FEED_OPTIONS = 'sf_feed_options';45 const SF_FEED_OPTIONS = 'sf_feed_options'; 46 46 47 47 //Feed options 48 48 const SF_SHIPPING_OPTIONS = 'sf_shipping_options'; 49 const SF_ORDERS_OPTIONS = 'sf_orders_options';49 const SF_ORDERS_OPTIONS = 'sf_orders_options'; 50 50 51 51 //Shipping options … … 87 87 'manage_options', 88 88 self::SF_SLUG, 89 array( $this, 'sf_settings_page' )89 [ $this, 'sf_settings_page' ] 90 90 ); 91 91 } … … 125 125 register_setting( 126 126 'sf_yoast_page_fields', 127 self::SF_YOAST_OPTIONS 127 self::SF_YOAST_OPTIONS, 128 [ 129 'sanitize_callback' => [ $this, 'default_yoast_option_value' ], 130 ] 128 131 ); 129 132 } … … 154 157 155 158 /** 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 /** 156 177 * Define the page structure 157 178 */ … … 164 185 $tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'account'; 165 186 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, 170 191 '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', 175 196 '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', 180 201 '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', 185 206 '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', 198 214 'title' => __( 'Yoast', 'shopping-feed' ), 199 );215 ]; 200 216 } 201 217 218 $tabs[] = [ 219 'tab' => 'logs', 220 'url' => admin_url( 'admin.php?page=wc-status&tab=logs' ), 221 'title' => __( 'Logs', 'shopping-feed' ), 222 ]; 202 223 ?> 203 224 <div class="wrap sf__plugin"> 204 225 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> 209 230 210 231 <nav class="nav-tab-wrapper"> … … 212 233 <?php 213 234 foreach ( 214 $tabs as $_tab235 $tabs as $_tab 215 236 ) { 216 237 ?> … … 248 269 default: 249 270 break; 250 endswitch;271 endswitch; 251 272 ?> 252 273 </div> … … 278 299 ?> 279 300 <!-- 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 ); ?> /> 281 304 <?php 282 305 }, … … 305 328 */ 306 329 public function init_account_setting_page() { 307 //check clean action308 $this->check_clean_action();309 310 //load assets311 $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_PAGE319 );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 ); 320 343 ?> 321 344 <div class="wrap"> … … 428 451 ?> 429 452 <!-- REQUIREMENTS --> 430 </div>453 </div> 431 454 </div> 432 455 433 456 <div class="sf__column"> 434 457 <div class="sf__marketing"> 435 <?php MarketingBord::get_instance()->display_marketing_bord(); ?>458 <?php MarketingBord::get_instance()->display_marketing_bord(); ?> 436 459 </div> 437 460 </div> … … 453 476 'sf_app', 454 477 SF_PLUGIN_URL . 'assets/css/app.css', 455 array(),478 [], 456 479 true 457 480 ); … … 460 483 'multi_js', 461 484 SF_PLUGIN_URL . 'assets/js/multi.min.js', 462 array( 'jquery' ),485 [ 'jquery' ], 463 486 true, 464 487 true … … 468 491 'accounts', 469 492 SF_PLUGIN_URL . 'assets/js/accounts.js', 470 array( 'jquery', 'underscore' ),493 [ 'jquery', 'underscore' ], 471 494 true, 472 495 true 473 496 ); 474 497 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 ); 476 499 wp_localize_script( 477 500 'multi_js_init', 478 501 'sf_options', 479 array(502 [ 480 503 'selected_orders' => __( 'Selected order status', 'shopping-feed' ), 481 504 'unselected_orders' => __( 'Unselected order status', 'shopping-feed' ), 482 505 'search' => __( 'Search', 'shopping-feed' ), 483 )506 ] 484 507 ); 485 508 } … … 525 548 echo ! empty( $sf_last_generation_date ) ? esc_html( $sf_last_generation_date ) : esc_html__( 'Never', 'shopping-feed' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 526 549 ?> 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"> 528 552 <?php esc_html_e( 'Refresh', 'shopping-feed' ); ?> 529 553 </a> 530 554 <?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> 532 557 <?php endif; ?> 533 558 </p> … … 541 566 $product_categories = get_terms( 542 567 ShoppingFeedHelper::wc_category_taxonomy(), 543 array(544 'orderby' => 'name',545 'order' => 'asc',568 [ 569 'orderby' => 'name', 570 'order' => 'asc', 546 571 'hide_empty' => false, 547 )572 ] 548 573 ); 549 574 … … 585 610 </option> 586 611 </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> 588 614 <?php 589 615 }, … … 604 630 ?> 605 631 <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 ); ?> 607 633 > 608 634 <?php echo esc_html( $category->name ); ?></option> … … 634 660 ); 635 661 636 $frequencies_options = array();637 for ( $i = 1; $i <= 24; $i ++ ) {662 $frequencies_options = []; 663 for ( $i = 1; $i <= 24; $i ++ ) { 638 664 $frequencies_options[ $i * HOUR_IN_SECONDS ] = sprintf( 639 /* translators: %s: Frequency. */665 /* translators: %s: Frequency. */ 640 666 _n( 641 667 '%s hour', … … 682 708 <select name="<?php echo esc_html( sprintf( '%s[part_size]', self::SF_FEED_OPTIONS ) ); ?>"> 683 709 <?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 ) { 685 711 ?> 686 712 <option … … 693 719 </select> 694 720 <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' ); ?> 696 722 </p> 697 723 <p class="description"> 698 724 <?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> 700 727 <?php esc_attr_e( 'to clean all running process', 'shopping-feed' ); ?> 701 728 <?php echo esc_html( sprintf( '(%s)', $running_process ) ); ?> … … 726 753 function () use ( $shipping_zones, $selected_shipping_zone ) { 727 754 ?> 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> 731 768 <?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 ?> 742 771 </select> 743 772 <p class="description" 744 773 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 }, 747 777 self::SF_FEED_SETTINGS_PAGE, 748 778 'sf_feed_settings' … … 795 825 $this->load_assets(); 796 826 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(); 799 829 $sf_orders_options_default_shipping_method_id = ! empty( $default_shipping_method['method_id'] ) ? $default_shipping_method['method_id'] : false; 800 830 … … 811 841 function () { 812 842 ?> 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 824 859 }, 825 860 self::SF_SHIPPING_SETTINGS_PAGE, … … 832 867 function () use ( $zone_with_methods, $sf_orders_options_default_shipping_method_id ) { 833 868 ?> 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'] ); ?>"> 841 877 <?php 842 878 if ( ! empty( $zone_with_method['methods'] ) ) { … … 844 880 ?> 845 881 <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'] ) ); ?> 848 884 </option> 849 885 <?php … … 851 887 } 852 888 ?> 853 </optgroup> 854 <?php 855 } 889 </optgroup> 890 <?php 856 891 } 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 864 900 }, 865 901 self::SF_SHIPPING_SETTINGS_PAGE, … … 867 903 ); 868 904 869 $sf_carriers = ShoppingFeedHelper::get_sf_carriers();905 $sf_carriers = ShoppingFeedHelper::get_sf_carriers(); 870 906 $zone_with_methods = ShoppingFeedHelper::get_zones_with_shipping_methods(); 871 907 872 908 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'] : []; 874 910 add_settings_section( 875 911 'sf_orders_settings_shippings_methods_matching', … … 895 931 function () use ( $zone_with_methods, $sf_carrier_id, $matching_shipping_method_carrier ) { 896 932 ?> 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 ) ); ?>"> 898 935 <option value=""><?php echo esc_attr_e( '-', 'shopping-feed' ); ?></option> 899 936 <?php … … 902 939 ?> 903 940 <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 904 956 <?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 <?php914 }915 }916 ?>917 </optgroup>918 919 <?php920 957 } 921 958 } … … 929 966 } 930 967 } 931 932 968 ?> 933 969 <div class="wrap"> … … 961 997 962 998 //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 = []; 965 1001 foreach ( $frequencies as $frequency ) { 966 1002 $frequencies_options[ $frequency * MINUTE_IN_SECONDS ] = sprintf( '%s %s', $frequency, __( 'min', 'shopping-feed' ) ); … … 1051 1087 ?> 1052 1088 <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 ); ?> 1054 1090 1055 1091 ><?php echo esc_html( $name ); ?></option> … … 1064 1100 ); 1065 1101 } 1066 1067 1102 ?> 1068 1103 <div class="wrap"> 1069 1104 <?php settings_errors(); ?> 1070 1071 1105 <form method="post" action="options.php"> 1072 1106 <?php … … 1079 1113 <?php 1080 1114 } 1081 1082 1115 } 1116 -
shopping-feed/tags/6.1.14/src/Products/Product.php
r2735519 r2748452 88 88 private function set_category() { 89 89 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'] ) { 94 95 // Show Primary category by Yoast if it is enabled & set 95 96 $wpseo_primary_term = new \WPSEO_Primary_Term( $taxonomy_name, $this->id ); -
shopping-feed/tags/6.1.14/src/ShoppingFeedHelper.php
r2734526 r2748452 152 152 */ 153 153 public static function get_sf_yoast_options() { 154 154 155 $yoast_options = get_option( Options::SF_YOAST_OPTIONS, [] ); 155 156 … … 157 158 $yoast_options, 158 159 [ 159 'use_principal_categories' => ' 0',160 'use_principal_categories' => '1', 160 161 ] 161 162 ); 162 163 } 163 164 164 165 165 /** -
shopping-feed/tags/6.1.14/vendor/autoload.php
r2735519 r2748452 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit bcebf4b65ffce532675f3cde63be4313::getLoader();7 return ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3::getLoader(); -
shopping-feed/tags/6.1.14/vendor/composer/autoload_classmap.php
r2730546 r2748452 312 312 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ASTPlugin\\ASTPlugin' => $baseDir . '/src/Addons/Plugins/ASTPlugin/ASTPlugin.php', 313 313 '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', 314 315 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Cdiscount' => $baseDir . '/src/Addons/Shipping/Marketplaces/Cdiscount.php', 315 316 '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 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit bcebf4b65ffce532675f3cde63be43135 class ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit bcebf4b65ffce532675f3cde63be4313', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit bcebf4b65ffce532675f3cde63be4313', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit bcebf4b65ffce532675f3cde63be4313::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit bcebf4b65ffce532675f3cde63be4313::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire bcebf4b65ffce532675f3cde63be4313($fileIdentifier, $file);59 composerRequiredd8933b5a3cada16dc312f6fa248b9d3($fileIdentifier, $file); 60 60 } 61 61 … … 69 69 * @return void 70 70 */ 71 function composerRequire bcebf4b65ffce532675f3cde63be4313($fileIdentifier, $file)71 function composerRequiredd8933b5a3cada16dc312f6fa248b9d3($fileIdentifier, $file) 72 72 { 73 73 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
shopping-feed/tags/6.1.14/vendor/composer/autoload_static.php
r2735519 r2748452 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit bcebf4b65ffce532675f3cde63be43137 class ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3 8 8 { 9 9 public static $files = array ( … … 402 402 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ASTPlugin\\ASTPlugin' => __DIR__ . '/../..' . '/src/Addons/Plugins/ASTPlugin/ASTPlugin.php', 403 403 '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', 404 405 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Cdiscount' => __DIR__ . '/../..' . '/src/Addons/Shipping/Marketplaces/Cdiscount.php', 405 406 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Rdc' => __DIR__ . '/../..' . '/src/Addons/Shipping/Marketplaces/Rdc.php', … … 447 448 { 448 449 return \Closure::bind(function () use ($loader) { 449 $loader->prefixLengthsPsr4 = ComposerStaticInit bcebf4b65ffce532675f3cde63be4313::$prefixLengthsPsr4;450 $loader->prefixDirsPsr4 = ComposerStaticInit bcebf4b65ffce532675f3cde63be4313::$prefixDirsPsr4;451 $loader->classMap = ComposerStaticInit bcebf4b65ffce532675f3cde63be4313::$classMap;450 $loader->prefixLengthsPsr4 = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$prefixLengthsPsr4; 451 $loader->prefixDirsPsr4 = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$prefixDirsPsr4; 452 $loader->classMap = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$classMap; 452 453 453 454 }, null, ClassLoader::class); -
shopping-feed/tags/6.1.14/vendor/composer/installed.php
r2735519 r2748452 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '6.1.1 3',4 'version' => '6.1.1 3.0',3 'pretty_version' => '6.1.14', 4 'version' => '6.1.14.0', 5 5 'type' => 'wordpress-plugin', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => '3 2c9bb4498e0e8c9b31a5a672500c40787682378',8 'reference' => '30543d07ba92c4fcb261f42fbe3aa4a11c637b8a', 9 9 'name' => 'shoppingfeed/shoppingfeed-for-woocommerce', 10 10 'dev' => false, … … 102 102 ), 103 103 'shoppingfeed/shoppingfeed-for-woocommerce' => array( 104 'pretty_version' => '6.1.1 3',105 'version' => '6.1.1 3.0',104 'pretty_version' => '6.1.14', 105 'version' => '6.1.14.0', 106 106 'type' => 'wordpress-plugin', 107 107 'install_path' => __DIR__ . '/../../', 108 108 'aliases' => array(), 109 'reference' => '3 2c9bb4498e0e8c9b31a5a672500c40787682378',109 'reference' => '30543d07ba92c4fcb261f42fbe3aa4a11c637b8a', 110 110 'dev_requirement' => false, 111 111 ), -
shopping-feed/trunk/readme.txt
r2735519 r2748452 2 2 Contributors: ShoppingFeed, BeAPI 3 3 Tags: 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.1 35 Version: 6.1.1 34 Stable tag: 6.1.14 5 Version: 6.1.14 6 6 Requires PHP: 5.6 7 7 Requires at least: 5.2 … … 14 14 15 15 == 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 61 115 62 116 == Description == … … 84 138 - In Settings, check that ShoppingFeed is enabled and save changes 85 139 140 ## Shipment tracking support 141 142 For 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 86 148 ## Configuration 87 149 … … 95 157 By default, we support `product_cat` as taxonomy slug to identify product's categories, you can override it using this snippet : 96 158 97 ` 159 ```php 98 160 add_filter( 'shopping_feed_custom_category_taxonomy', 'your_custom_category_function' ); 161 99 162 /** @return string */ 100 163 function your_custom_category_function() { 101 return 'your_custom_category_slug';102 } 103 ` 164 return 'your_custom_category_slug'; 165 } 166 ``` 104 167 105 168 ### Brands 106 169 By 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 : 107 170 108 ` 171 ```php 109 172 add_filter( 'shopping_feed_custom_brand_taxonomy', 'your_custom_brand_function' ); 173 110 174 /** @return string */ 111 175 function your_custom_brand_function() { 112 return 'your_custom_brand_slug';113 } 114 ` 176 return 'your_custom_brand_slug'; 177 } 178 ``` 115 179 116 180 ### EAN 117 181 By default, we don’t support any custom plugin for product EAN, you can set custom taxonomy slug to identify it by using this snippet : 118 182 119 ` 183 ```php 120 184 add_filter( 'shopping_feed_custom_ean', 'your_custom_ean_function' ); 185 121 186 /** @return string */ 122 187 function your_custom_ean_function() { 123 return 'your_custom_ean_slug';124 } 125 ` 188 return 'your_custom_ean_slug'; 189 } 190 ``` 126 191 127 192 ### Feed’s products list args 128 193 To export the feed, we use the plugin’s setting, if you want to add/use specific args, you can use the following snippet 129 194 130 ` 195 ```php 131 196 add_filter( 'shopping_feed_products_custom_args', 'your_custom_args_function' ); 132 /** 133 * @return array 134 */ 197 198 /** @return array */ 135 199 function your_custom_args_function() { 136 200 //array of args 137 return array();138 } 139 ` 201 return array(); 202 } 203 ``` 140 204 141 205 You can find all available args here … … 145 209 By 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 146 210 147 ` 211 ```php 148 212 add_filter( 'shopping_feed_orders_to_import', 'your_custom_statuses_function' ); 213 149 214 /** @return array */ 150 215 function your_custom_statuses_function() { 151 //array of statuses (strings)152 return array();153 } 154 ` 216 // array of statuses (strings) 217 return array(); 218 } 219 ``` 155 220 156 221 `Status available` : created, waiting_store_acceptance, refused, waiting_shipment, shipped, cancelled, refunded, partially_refunded, partially_shipped … … 159 224 160 225 ### Tracking number 161 By default, we don’t support any custom plugin for wc order tracking number, you can setcustom meta key to identify it, you can use the following snippet162 163 ` 226 If you want to set a custom meta key to identify it, you can use the following snippet 227 228 ```php 164 229 add_filter( 'shopping_feed_tracking_number', 'your_custom_tracking_number_function' ); 230 165 231 /** @return string */ 166 232 function your_custom_tracking_number_function() { 167 return ‘your_custom_order_meta_key’168 } 169 ` 233 return ‘your_custom_order_meta_key’ 234 } 235 ``` 170 236 171 237 ### Tracking url 172 By default, we don’t support any custom plugin for wc order tracking url, you can setcustom meta key to identify it, you can use the following snippet173 ` 238 If you want to set a custom meta key to identify it, you can use the following snippet 239 ```php 174 240 add_filter( 'shopping_feed_tracking_link', 'your_custom_tracking_url_function' ); 241 175 242 /** @return string */ 176 243 function your_custom_tracking_url_function() { 177 return ‘your_custom_order_meta_key’178 } 179 ` 244 return ‘your_custom_order_meta_key’ 245 } 246 ``` 180 247 181 248 ### Extra Fields 182 249 If you want to add add extra fields to your XML Feed, you can use the following snippet 183 ` 250 ```php 184 251 add_filter( 'shopping_feed_extra_fields', 'your_custom_fields_function', 10, 2 ); 252 185 253 /** @return array */ 186 254 function 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 ``` 191 259 192 260 ### Variation Images 193 261 By 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 195 263 add_filter( 'shopping_feed_variation_images', 'your_custom_variation_images_function', 10, 2 ); 264 196 265 /** @return array */ 197 266 function 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 8 8 * Text Domain: shopping-feed 9 9 * Domain Path: /languages 10 * Version: 6.1.1 310 * Version: 6.1.14 11 11 * Requires at least WP: 5.7 12 12 * Requires at least WooCommerce: 5.1.0 … … 26 26 } 27 27 28 define( 'SF_VERSION', '6.1.1 3' );28 define( 'SF_VERSION', '6.1.14' ); 29 29 define( 'SF_DB_VERSION_SLUG', 'SF_DB_VERSION' ); 30 30 define( 'SF_DB_VERSION', '1.0.0' ); -
shopping-feed/trunk/src/Addons/Addons.php
r2542211 r2748452 10 10 use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ASTPlugin\ASTPlugin; 11 11 use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ChainedProductsPlugin\ChainedProducts; 12 use ShoppingFeed\ShoppingFeedWC\Addons\Plugins\PhWoocommerceShipmentTrackingProPlugin\PhWoocommerceShipmentTrackingProPlugin; 12 13 use ShoppingFeed\ShoppingFeedWC\Addons\Shipping\Shipping; 13 14 … … 27 28 28 29 /** 29 * Shipping class30 30 * @var Marketplaces 31 31 */ … … 33 33 34 34 /** 35 * Shipping class36 35 * @var ChainedProducts 37 36 */ … … 39 38 40 39 /** 41 * Shipping class42 40 * @var ASTPlugin 43 41 */ 44 42 private $ast_plugin; 45 43 44 /** 45 * @var PhWoocommerceShipmentTrackingProPlugin 46 */ 47 private $woocommerce_shipment_tracking_pro; 48 46 49 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(); 52 56 } 53 57 } -
shopping-feed/trunk/src/Addons/Plugins/ASTPlugin/ASTPlugin.php
r2728392 r2748452 9 9 * Class ASTPlugin to manage the plugin advanced shipment tracking 10 10 * @link https://wordpress.org/plugins/woo-advanced-shipment-tracking/ 11 * @package ShoppingFeed\ShoppingFeedWC\Addons\ ASTPlugin11 * @package ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ASTPlugin 12 12 */ 13 13 class ASTPlugin { -
shopping-feed/trunk/src/Addons/Plugins/ChainedProductsPlugin/ChainedProducts.php
r2721915 r2748452 9 9 * Class ChainedProducts to manage the plugin chained products 10 10 * @link https://woocommerce.com/products/chained-products/ 11 * @package ShoppingFeed\ShoppingFeedWC\Addons\ ChainedProductsPlugin11 * @package ShoppingFeed\ShoppingFeedWC\Addons\Plugins\ChainedProductsPlugin 12 12 */ 13 13 class ChainedProducts { -
shopping-feed/trunk/src/Admin/Options.php
r2734526 r2748452 43 43 //Account options 44 44 const SF_ACCOUNT_OPTIONS = 'sf_account_options'; 45 const SF_FEED_OPTIONS = 'sf_feed_options';45 const SF_FEED_OPTIONS = 'sf_feed_options'; 46 46 47 47 //Feed options 48 48 const SF_SHIPPING_OPTIONS = 'sf_shipping_options'; 49 const SF_ORDERS_OPTIONS = 'sf_orders_options';49 const SF_ORDERS_OPTIONS = 'sf_orders_options'; 50 50 51 51 //Shipping options … … 87 87 'manage_options', 88 88 self::SF_SLUG, 89 array( $this, 'sf_settings_page' )89 [ $this, 'sf_settings_page' ] 90 90 ); 91 91 } … … 125 125 register_setting( 126 126 'sf_yoast_page_fields', 127 self::SF_YOAST_OPTIONS 127 self::SF_YOAST_OPTIONS, 128 [ 129 'sanitize_callback' => [ $this, 'default_yoast_option_value' ], 130 ] 128 131 ); 129 132 } … … 154 157 155 158 /** 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 /** 156 177 * Define the page structure 157 178 */ … … 164 185 $tab = isset( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : 'account'; 165 186 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, 170 191 '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', 175 196 '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', 180 201 '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', 185 206 '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', 198 214 'title' => __( 'Yoast', 'shopping-feed' ), 199 );215 ]; 200 216 } 201 217 218 $tabs[] = [ 219 'tab' => 'logs', 220 'url' => admin_url( 'admin.php?page=wc-status&tab=logs' ), 221 'title' => __( 'Logs', 'shopping-feed' ), 222 ]; 202 223 ?> 203 224 <div class="wrap sf__plugin"> 204 225 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> 209 230 210 231 <nav class="nav-tab-wrapper"> … … 212 233 <?php 213 234 foreach ( 214 $tabs as $_tab235 $tabs as $_tab 215 236 ) { 216 237 ?> … … 248 269 default: 249 270 break; 250 endswitch;271 endswitch; 251 272 ?> 252 273 </div> … … 278 299 ?> 279 300 <!-- 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 ); ?> /> 281 304 <?php 282 305 }, … … 305 328 */ 306 329 public function init_account_setting_page() { 307 //check clean action308 $this->check_clean_action();309 310 //load assets311 $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_PAGE319 );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 ); 320 343 ?> 321 344 <div class="wrap"> … … 428 451 ?> 429 452 <!-- REQUIREMENTS --> 430 </div>453 </div> 431 454 </div> 432 455 433 456 <div class="sf__column"> 434 457 <div class="sf__marketing"> 435 <?php MarketingBord::get_instance()->display_marketing_bord(); ?>458 <?php MarketingBord::get_instance()->display_marketing_bord(); ?> 436 459 </div> 437 460 </div> … … 453 476 'sf_app', 454 477 SF_PLUGIN_URL . 'assets/css/app.css', 455 array(),478 [], 456 479 true 457 480 ); … … 460 483 'multi_js', 461 484 SF_PLUGIN_URL . 'assets/js/multi.min.js', 462 array( 'jquery' ),485 [ 'jquery' ], 463 486 true, 464 487 true … … 468 491 'accounts', 469 492 SF_PLUGIN_URL . 'assets/js/accounts.js', 470 array( 'jquery', 'underscore' ),493 [ 'jquery', 'underscore' ], 471 494 true, 472 495 true 473 496 ); 474 497 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 ); 476 499 wp_localize_script( 477 500 'multi_js_init', 478 501 'sf_options', 479 array(502 [ 480 503 'selected_orders' => __( 'Selected order status', 'shopping-feed' ), 481 504 'unselected_orders' => __( 'Unselected order status', 'shopping-feed' ), 482 505 'search' => __( 'Search', 'shopping-feed' ), 483 )506 ] 484 507 ); 485 508 } … … 525 548 echo ! empty( $sf_last_generation_date ) ? esc_html( $sf_last_generation_date ) : esc_html__( 'Never', 'shopping-feed' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 526 549 ?> 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"> 528 552 <?php esc_html_e( 'Refresh', 'shopping-feed' ); ?> 529 553 </a> 530 554 <?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> 532 557 <?php endif; ?> 533 558 </p> … … 541 566 $product_categories = get_terms( 542 567 ShoppingFeedHelper::wc_category_taxonomy(), 543 array(544 'orderby' => 'name',545 'order' => 'asc',568 [ 569 'orderby' => 'name', 570 'order' => 'asc', 546 571 'hide_empty' => false, 547 )572 ] 548 573 ); 549 574 … … 585 610 </option> 586 611 </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> 588 614 <?php 589 615 }, … … 604 630 ?> 605 631 <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 ); ?> 607 633 > 608 634 <?php echo esc_html( $category->name ); ?></option> … … 634 660 ); 635 661 636 $frequencies_options = array();637 for ( $i = 1; $i <= 24; $i ++ ) {662 $frequencies_options = []; 663 for ( $i = 1; $i <= 24; $i ++ ) { 638 664 $frequencies_options[ $i * HOUR_IN_SECONDS ] = sprintf( 639 /* translators: %s: Frequency. */665 /* translators: %s: Frequency. */ 640 666 _n( 641 667 '%s hour', … … 682 708 <select name="<?php echo esc_html( sprintf( '%s[part_size]', self::SF_FEED_OPTIONS ) ); ?>"> 683 709 <?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 ) { 685 711 ?> 686 712 <option … … 693 719 </select> 694 720 <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' ); ?> 696 722 </p> 697 723 <p class="description"> 698 724 <?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> 700 727 <?php esc_attr_e( 'to clean all running process', 'shopping-feed' ); ?> 701 728 <?php echo esc_html( sprintf( '(%s)', $running_process ) ); ?> … … 726 753 function () use ( $shipping_zones, $selected_shipping_zone ) { 727 754 ?> 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> 731 768 <?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 ?> 742 771 </select> 743 772 <p class="description" 744 773 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 }, 747 777 self::SF_FEED_SETTINGS_PAGE, 748 778 'sf_feed_settings' … … 795 825 $this->load_assets(); 796 826 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(); 799 829 $sf_orders_options_default_shipping_method_id = ! empty( $default_shipping_method['method_id'] ) ? $default_shipping_method['method_id'] : false; 800 830 … … 811 841 function () { 812 842 ?> 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 824 859 }, 825 860 self::SF_SHIPPING_SETTINGS_PAGE, … … 832 867 function () use ( $zone_with_methods, $sf_orders_options_default_shipping_method_id ) { 833 868 ?> 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'] ); ?>"> 841 877 <?php 842 878 if ( ! empty( $zone_with_method['methods'] ) ) { … … 844 880 ?> 845 881 <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'] ) ); ?> 848 884 </option> 849 885 <?php … … 851 887 } 852 888 ?> 853 </optgroup> 854 <?php 855 } 889 </optgroup> 890 <?php 856 891 } 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 864 900 }, 865 901 self::SF_SHIPPING_SETTINGS_PAGE, … … 867 903 ); 868 904 869 $sf_carriers = ShoppingFeedHelper::get_sf_carriers();905 $sf_carriers = ShoppingFeedHelper::get_sf_carriers(); 870 906 $zone_with_methods = ShoppingFeedHelper::get_zones_with_shipping_methods(); 871 907 872 908 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'] : []; 874 910 add_settings_section( 875 911 'sf_orders_settings_shippings_methods_matching', … … 895 931 function () use ( $zone_with_methods, $sf_carrier_id, $matching_shipping_method_carrier ) { 896 932 ?> 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 ) ); ?>"> 898 935 <option value=""><?php echo esc_attr_e( '-', 'shopping-feed' ); ?></option> 899 936 <?php … … 902 939 ?> 903 940 <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 904 956 <?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 <?php914 }915 }916 ?>917 </optgroup>918 919 <?php920 957 } 921 958 } … … 929 966 } 930 967 } 931 932 968 ?> 933 969 <div class="wrap"> … … 961 997 962 998 //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 = []; 965 1001 foreach ( $frequencies as $frequency ) { 966 1002 $frequencies_options[ $frequency * MINUTE_IN_SECONDS ] = sprintf( '%s %s', $frequency, __( 'min', 'shopping-feed' ) ); … … 1051 1087 ?> 1052 1088 <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 ); ?> 1054 1090 1055 1091 ><?php echo esc_html( $name ); ?></option> … … 1064 1100 ); 1065 1101 } 1066 1067 1102 ?> 1068 1103 <div class="wrap"> 1069 1104 <?php settings_errors(); ?> 1070 1071 1105 <form method="post" action="options.php"> 1072 1106 <?php … … 1079 1113 <?php 1080 1114 } 1081 1082 1115 } 1116 -
shopping-feed/trunk/src/Products/Product.php
r2735519 r2748452 88 88 private function set_category() { 89 89 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'] ) { 94 95 // Show Primary category by Yoast if it is enabled & set 95 96 $wpseo_primary_term = new \WPSEO_Primary_Term( $taxonomy_name, $this->id ); -
shopping-feed/trunk/src/ShoppingFeedHelper.php
r2734526 r2748452 152 152 */ 153 153 public static function get_sf_yoast_options() { 154 154 155 $yoast_options = get_option( Options::SF_YOAST_OPTIONS, [] ); 155 156 … … 157 158 $yoast_options, 158 159 [ 159 'use_principal_categories' => ' 0',160 'use_principal_categories' => '1', 160 161 ] 161 162 ); 162 163 } 163 164 164 165 165 /** -
shopping-feed/trunk/vendor/autoload.php
r2735519 r2748452 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit bcebf4b65ffce532675f3cde63be4313::getLoader();7 return ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3::getLoader(); -
shopping-feed/trunk/vendor/composer/autoload_classmap.php
r2730546 r2748452 312 312 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ASTPlugin\\ASTPlugin' => $baseDir . '/src/Addons/Plugins/ASTPlugin/ASTPlugin.php', 313 313 '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', 314 315 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Cdiscount' => $baseDir . '/src/Addons/Shipping/Marketplaces/Cdiscount.php', 315 316 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Rdc' => $baseDir . '/src/Addons/Shipping/Marketplaces/Rdc.php', -
shopping-feed/trunk/vendor/composer/autoload_real.php
r2735519 r2748452 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit bcebf4b65ffce532675f3cde63be43135 class ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit bcebf4b65ffce532675f3cde63be4313', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit bcebf4b65ffce532675f3cde63be4313', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitdd8933b5a3cada16dc312f6fa248b9d3', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit bcebf4b65ffce532675f3cde63be4313::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit bcebf4b65ffce532675f3cde63be4313::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire bcebf4b65ffce532675f3cde63be4313($fileIdentifier, $file);59 composerRequiredd8933b5a3cada16dc312f6fa248b9d3($fileIdentifier, $file); 60 60 } 61 61 … … 69 69 * @return void 70 70 */ 71 function composerRequire bcebf4b65ffce532675f3cde63be4313($fileIdentifier, $file)71 function composerRequiredd8933b5a3cada16dc312f6fa248b9d3($fileIdentifier, $file) 72 72 { 73 73 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
shopping-feed/trunk/vendor/composer/autoload_static.php
r2735519 r2748452 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit bcebf4b65ffce532675f3cde63be43137 class ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3 8 8 { 9 9 public static $files = array ( … … 402 402 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Plugins\\ASTPlugin\\ASTPlugin' => __DIR__ . '/../..' . '/src/Addons/Plugins/ASTPlugin/ASTPlugin.php', 403 403 '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', 404 405 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Cdiscount' => __DIR__ . '/../..' . '/src/Addons/Shipping/Marketplaces/Cdiscount.php', 405 406 'ShoppingFeed\\ShoppingFeedWC\\Addons\\Shipping\\Marketplaces\\Rdc' => __DIR__ . '/../..' . '/src/Addons/Shipping/Marketplaces/Rdc.php', … … 447 448 { 448 449 return \Closure::bind(function () use ($loader) { 449 $loader->prefixLengthsPsr4 = ComposerStaticInit bcebf4b65ffce532675f3cde63be4313::$prefixLengthsPsr4;450 $loader->prefixDirsPsr4 = ComposerStaticInit bcebf4b65ffce532675f3cde63be4313::$prefixDirsPsr4;451 $loader->classMap = ComposerStaticInit bcebf4b65ffce532675f3cde63be4313::$classMap;450 $loader->prefixLengthsPsr4 = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$prefixLengthsPsr4; 451 $loader->prefixDirsPsr4 = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$prefixDirsPsr4; 452 $loader->classMap = ComposerStaticInitdd8933b5a3cada16dc312f6fa248b9d3::$classMap; 452 453 453 454 }, null, ClassLoader::class); -
shopping-feed/trunk/vendor/composer/installed.php
r2735519 r2748452 1 1 <?php return array( 2 2 'root' => array( 3 'pretty_version' => '6.1.1 3',4 'version' => '6.1.1 3.0',3 'pretty_version' => '6.1.14', 4 'version' => '6.1.14.0', 5 5 'type' => 'wordpress-plugin', 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => '3 2c9bb4498e0e8c9b31a5a672500c40787682378',8 'reference' => '30543d07ba92c4fcb261f42fbe3aa4a11c637b8a', 9 9 'name' => 'shoppingfeed/shoppingfeed-for-woocommerce', 10 10 'dev' => false, … … 102 102 ), 103 103 'shoppingfeed/shoppingfeed-for-woocommerce' => array( 104 'pretty_version' => '6.1.1 3',105 'version' => '6.1.1 3.0',104 'pretty_version' => '6.1.14', 105 'version' => '6.1.14.0', 106 106 'type' => 'wordpress-plugin', 107 107 'install_path' => __DIR__ . '/../../', 108 108 'aliases' => array(), 109 'reference' => '3 2c9bb4498e0e8c9b31a5a672500c40787682378',109 'reference' => '30543d07ba92c4fcb261f42fbe3aa4a11c637b8a', 110 110 'dev_requirement' => false, 111 111 ),
Note: See TracChangeset
for help on using the changeset viewer.