File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
app/code/Meta/Catalog/Model/Product/Feed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,6 @@ class Builder
141
141
*/
142
142
private $ uploadMethod ;
143
143
144
- /**
145
- * @var bool
146
- */
147
- private $ inventoryOnly = false ;
148
-
149
144
/**
150
145
* @var SystemConfig
151
146
*/
@@ -227,18 +222,6 @@ public function setUploadMethod($uploadMethod)
227
222
return $ this ;
228
223
}
229
224
230
- /**
231
- * Set inventory only
232
- *
233
- * @param bool $inventoryOnly
234
- * @return $this
235
- */
236
- public function setInventoryOnly ($ inventoryOnly )
237
- {
238
- $ this ->inventoryOnly = $ inventoryOnly ;
239
- return $ this ;
240
- }
241
-
242
225
/**
243
226
* Get default brand
244
227
*
@@ -762,14 +745,6 @@ public function buildProductEntry(Product $product)
762
745
$ this ->productIdentifier ->getProductIDOtherThanRetailerId ($ product )
763
746
);
764
747
765
- if ($ this ->inventoryOnly ) {
766
- return [
767
- self ::ATTR_RETAILER_ID => $ retailerId ,
768
- self ::ATTR_AVAILABILITY => $ inventory ->getAvailability (),
769
- self ::ATTR_INVENTORY => $ inventory ->getInventory (),
770
- ];
771
- }
772
-
773
748
$ title = $ product ->getName ();
774
749
$ productTitle = $ this ->trimAttribute (self ::ATTR_NAME , $ title );
775
750
@@ -982,10 +957,6 @@ public function getHeaderFields()
982
957
$ headerFields [] = self ::ATTR_UNSUPPORTED_PRODUCT_DATA ;
983
958
}
984
959
985
- if ($ this ->inventoryOnly ) {
986
- return [self ::ATTR_RETAILER_ID , self ::ATTR_AVAILABILITY , self ::ATTR_INVENTORY ];
987
- }
988
-
989
960
return $ headerFields ;
990
961
}
991
962
You can’t perform that action at this time.
0 commit comments