Custom Pricing Not Working on Product View
Closed this issue · 2 comments
Deleted user commented
Custom pricing is working on the list view for products, but not on the actual product page.
This is using the base Magento 2 Luma Theme.
If you hook into the catalog_product_load_after
event it works.
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="catalog_product_get_final_price">
<observer name="customer_specific_pricing" instance="JustBetter\CustomerPricing\Observer\FinalPrice" />
</event>
<event name="catalog_product_collection_load_after">
<observer name="custom_price_override_category" instance="JustBetter\CustomerPricing\Observer\CategoryPricing" />
</event>
<event name="catalog_product_load_after">
<observer name="customer_specific_pricing" instance="JustBetter\CustomerPricing\Observer\FinalPrice" />
</event>
</config>
VincentBean commented
Thank you for your feedback, the final price observer should fix this but if it doesn't could you make a PR to fix this?
VincentBean commented
Fixed by #4