0

Cart subtotal

i created observer

<event name="sales_quote_add_item">
        <observer name="webkul_mpquote_sales_quote_add_item" instance="Webkul\Mpquotesystem\Observer\SalesQuoteAddItem" />
    </event>

when ever i add product to cart i have set custom price

salesquoteadditem.php

$subTotal=$priceOne;    //priceOne = 10,000
                $quoteItem->setSubtotal($subTotal);
                $quoteItem->setBaseSubtotal($subTotal);

I try to set subtotal price 10,000 but multiplies by the quantity

my questions:

1) I want to set subtotal price through the program

2)Also, I want the no of quantities

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.