In a Magento system, the final price for a product is typically not calculated on-the-fly on the PHP level when displaying the product on the product view page. Magento employs an indexing mechanism to optimize and store product prices, and the final price is usually retrieved from the indexed tables, such as the catalog_product_index_price table.
Calculating the price on-the-fly on the PHP level for each product view can be resource-intensive and slow, especially in situations with a large number of products. Magento's indexing approach helps to enhance the performance of price retrieval for product pages.
So, for the final price on the product view page in Magento, the common practice is to fetch it from the indexed tables rather than calculating it dynamically on the PHP level.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
fahim5485
1 year ago