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 AD0-E704 Exam - Topic 2 Question 37 Discussion

You have a task to modify the grand total on the checkout page with a negative price adjustment which depends on the shipping address postcode. What are two approaches to be used in this case?
A) Create a new shopping cart price rule with a condition based on the shipping address postcode and C) Create a new total collector which adds a negative price adjustment based on the postcode
B) Create a JavaScript mixin for the Magento_Checkout/ js /view /summary/,subtotal, change total there and Magento will submit the modified total when placing an order
D) Create an observer on the event sales_quote_collect_totals_after, get the quote object, check the postcode and set the modified grand total into it

Adobe AD0-E704 Exam - Topic 2 Question 37 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 37
Topic #: 2
[All AD0-E704 Questions]

You have a task to modify the grand total on the checkout page with a negative price adjustment which depends on the shipping address postcode. What are two approaches to be used in this case?

Show Suggested Answer Hide Answer
Suggested Answer: A, C

Contribute your Thoughts:

0/2000 characters
Tawny
7 months ago
Totally agree with D, it's the cleanest solution!
upvoted 0 times
...
Chara
7 months ago
Wait, can we really modify the total like that? Sounds risky!
upvoted 0 times
...
Georgeanna
7 months ago
C is a solid approach, but D might be more flexible.
upvoted 0 times
...
Bernardo
7 months ago
I think B is a bit overcomplicated for just adjusting totals.
upvoted 0 times
...
Julianna
7 months ago
Option A seems straightforward for this.
upvoted 0 times
...
Fernanda
8 months ago
Option C seems straightforward, creating a new total collector, but I wonder if it would handle all edge cases related to different postcodes effectively.
upvoted 0 times
...
Elfriede
8 months ago
I'm a bit confused about the JavaScript mixin in option B. I feel like we touched on it, but I can't recall how it would interact with the checkout process.
upvoted 0 times
...
Judy
8 months ago
I think option D might be the way to go since it involves using an observer, which we practiced in a similar question about modifying totals.
upvoted 0 times
...
Kimbery
8 months ago
I remember we discussed using shopping cart price rules in class, so option A sounds familiar, but I'm not entirely sure if it's the best approach for this scenario.
upvoted 0 times
...
Tamekia
8 months ago
I'm leaning towards option D - using an observer on the sales_quote_collect_totals_after event. That way we can directly modify the grand total based on the shipping address, without having to worry about the front-end display.
upvoted 0 times
...
Cherrie
8 months ago
Okay, I think I've got a handle on this. Option C, creating a new total collector, seems like the best approach to me. That way we can encapsulate the logic for the postcode-based price adjustment in a reusable component.
upvoted 0 times
...
Paola
8 months ago
I'm a bit confused by this question. Do we need to create a custom module for this, or can we do it all through the admin interface? I'm not sure if I have the right approach in mind.
upvoted 0 times
...
Terrilyn
8 months ago
Hmm, this looks like a tricky one. I think I'd start by looking at option A - creating a new shopping cart price rule based on the shipping address postcode. That seems like a straightforward way to handle the price adjustment.
upvoted 0 times
...
Robt
8 months ago
Hmm, this seems like a straightforward question about documentation best practices. I think the key is to make sure the whiteboard information is preserved, so I'd go with option B.
upvoted 0 times
...
Val
9 months ago
Hmm, this SAML 2.0 question seems a bit tricky. I'll need to think through the best practices carefully.
upvoted 0 times
...
Armanda
9 months ago
Ah, I think I've got it! Examining the firewall logs could help me spot any suspicious outbound traffic.
upvoted 0 times
...

Save Cancel