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-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
3 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
3 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
2 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
2 months ago
Creating an observer on the event sales_quote_collect_totals_after could also work well for this scenario.
upvoted 0 times
...
Nelida
2 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
2 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
2 months ago
I agree, creating a new total collector based on the postcode seems like a more targeted approach.
upvoted 0 times
...
Donte
2 months ago
Option B sounds like a good approach. Modifying the total directly in the JavaScript file seems efficient.
upvoted 0 times
...
...
Precious
3 months ago
I prefer option B and C because they involve direct modification of the total.
upvoted 0 times
...
Kina
3 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
3 months ago
I think option A and D are good approaches.
upvoted 0 times
...
Abel
3 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
2 months ago
User 3: I agree, isolating the logic on the client-side is a smart approach.
upvoted 0 times
...
Hubert
2 months ago
User 2: Yeah, modifying the JavaScript code in the checkout summary keeps things clean.
upvoted 0 times
...
Antione
2 months ago
User 1: I think option B is a good choice for this task.
upvoted 0 times
...
...
Iluminada
3 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
2 months ago
I agree, creating a new total collector for the custom adjustment seems like the most efficient approach.
upvoted 0 times
...
Bettye
2 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
2 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
3 months ago
I agree, creating a new total collector for the custom adjustment seems like the most efficient approach.
upvoted 0 times
...
Maynard
3 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
3 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77