justbetter/magento2-customer-pricing

Custom Pricing Not Working on Product View

Closed this issue · 2 comments

Custom pricing is working on the list view for products, but not on the actual product page.

List View Product Pricing:
image

Product View Pricing:
image

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>

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?

Fixed by #4