Changeset 3337214
- Timestamp:
- 07/31/2025 11:10:54 AM (8 months ago)
- Location:
- product-feeder
- Files:
-
- 2 edited
-
tags/4.1.4/includes/product-feeder.php (modified) (2 diffs)
-
trunk/includes/product-feeder.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
product-feeder/tags/4.1.4/includes/product-feeder.php
r3337207 r3337214 839 839 $Key = $attribute->get_taxonomy(); 840 840 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'; 845 842 else if (in_array($Key, $Options['Sizes'])) { 846 843 if (empty($ProductSize)) $ProductSize = $Term->name; … … 999 996 if (is_array($Data['attributes'])) { 1000 997 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'])) { 1002 1000 if (empty($VariationData['Size'])) $VariationData['Size'] = $this->ResolveAttributeValue($attr_value); 1003 1001 else { -
product-feeder/trunk/includes/product-feeder.php
r3337207 r3337214 839 839 $Key = $attribute->get_taxonomy(); 840 840 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'; 845 842 else if (in_array($Key, $Options['Sizes'])) { 846 843 if (empty($ProductSize)) $ProductSize = $Term->name; … … 999 996 if (is_array($Data['attributes'])) { 1000 997 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'])) { 1002 1000 if (empty($VariationData['Size'])) $VariationData['Size'] = $this->ResolveAttributeValue($attr_value); 1003 1001 else {
Note: See TracChangeset
for help on using the changeset viewer.