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 7 Question 63 Discussion

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

You have a requirement to customize the Product Detail Page so users can enter their ID in a custom field and get a personalized price. The user has to see the lower of the personalized and the Magento price.

Which two actions do you take to enable the personalized price on the Product Detail Page and the checkout?

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

Nathalie
8 days ago
A) Adding a custom price class and implementing the getvalue method could work, but it might be overkill for this specific use case.
upvoted 0 times
...
Lawrence
14 days ago
I see your point, Apolonia. However, I think modifying the indexer, as mentioned in option D, could also be a valid solution to ensure all possible prices are listed.
upvoted 0 times
...
Nickolas
15 days ago
B) Modifying the product object directly in an event observer is a good idea, but I'm not sure if that's the most efficient way to handle this requirement.
upvoted 0 times
...
Apolonia
15 days ago
But wouldn't creating an observer for the event catalog_product_load_after, like option B suggests, be more practical in this scenario?
upvoted 0 times
...
Elroy
24 days ago
I disagree, I believe option C is better. Creating a plugin for the getFinalPrice method seems more efficient to me.
upvoted 0 times
...
Wilbert
25 days ago
C) Create a plugin for the Magento\Catalog\Model\Product::getFinalPrice method seems like the way to go. That's the most direct approach to override the final price calculation.
upvoted 0 times
Tamala
2 days ago
D) Modify the indexer so all possible prices are listed in the price index table
upvoted 0 times
...
Pamella
20 days ago
B) Create an observer for the event catalog_product_load_after, access the $product object and set a new price using the setFinalPrice method
upvoted 0 times
...
...
Apolonia
1 months ago
I think option A is the way to go. Adding a price class and implementing the getvalue method sounds like the right approach.
upvoted 0 times
...

Save Cancel