Plugin Directory

Changeset 3337214


Ignore:
Timestamp:
07/31/2025 11:10:54 AM (8 months ago)
Author:
productfeeder
Message:

Updated to version 4.1.4

Location:
product-feeder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • product-feeder/tags/4.1.4/includes/product-feeder.php

    r3337207 r3337214  
    839839                                $Key = $attribute->get_taxonomy();
    840840                                foreach ($Terms as $Term) {
    841                                     if ($Options['Sizes'] == array('ONESIZE')) {
    842                                         $ProductSize = 'ONESIZE';
    843                                         $Options['Sizes'] = array();
    844                                     }
     841                                    if ($Options['Sizes'] == array('ONESIZE')) $ProductSize = 'ONESIZE';
    845842                                    else if (in_array($Key, $Options['Sizes'])) {
    846843                                        if (empty($ProductSize)) $ProductSize = $Term->name;
     
    999996            if (is_array($Data['attributes'])) {
    1000997                foreach ($Data['attributes'] as $attr_name => $attr_value) {
    1001                     if (in_array($attr_name, $Options['Sizes'])) {
     998                    if ($Options['Sizes'] == array('ONESIZE')) $VariationData['Size'] = 'ONESIZE';
     999                    else if (in_array($attr_name, $Options['Sizes'])) {
    10021000                        if (empty($VariationData['Size'])) $VariationData['Size'] = $this->ResolveAttributeValue($attr_value);
    10031001                        else {
  • product-feeder/trunk/includes/product-feeder.php

    r3337207 r3337214  
    839839                                $Key = $attribute->get_taxonomy();
    840840                                foreach ($Terms as $Term) {
    841                                     if ($Options['Sizes'] == array('ONESIZE')) {
    842                                         $ProductSize = 'ONESIZE';
    843                                         $Options['Sizes'] = array();
    844                                     }
     841                                    if ($Options['Sizes'] == array('ONESIZE')) $ProductSize = 'ONESIZE';
    845842                                    else if (in_array($Key, $Options['Sizes'])) {
    846843                                        if (empty($ProductSize)) $ProductSize = $Term->name;
     
    999996            if (is_array($Data['attributes'])) {
    1000997                foreach ($Data['attributes'] as $attr_name => $attr_value) {
    1001                     if (in_array($attr_name, $Options['Sizes'])) {
     998                    if ($Options['Sizes'] == array('ONESIZE')) $VariationData['Size'] = 'ONESIZE';
     999                    else if (in_array($attr_name, $Options['Sizes'])) {
    10021000                        if (empty($VariationData['Size'])) $VariationData['Size'] = $this->ResolveAttributeValue($attr_value);
    10031001                        else {
Note: See TracChangeset for help on using the changeset viewer.