Change price of product in Cart Blocks [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 14 hours ago. Improve this question I need a little bit of help, I have my custom plugin in which multiple options are selected by the user, when the user select options and presses add to cart, the price of options adds to product price and go to cart page, when I update the quantity of product, the price is not calculation properly, I am using hook 'woocommerce_add_cart_item', in this hook, I am updating the price using the set_price function how can I accurately update the product's price on the cart page? I have tried this in jQuery, bt it refreshes the block, I do not want block to refresh and chang price directly like default woocommerce do.... wp.hooks.addAction('experimental__woocommerce_blocks-cart-set-item-quantity', 'a-cm-cart-block', function(item) { if ( ! contentReloaded ) { reloadPageContent(); contentReloaded = true; } });

Comment (0)

You’ll be in good company