Change the total price of a product in cart - wordpress

as you see in the image, the cart has two products.
I want to add some extra charge to the total price of the first product.
Now is 360 I want to add 30 so, the total price will be 390.
I did it by using the woocommerce_cart_product_subtotal
filter, but the cart's total price doesn't update.
It shows 560 and not 590, which is what I want.
Does anyone know how could it be done?

Related

Increase price of all products after every sale (WOOCOMMERCE)

I would like to increase the price by $20 of all products after every new sell in woocommerce
Exemple:
Starting prices $50
First order : all products prices become $70
Second order : all products prices become $90
Third : all products prices become $110
and so...
I believe this plugin should give you what you want it is a bit outdated so use at your own caution
https://wordpress.org/plugins/raise-prices-with-sales-for-woocommerce/

replace price in woocommerce product page based on a formula

can someone let me know how can i modify the product price of a woocommerce individual product page.
what i want to do is replace the product price with a new price and show several other prices.
for an example,
i want to increase the price shown by 10%
show installment price
show paypal price
i want to only display these and i dont want a full code, i want a guide on how to do this coz im new to wordpress/woocommrce and want to learn.
any help will be appreciated

Split shipping cost in cart

I have Shipping costs based on the number of categories in cart. Base shipping is 250 and if the number of categories is more than 1 for every category is charged extra 50. At the moment everything is shown together in a cart, I would like to be extra cost visible with a label and new row.
It looks like you might need to modify the WooCommerce checkout template in the theme that you are using.

Two different prices for the one product on the checkout page (bug)

The correct price for the product is €38 and VAT is included to the price #23%
In the products page the price 30.89 plus 23% = 30.894*1.23 = 37.99962
But when I add a product and go tho the cart, the total price and the cart prices are out by a cent
the cart is €38 but the check out is €38.01
I tried every combination possible to get both prices correct and I can get €37.99 and €40.01 but I can't get €40 in both carts.
I'm not sure how they could be different I thought they would be going by the same calculation but obviously not.
It looks like a rounding issue. Try increasing the number of decimals in WooCommerce > Settings > General

WooCommerce Tax Apply on Order Total Amount instead of Cart Subtotal?

I want to apply 25%Tax on Order total amount. In given example it apply on the Subtotal..
Cart Subtotal - 300 ... Shipping - 100 ... Order Total 400 - (Includes 60 VAT)
the 25% of 300 is 60, but I want the result as 25% of 400 is 80.
I really appreciate your help. Thanks
https://wordpress.org/plugins/woocommerce/
Go to WooCommerce > Settings, open tab Shipping, click on your shipping method and set it to be Taxable.
Go to tab Tax, select your desired tax class under Shipping Tax Class.
Open selected tax class settings (click on one of the text links above) and make sure there's a checkbox ticked under "Shipping".
That should be it.

Resources