Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@

## Changelog ##

### 0.6.5 ###
* Fixed category for variant products

### 0.6.4 ###
* Add support for custom attributes in initializer

Expand Down
4 changes: 3 additions & 1 deletion includes/class-lipscore-product-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ public function product_data( $product ) {
$product_id = $this->product_id($parent);
$variant_name = $product->get_name();
$variant_id = $product->get_id();
$category = $this->product_category($parent);
} else {
$product_id = $this->product_id($product);
$category = $this->product_category($product);
}

return array(
Expand All @@ -35,7 +37,7 @@ public function product_data( $product ) {
'image_url' => $this->image_url( $product ),
'price' => $product->get_price(),
'currency' => get_woocommerce_currency(),
'category' => $this->product_category( $product ),
'category' => $category,
'gtin' => $this->product_gtin( $product ),
'variant_name' => $variant_name,
'variant_id' => $variant_id
Expand Down
2 changes: 1 addition & 1 deletion lipscore.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Plugin Name: Lipscore Ratings and Reviews
* Plugin URI: http://lipscore.com/
* Description: Collecting reviews is difficult. Let the most efficient and flexible plugin in the world do it for you.
* Version: 0.6.4
* Version: 0.6.5
* Author: Lipscore
* Author URI: http://lipscore.com/
* Donate link: http://lipscore.com/
Expand Down