A merchant asks for a new category attribute to allow uploading an additional mobile image against categories. The merchant utilizes the content staging and preview feature in Adobe Commerce and wants to schedule and review changes to this new mobile image field.
A developer creates the attribute via a data patch and adds it to view/adminhtml/ui_component/category_form.xml. The attribute appears against the category in the main form, but does not appear in the additional form when scheduled updates are made.
To change this attribute when scheduling new category updates, which additional action should the Architect ask the developer to take?
This is because, in order to change the attribute when scheduling new category updates, the attribute must be added to the view/adminhtml/ulcomponent/catalogstagingcategoryupdateform.xml file in order to be displayed in the additional form when scheduling updates. This additional form is used to set the values for the category attributes when scheduling updates.
1: https://docs.magento.com/user-guide/v2.3/cms/content-staging-category.html
A client is migrating to Adobe Commerce Cloud and has approximately 800 existing redirects that must be implemented. The number of redirects cannot be reduced because all redirects are specific, and do not match any pattern.
How should the redirects be configured to ensure performance?
The best option for configuring the redirects is to use VCL snippets to offload the redirects to Fastly. This is a Content Delivery Network (CDN) that can handle large numbers of requests quickly and efficiently, ensuring that your redirects will be processed quickly and reliably. Furthermore, VCL snippets are easy to set up and can be reused for other redirects, making them an efficient and cost-effective solution for managing large numbers of redirects.
An Adobe Commerce Architect needs to create a new customer segment condition to enable admins to specify an 'Average sales amount' condition for certain segments.
The Architect develops the custom condition under vendor\Module\Model\Segment\condition\AverageSalesAmount with all of its requirements:
Which two steps should the Architect complete to fix the problem? (Choose two.)
A)
B)
C)
D)
E)
A developer needs to uninstall two custom modules as well as the database data and schemas. The developer uses the following command:
bin/magento module:uninstall Vendor_SampleMinimal Vendor_SampleModifyContent
When the command is run from CLI, the developer fails to remove the database schema and data defined in the module Uninstall class.
Which three requirements should the Architect recommend be checked to troubleshoot this issue? (Choose three.)
To troubleshoot this issue, the Architect should check three requirements:
The composer.json file is present and defines the module as a composer package. This is necessary for the module:uninstall command to work properly, as it only applies to modules installed via composer.
The --remove-data option is specified as an argument for the CLI command. This will trigger the uninstallData() method in the Uninstall class and remove any database data related to the module.
The uninstall() method is implemented in the Uninstall class. This will trigger the uninstallSchema() method and remove any database schema related to the module. Alternatively, the uninstallSchema() method can be invoked directly in the Uninstall class.
An Adobe Commerce Architect is creating a new GraphQL API mutation to alter the process of adding configurable products to the cart. The mutation accepts configurable product ID. If the given product has only one variant, then the mutation should add this variant to the cart and return not nullable cart type. If the configurable product has more variants, then the mutation should return not nullable conf igurableProduct type.
The mutation declaration looks as follows:
How should the Adobe Commerce Architect declare output of this mutation?
A)
B)
C)