Changeset 2529135
- Timestamp:
- 05/10/2021 01:50:37 PM (5 years ago)
- Location:
- pureclarity-for-woocommerce/trunk
- Files:
-
- 4 edited
-
includes/class-pureclarity-session.php (modified) (2 diffs)
-
includes/feeds/class-pureclarity-feed.php (modified) (5 diffs)
-
pureclarity.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pureclarity-for-woocommerce/trunk/includes/class-pureclarity-session.php
r2403275 r2529135 168 168 $data = array( 169 169 'id' => (string) $product->get_id(), 170 'sku' => $product->get_sku(),171 170 'category_id' => $category, 172 171 ); 172 173 if ( $product->get_sku() ) { 174 $data['sku'] = $product->get_sku(); 175 } 176 173 177 wp_reset_postdata(); 174 178 $this->current_product = $data; … … 193 197 } 194 198 } 195 if ( $product->get_ sku() ) {199 if ( $product->get_id() ) { 196 200 return $product; 197 201 } -
pureclarity-for-woocommerce/trunk/includes/feeds/class-pureclarity-feed.php
r2477237 r2529135 274 274 $product_data = array( 275 275 'Id' => (string) $product->get_id(), 276 'Sku' => $product->get_sku(),277 276 'Title' => $product->get_title(), 278 277 'Description' => $product->get_description() . ' ' . $product->get_short_description(), … … 284 283 ); 285 284 285 if ( $product->get_sku() ) { 286 $product_data['Sku'] = $product->get_sku(); 287 } 288 289 286 290 if ( $product->get_type() === 'external' && ! empty( $product->get_button_text() ) ) { 287 291 $product_data['ButtonText'] = $product->get_button_text(); … … 331 335 $error[] = 'Prices'; 332 336 } 333 if ( ! array_key_exists( 'Sku', $product_data ) || empty( $product_data['Sku'] ) ) {334 $error[] = 'Sku';335 }336 337 if ( ! array_key_exists( 'Title', $product_data ) || empty( $product_data['Title'] ) ) { 337 338 $error[] = 'Title'; … … 380 381 foreach ( $product->get_available_variations() as $variant ) { 381 382 382 $this->add_to_array( 'AssociatedSkus', $json, $variant['sku'] ); 383 $this->add_to_array( 'AssociatedIds', $json, $variant['variation_id'] ); 384 if ( isset( $variant['sku'] ) && ! empty( $variant['sku'] ) ) { 385 $this->add_to_array( 'AssociatedSkus', $json, $variant['sku'] ); 386 } 383 387 384 388 $price = $variant['display_price'] . ' ' . get_woocommerce_currency(); … … 415 419 if ( ! empty( $child_product ) && $this->product_is_visible( $child_product ) ) { 416 420 $this->add_to_array( 'AssociatedIds', $json, $child_product->get_id() ); 417 $this->add_to_array( 'AssociatedSkus', $json, $child_product->get_sku() ); 421 if ( $child_product->get_sku() ) { 422 $this->add_to_array( 'AssociatedSkus', $json, $child_product->get_sku() ); 423 } 418 424 $this->add_to_array( 'AssociatedTitles', $json, $child_product->get_title() ); 419 425 $this->set_search_tags( $json, $child_product ); -
pureclarity-for-woocommerce/trunk/pureclarity.php
r2507241 r2529135 8 8 * Description: Use PureClarity's wide range of ecommerce personalisation features to create engaging online shopping experiences for your customers. Drive revenue, average order value, conversion rate and customer loyalty. 9 9 * Plugin URI: https://www.pureclarity.com 10 * Version: 3.1. 110 * Version: 3.1.2 11 11 * Author: PureClarity 12 12 * Author URI: https://www.pureclarity.com/?utm_source=marketplace&utm_medium=woocommerce&utm_campaign=aboutpureclarity … … 21 21 22 22 // Set version and path constants. 23 define( 'PURECLARITY_VERSION', '3.1. 1' );23 define( 'PURECLARITY_VERSION', '3.1.2' ); 24 24 define( 'PURECLARITY_DB_VERSION', 1 ); 25 25 -
pureclarity-for-woocommerce/trunk/readme.txt
r2507241 r2529135 4 4 Requires at least: 4.7 5 5 Tested up to: 5.6.1 6 Stable tag: 3.1. 16 Stable tag: 3.1.2 7 7 License: GPLv3 or later 8 8 License URI: https://www.gnu.org/licenses/gpl.html … … 194 194 * Fixed an issue with shortcodes displaying to customers when in admin-only mode 195 195 * Fixing undefined index error being logged on signup 196 197 = 3.1.2 = 198 * Tweaking usage of SKU in feeds process & product context to make it optional
Note: See TracChangeset
for help on using the changeset viewer.