<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <!-- REST add-to-cart (headless/tool flow) prices items via this event. -->
    <event name="sales_quote_product_add_after">
        <observer name="brushyourideas_photoprint_cart_price_quote"
                  instance="Brushyourideas\Photoprint\Observer\SetPhotoprintCartPrice"/>
    </event>
    <!-- Session-cart flow. -->
    <event name="checkout_cart_product_add_after">
        <observer name="brushyourideas_photoprint_cart_price"
                  instance="Brushyourideas\Photoprint\Observer\SetPhotoprintCartPrice"/>
    </event>
    <event name="product_addtocart_from_tool_data_prepare">
        <observer name="brushyourideas_photoprint_integration_price"
                  instance="Brushyourideas\Photoprint\Observer\IntegrationPhotoprintPrice"/>
    </event>
</config>
