Changeset 3174176
- Timestamp:
- 10/23/2024 09:31:36 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
product-feeder/tags/2.6.4/includes/product-feeder.php
r3174142 r3174176 324 324 $product = wc_get_product($Item['ProductID']); 325 325 if ($product instanceof WC_Product) { 326 if ( in_array($Item['VariationID'], $product->get_children())) {326 if (($product->get_type() == 'simple' && $Item['VariationID'] == $Item['ProductID']) || in_array($Item['VariationID'], $product->get_children())) { 327 327 $variation = wc_get_product($Item['VariationID']); 328 328 if ($variation instanceof WC_Product) $ItemsToAddToOrder[] = array('Variation' => $variation, 'Quantity' => $Item['Quantity']);
Note: See TracChangeset
for help on using the changeset viewer.