Notifications
Clear all
Topic starter
Suppose you want to develope a custom extension that should provide product_redirect_links to amazon.com, ebay.com and other sites. Suppose this must be added using extension_attribute feature to make that availbe for product repository and services, then what are the customizations needed to develope it: Choose 2
- A . In your custom module, create etc/extension_attributes.xml, and define needed attribute_code under
extension_attributes for=”Magento\Catalog\Api\Data\ProductInterface”
B. In your custom module create, etc/di.xml and add plugin code to join product_redirect_links attribute to ProductRepositoryList
<type name="Magento\Catalog\Api\ProductRepositoryInterface">
<plugin name="joinExternalLinksToProductRepositoryList"
type="Magento\ExternalLinks\Model\Plugin\Product\Repository"/>
</type>
C. In your custom module create Setup/InstallSchema.php and add requried product attribute create code and run setup:upgrade.
D. None of these
Suggested Answer: AB
Posted : 19/11/2022 10:15 am