BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E722 Exam - Topic 6 Question 22 Discussion

Posted by Talia on Jul 17, 2024 at 10:40 AM

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?

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

Get Premium AD0-E722 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
33 comments · newest first
SA
Salome 12 months ago
Shipping status shouldn't affect the sales report totals, right?
SH
Shawnda 1 year ago
Definitely need to configure those currency rates first.
LA
Laquita 1 year ago
Wait, how can all sales show 0.00? That’s odd!
LA
Lajuana 1 year ago
I think refreshing stats won't fix the sales total.
NA
Nathan 1 year ago
Sounds like a currency rate issue. Check GBP rates!
WH
Whitney 1 year ago
I think option A is definitely the right choice. If the currency rates are empty, it would explain why the sales totals show as zero.
HO
Hobert 1 year ago
I wonder if the orders being in a processing state could affect the totals. I think we touched on order statuses in our last module, but I’m not confident.
AN
Annmarie 1 year ago
I'm not entirely sure, but I feel like refreshing statistics could help. We practiced something similar in our last session, but I can't recall the exact steps.
EL
Elvera 1 year ago
I remember we discussed currency configuration in class, so I think option A makes sense since the rates might not be set up correctly.
GE
Gearldine 1 year ago
I'm a bit confused on this one. I'll need to review the details and think through the possible solutions before deciding.
MA
Marleen 1 year ago
Interesting. Making sure the orders are shipped and not left in processing state is also a good troubleshooting step to consider.
MA
Margurite 1 year ago
Ah, I see. Refreshing the Lifetime Statistics might be a good place to start. That could help update the sales totals.
SH
Shonda 1 year ago
Okay, let's see. I'm pretty sure the issue has to do with the currency configuration, so I'll start by looking at that.
RU
Rueben 1 year ago
Hmm, this seems like a tricky one. I'll need to think through the different options carefully.
JA
Jaime 1 year ago
I'm leaning towards the Custom Label option. That seems like a simpler solution, and I can just update the Label value if I need to change the endpoint. But I'm not 100% sure if that's the best approach here.
EL
Ellsworth 1 year ago
This seems like a tricky question. I'll need to think carefully about the different options and how they might impact memory usage and message loss.
AM
Amie 2 years 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.
ER
Erick 1 year ago
↳ replying to Amie
User 4: Yeah, let's make sure everything is set up correctly before jumping to conclusions.
SA
Salena 1 year ago
↳ replying to Amie
User 3: Maybe we should also refresh Lifetime Statistics for 'Total Invoiced' just to be sure.
JA
Jackie 1 year ago
↳ replying to Amie
User 2: Agreed, that should fix the issue with the sales totals showing 0.00.
FE
Felicia 1 year ago
↳ replying to Amie
User 1: I think we need to configure currency rates for GBP and USD.
NA
Naomi 2 years ago
I think we should also refresh Lifetime Statistics for 'Total Invoiced' just to be sure.
VI
Viola 2 years ago
Option C? Really? Shipping orders has nothing to do with the currency problem. I think option A is the way to go.
CA
Carey 2 years ago
↳ replying to Viola
Yeah, configuring the currency rates for GBP and USD should definitely help resolve the problem.
JE
Jean 2 years ago
↳ replying to Viola
I agree, option A seems like the most logical solution to fix the currency issue.
LA
Lacresha 2 years ago
I agree with Leota. Configuring currency rates for GBP and USD should fix the problem.
MA
Mary 2 years 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.
RO
Royal 2 years 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.
JO
Jody 1 year ago
↳ replying to Royal
User 4: Once that's done, we can check the Sales Orders report again to see if the totals are correct.
RE
Remona 1 year ago
↳ replying to Royal
User 3: Let's make sure to update the currency rates so they are not empty.
QU
Quentin 2 years ago
↳ replying to Royal
User 2: Agreed, that should resolve the issue with the sales totals showing as 0.00.
BE
Ben 2 years ago
↳ replying to Royal
User 1: I think we should go with option A and configure the currency rates for GBP and USD.
LE
Leota 2 years ago
I think the issue might be with the currency rates not being configured properly.
0/2000 characters

Save Cancel