Skip to content

Commit

Permalink
Build v2.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollings committed Feb 12, 2025
1 parent f3999d7 commit ef4bc49
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Requires Import WP: 2.11.6

**Version: 2.3.5**
**Version: 2.3.6**

![WooCommerce Product Importer](./assets/iwp-addon-woocommerce.png)

Expand Down Expand Up @@ -52,6 +52,10 @@ The WooCommerce Product Importer Addon can currently only be installed by downlo

## Changelog

### 2.3.6

- FIX - Skip attribute if no attribute name is passed.

### 2.3.5

- ADD - Add new field for "GTIN, UPC, EAN, or ISBN".
Expand Down
10 changes: 10 additions & 0 deletions class/Importer/Template/ProductTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,11 @@ public function set_variation_data(&$variation, ParsedData $data)

$prefix = 'attributes.' . $i . '.';
$name = $raw_attributes[$prefix . 'name'];

if (empty($name)) {
continue;
}

$terms = $raw_attributes[$prefix . 'terms'];
$global = $raw_attributes[$prefix . 'global'];
$visible = $raw_attributes[$prefix . 'visible'];
Expand Down Expand Up @@ -1392,6 +1397,11 @@ protected function get_variation_parent_attributes($raw_attributes, $parent)
for ($i = 0; $i < $record_count; $i++) {
$prefix = 'attributes.' . $i . '.';
$name = $raw_attributes[$prefix . 'name'];

if (empty($name)) {
continue;
}

$terms = $raw_attributes[$prefix . 'terms'];
$global = $raw_attributes[$prefix . 'global'];
$visible = $raw_attributes[$prefix . 'visible'];
Expand Down
2 changes: 1 addition & 1 deletion woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin URI: https://www.importwp.com
* Description: Allow Import WP to import WooCommerce Products.
* Author: James Collings <[email protected]>
* Version: 2.3.5
* Version: 2.3.6
* Author URI: https://www.importwp.com
* Network: True
*/
Expand Down

0 comments on commit ef4bc49

Please sign in to comment.