Skip to content

Commit d45c838

Browse files
authored
remove product identifier from ui (#241)
1 parent 8ea00ff commit d45c838

File tree

6 files changed

+4
-19
lines changed

6 files changed

+4
-19
lines changed

app/code/Meta/BusinessExtension/etc/config.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
<active>1</active>
77
<onsite>0</onsite>
88
</business_extension>
9+
<catalog_management>
10+
<product_identifier>sku</product_identifier>
11+
</catalog_management>
912
<debug>
1013
<debug_mode>1</debug_mode>
1114
</debug>

app/code/Meta/Catalog/etc/adminhtml/system.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
3030
<comment>Synchronize changes with Meta every time a product is saved or deleted</comment>
3131
</field>
32-
<field id="product_identifier" translate="label comment" type="select" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="1">
33-
<label>Product Identifier</label>
34-
<config_path>facebook/catalog_management/product_identifier</config_path>
35-
<source_model>Meta\Catalog\Model\Config\Source\Product\Identifier</source_model>
36-
<comment>Adobe Commerce product attribute mapped to Retailer ID / Content ID on Meta. Warning: use with caution, as changing this option after uploading products to Meta might result in having duplicate products in your Meta catalog</comment>
37-
</field>
3832
<field id="price_incl_tax" translate="label comment" type="select" sortOrder="60" showInDefault="0" showInWebsite="0" showInStore="0">
3933
<label>Price Including Tax</label>
4034
<config_path>facebook/catalog_management/price_incl_tax</config_path>

app/code/Meta/Catalog/etc/config.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<daily_product_feed>0</daily_product_feed>
77
<feed_upload_method>feed_api</feed_upload_method>
88
<incremental_product_updates>0</incremental_product_updates>
9-
<product_identifier>sku</product_identifier>
109
<price_incl_tax>0</price_incl_tax>
1110
<collections_sync>0</collections_sync>
1211
</catalog_management>

app/code/Meta/Conversion/Helper/MagentoDataHelper.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
use Magento\Framework\Exception\LocalizedException;
2323
use Magento\Quote\Api\Data\CartInterface;
2424
use Magento\Store\Model\StoreManagerInterface;
25-
use Meta\Catalog\Helper\Product\Identifier as ProductIdentifier;
2625
use Magento\Catalog\Model\Product;
2726
use Magento\ConfigurableProduct\Model\Product\Type\Configurable;
2827
use Magento\Framework\Exception\NoSuchEntityException;
@@ -49,11 +48,6 @@ class MagentoDataHelper
4948
*/
5049
private ProductRepositoryInterface $productRepository;
5150

52-
/**
53-
* @var ProductIdentifier
54-
*/
55-
private ProductIdentifier $productIdentifier;
56-
5751
/**
5852
* @var CategoryRepositoryInterface
5953
*/
@@ -74,22 +68,19 @@ class MagentoDataHelper
7468
*
7569
* @param StoreManagerInterface $storeManager
7670
* @param ProductRepositoryInterface $productRepository
77-
* @param ProductIdentifier $productIdentifier
7871
* @param CategoryRepositoryInterface $categoryRepository
7972
* @param PricingHelper $pricingHelper
8073
* @param SystemConfig $systemConfig
8174
*/
8275
public function __construct(
8376
StoreManagerInterface $storeManager,
8477
ProductRepositoryInterface $productRepository,
85-
ProductIdentifier $productIdentifier,
8678
CategoryRepositoryInterface $categoryRepository,
8779
PricingHelper $pricingHelper,
8880
SystemConfig $systemConfig
8981
) {
9082
$this->storeManager = $storeManager;
9183
$this->productRepository = $productRepository;
92-
$this->productIdentifier = $productIdentifier;
9384
$this->categoryRepository = $categoryRepository;
9485
$this->pricingHelper = $pricingHelper;
9586
$this->identifierAttr = $systemConfig->getProductIdentifierAttr();

app/code/Meta/Conversion/composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"magento/module-sales": "*",
1313
"magento/module-store": "*",
1414
"magento/module-quote": "*",
15-
"meta/module-business-extension": "*",
16-
"meta/module-catalog": "*"
15+
"meta/module-business-extension": "*"
1716
},
1817
"license": "Apache-2.0",
1918
"autoload": {

app/code/Meta/Conversion/etc/module.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<module name="Magento_Store"/>
1212
<module name="Magento_Quote"/>
1313
<module name="Meta_BusinessExtension"/>
14-
<module name="Meta_Catalog"/>
1514
</sequence>
1615
</module>
1716
</config>

0 commit comments

Comments
 (0)