Skip to content

Commit

Permalink
fix attribute values
Browse files Browse the repository at this point in the history
  • Loading branch information
Sami Kerboute committed Aug 11, 2020
1 parent 12fde34 commit bb8aa0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## ShoppingFeed
Contributors: ShoppingFeed, BeAPI
Tags: shoppingfeed, marketplace, woocommerce, woocommerce shoppingfeed, create woocommerce products shoppingfeed, products feed, generate shoppingfeed, amazon, Jet, Walmart, many marketplace, import orders
Stable tag: 6.0.4
Version: 6.0.4
Stable tag: 6.0.5
Version: 6.0.5
Requires PHP: 5.6
Requires at least: 5.2
Tested up to: 5.4.2
Expand All @@ -17,6 +17,7 @@ Version 6.0.0 is a major version, there are several changes and improvements whi
6.0.1: edit readme.txt
6.0.3: edit version number
6.0.4: fix permalink issue
6.0.5: correct attribute values

== Description ==
WordPress connection Controller Plugin for ShoppingFeed - Sell on Amazon, Ebay, Google, and 1000's of international marketplaces
Expand Down
4 changes: 2 additions & 2 deletions shoppingfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://www.shopping-feed.com/
* Text Domain: shopping-feed
* Domain Path: /languages
* Version: 6.0.3
* Version: 6.0.5
* Requires at least WP: 5.2
* Requires at least WooCommerce: 3.8 (3.9/4.0)
* Requires PHP: 5.6
Expand All @@ -25,7 +25,7 @@
require_once plugin_dir_path( __FILE__ ) . '/vendor/autoload.php';
}

define( 'SF_VERSION', '1.0.0' );
define( 'SF_VERSION', '6.0.5' );
define( 'SF_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'SF_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'SF_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
Expand Down
2 changes: 1 addition & 1 deletion src/Products/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function get_attributes() {

$attribute_names = array();
foreach ( $attribute['options'] as $option ) {
$attribute_names[] = get_term( $option )->name;
$attribute_names[] = term_exists( $option ) ? get_term( $option )->name : $option;
}

$attributes [ wc_attribute_label( $taxonomy ) ] = implode( ',', $attribute_names );
Expand Down

0 comments on commit bb8aa0e

Please sign in to comment.