An Adobe Commerce developer is creating a new module to extend the functionality of the cart. The module is installed in app/code/CompanyName/ModuleName/.How would an Adobe Commerce developer extend the existing CartItemPrices GraphQL schema to include a custom base_price field?
An Adobe Commerce developer is working on a module to manage custom brand entities and wants to replicate the following SQL query using SearchCriteria:Which snippet of code would produce the desired SQL query?
The di.xml file of a module attaches two plugins for the class Action.The PluginA has the methods: beforeDispatch, aroundDispatch, afterDispatch.The PluginB has the methods: beforeDispatch, afterDispatch.The around plugin code is:What would be the plugin execution order?
An Adobe Commerce developer is working on a custom gallery extension.The module uses the Magento\Catalog\Model\ImageUploader class for image uploading. The admin controller for custom image uploads is Vendor\CustomGallery\Controller\Adminhtml\Image\Upload.The images need to be stored in different basePath and baseTmpPath than the default ones.How can the default ImageUploader class be extended and used without affecting the other modules that are already using it?
An Adobe Commerce developer has added a new configuration field to the admin area. The path for this option is general/store_information/out_of_hours_phone.Keeping simplicity in mind, how would the developer ensure this option contains a valid US telephone number?
An Adobe Commerce developer has created a new shipping carrier. Everything has been implemented and the collectRates() and getAllowedMethods() functions can be seen below:Given the above code, what would be the displayed cost of the shipping method and final amount charged to the customer?