Currently my Woocommerce cart widget look like this (witout total price of items):
img1 Coffee 2 x $5 ------------------- img2 Biscuit 1 x $10 ------------------- img3 Cheese 3 x $10 ------------------- Subtotal: $50
I want to change it to (with total price of quantity items):
img1 Coffee 2 x $5 $10 --------------------------- img2 Biscuit 1 x $10 $10 --------------------------- img3 Cheese 3 x $10 $30 --------------------------- Subtotal: $50
As you can see the second example of Cart Widget shows the total price of the items.
Can someone please help me out? Thanks in advance! :)!
Modify the woocommerce plugin to achieve this in following manner :
Make one folder in your theme folder and name it woocommerce and in new created woocommerce folder, create another folder with cart name.
So now it will look something like wp-content > themes > your-theme > woocommerce > cart.
Now go to your plugin directory and follow below path :
wp-content > plugins > woocommerce > templates > cart
When you go in above path, you will find one file named as
mini-cart.php
. Copy that file and paste it to the directory which we created at top of that answer.wp-content > themes > your-theme > woocommerce > cart > mini-cart.php
.Now its time to modify the code in wp-content > themes > your-theme > woocommerce > cart > mini-cart.php.
Simply replace all code with following code:
Let me know if you have any doubts.