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:

Dalene
5 hours ago
I'm not entirely sure, but I remember something about plugins being useful for altering methods like in option C.
upvoted 0 times
...
Vanesa
6 days ago
I think option B sounds familiar since we practiced using observers to modify product data after loading.
upvoted 0 times
...
Talia
11 days ago
The key here is to find a way to access the product object and update the price. I'll need to explore the different event observers and plugin options to see what works best.
upvoted 0 times
...
Lemuel
17 days ago
I'm feeling pretty confident about this one. I've worked on similar customizations before, so I think I know the right steps to take.
upvoted 0 times
...
Thurman
22 days ago
Okay, I think I've got a strategy here. I'll focus on creating a plugin for the getFinalPrice method to handle the personalized pricing logic.
upvoted 0 times
...
Maile
28 days ago
Hmm, I'm a bit confused by the wording of the question. I'll need to re-read it a few times to make sure I understand exactly what they're asking.
upvoted 0 times
...
Fernanda
1 month ago
This looks like a tricky one. I'll need to carefully review the options and think through the best approach.
upvoted 0 times
...
Jovita
3 months ago
D) Modifying the indexer seems a bit like a hack to me. I'd prefer a more elegant solution that doesn't touch the underlying price data.
upvoted 0 times
...
Alberta
3 months ago
Haha, I bet the client is going to love this personalized pricing feature. Let's hope they don't try to game the system!
upvoted 0 times
Micaela
2 months ago
D) Modify the indexer so all possible prices are listed in the price index table
upvoted 0 times
...
Ciara
2 months ago
C) Create a plugin for the Magento\Catalog\Model\Product::getFinalPrice method
upvoted 0 times
...
Valentine
3 months 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
...
Raul
3 months ago
A) Add a price class to the prices parameter of the Magento\Catalog\Pricing\Price\Pool class and implement the getvalue method
upvoted 0 times
...
...
Nathalie
3 months 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
Salome
3 months ago
B) Modify the indexer so all possible prices are listed in the price index table
upvoted 0 times
...
Shawnee
3 months ago
A) 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
...
...
Lawrence
4 months 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
4 months 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
Alexis
2 months ago
C) Create a plugin for the Magento\Catalog\Model\Product::getFinalPrice method
upvoted 0 times
...
Lorriane
3 months ago
A) Add a price class to the prices parameter of the Magento\Catalog\Pricing\Price\Pool class and implement the getvalue method
upvoted 0 times
...
...
Apolonia
4 months 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
4 months 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
4 months 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
3 months ago
D) Modify the indexer so all possible prices are listed in the price index table
upvoted 0 times
...
Pamella
4 months 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
4 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