How to change the getPrice() function to all Entire website
-
03-10-2020 - |
문제
Actually, We have implement some custom calculation for all type of products,
Now i have edit the app/code/core/Mage/Catalog/Model/Product/Type/Price.php , Its working on homepage and cart and checkoutpage., but cant change in the search page which means www.magentosite.com/catalogsearch/result/?q=search+product+. How can change in product search list page. please anyone.
해결책 2
Finally I found, the path
- app\code\core\Mage\Sales\Model\Quote\Item\Abstract.php - function getPrice()
- app\code\core\Mage\Tax\Helper\Data.php - function getPrice($product, $price.....)
- app\code\core\Mage\Catalog\Model\Product\Type\Price.php - function getPrice($product)**
These All the files need to customize the price of the product
다른 팁
Products in search and layer filtered navigation use the price index for displaying. As such you must reindex "Product prices" index.
제휴하지 않습니다 magento.stackexchange