BlackFriday 2024! 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-E704 Topic 6 Question 39 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 39
Topic #: 6
[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:

Ceola
5 months ago
I'd go with option B. Injecting a little JavaScript magic is always more fun than writing boring server-side code, am I right?
upvoted 0 times
...
Yuette
5 months ago
Option A is a bit too generic for me. A shopping cart price rule feels like overkill for a simple postcode-based adjustment.
upvoted 0 times
Bettina
4 months ago
Option D could work too. Using an observer on the event to check the postcode and modify the grand total accordingly.
upvoted 0 times
...
Alida
4 months ago
Creating an observer on the event sales_quote_collect_totals_after could also work well for this scenario.
upvoted 0 times
...
Nelida
4 months ago
Yeah, that way you can directly add the negative price adjustment without going through a shopping cart price rule.
upvoted 0 times
...
Veronique
4 months ago
I agree, Option C also seems like a straightforward solution. Creating a new total collector for the negative adjustment based on postcode.
upvoted 0 times
...
Stefany
4 months ago
I agree, creating a new total collector based on the postcode seems like a more targeted approach.
upvoted 0 times
...
Donte
4 months ago
Option B sounds like a good approach. Modifying the total directly in the JavaScript file seems efficient.
upvoted 0 times
...
...
Precious
5 months ago
I prefer option B and C because they involve direct modification of the total.
upvoted 0 times
...
Kina
5 months ago
Option D with the observer pattern is a good choice too. It allows you to hook into the existing event flow and update the quote data as needed.
upvoted 0 times
...
Nelida
5 months ago
I think option A and D are good approaches.
upvoted 0 times
...
Abel
5 months ago
I like option B! Modifying the JavaScript code in the checkout summary is a great way to keep the logic isolated and avoid cluttering the server-side code.
upvoted 0 times
Reita
4 months ago
I agree, isolating the logic on the client-side is a smart approach.
upvoted 0 times
...
Hubert
4 months ago
Yeah, modifying the JavaScript code in the checkout summary keeps things clean.
upvoted 0 times
...
Antione
4 months ago
I think option B is a good choice for this task.
upvoted 0 times
...
...
Iluminada
5 months ago
Option C seems like the most straightforward approach. Adding a custom total collector to handle the postcode-based price adjustment is a clean and modular way to implement this feature.
upvoted 0 times
Mari
4 months ago
I agree, creating a new total collector for the custom adjustment seems like the most efficient approach.
upvoted 0 times
...
Bettye
4 months ago
I think option C is the best choice. It's a clean way to handle the price adjustment based on postcode.
upvoted 0 times
...
Joye
4 months ago
Creating a new total collector for the custom price adjustment based on postcode would definitely be a good way to go.
upvoted 0 times
...
Edna
5 months ago
I agree, creating a new total collector for the custom adjustment seems like the most efficient approach.
upvoted 0 times
...
Maynard
5 months ago
I agree, option C does seem like a clean and modular approach to handle the price adjustment based on postcode.
upvoted 0 times
...
Simona
5 months ago
I think option C is the best choice. It's a clean way to handle the price adjustment based on postcode.
upvoted 0 times
...
...

Save Cancel