Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E722 Topic 6 Question 22 Discussion

Actual exam question for Adobe's AD0-E722 exam
Question #: 22
Topic #: 6
[All AD0-E722 Questions]

An Architect needs to create an additional regional UK website with its own website currency set to GBP in Adobe Commerce. An existing US website is using USD as a default base and website currency.

After the first week of sales in the new UK website, an administrator notices that all sales totals in Sales Orders report show 0.00.

How should this issue be resolved?

Show Suggested Answer Hide Answer
Suggested Answer: C

Option C is correct because adjusting the ruleset.xml file with the new rule is the simplest and most effective way to implement the new code rule. The ruleset.xml file defines the coding standards that are applied by PHP_CodeSniffer. By extending the Magento 2 Coding Standard and adding a new rule, the Architect can customize the code analysis and enforce the company coding standards.The new rule can use the Magento2.Namespaces.ForbiddenNamespaces sniff to check for any usage of Helper classes in the code and report them as errors or warnings1.

Option A is incorrect because creating a new composer package under the AwesomeAgencyCodingStandard namespace is not enough to implement the new code rule. The composer package is just a way to distribute and install the coding standard, but it does not define the rules themselves.The Architect still needs to create a ruleset.xml file and register it with PHP_CodeSniffer2.

Option B is incorrect because creating a new class AwesomeAgencyCodingStandardRulesetForbiddenNamespaces and specifying the rule inside the process method is unnecessary and complicated. The Architect does not need to create a new class or a new sniff for this rule, as there is already an existing sniff in the Magento 2 Coding Standard that can be used for this purpose.The Magento2.Namespaces.ForbiddenNamespaces sniff can be configured with an include-pattern element to specify which namespaces are forbidden1.


1: Magento 2 Coding Standards | Adobe Commerce Developer Guide

2: How to create a custom coding standard | PHP_CodeSniffer Documentation

Contribute your Thoughts:

Amie
1 months ago
I'm just picturing the admin staring at the 0.00 sales and going, 'Well, it's a new feature - zero sales!' Gotta love it. Anyway, option A seems like the obvious choice here.
upvoted 0 times
...
Naomi
2 months ago
I think we should also refresh Lifetime Statistics for 'Total Invoiced' just to be sure.
upvoted 0 times
...
Viola
2 months ago
Option C? Really? Shipping orders has nothing to do with the currency problem. I think option A is the way to go.
upvoted 0 times
Carey
17 days ago
Yeah, configuring the currency rates for GBP and USD should definitely help resolve the problem.
upvoted 0 times
...
Jean
19 days ago
I agree, option A seems like the most logical solution to fix the currency issue.
upvoted 0 times
...
...
Lacresha
2 months ago
I agree with Leota. Configuring currency rates for GBP and USD should fix the problem.
upvoted 0 times
...
Mary
2 months ago
Hmm, refreshing the Lifetime Statistics sounds like a good idea, but I'm not sure if that's the right fix here. Let's try option A first.
upvoted 0 times
...
Royal
2 months ago
Looks like a classic currency conversion issue. I'd go with option A and configure the currency rates for GBP and USD to fix this problem.
upvoted 0 times
Remona
15 hours ago
User 3: Let's make sure to update the currency rates so they are not empty.
upvoted 0 times
...
Quentin
25 days ago
User 2: Agreed, that should resolve the issue with the sales totals showing as 0.00.
upvoted 0 times
...
Ben
1 months ago
User 1: I think we should go with option A and configure the currency rates for GBP and USD.
upvoted 0 times
...
...
Leota
2 months ago
I think the issue might be with the currency rates not being configured properly.
upvoted 0 times
...

Save Cancel