HJ
(@coach-henk)
You can try:
<?php echo woocommerce_price($product->get_price_excluding_tax());?>
ex BTW
<?php echo woocommerce_price($product->get_price_including_tax()); ?>
incl BTW
I use it in price.php in the theme in the folders single_product and loop.
Hi coach-henk,
So where should i place this piece of code to be exact?
In the file price.php ? that are in the theme folders : single_product and loop ?
Sorry i don’t fully understand where i should place this code .
HJ
(@coach-henk)
1. Make a folder woocommerce in your theme folder.
2. Make 2 folders: ‘loop’ and ‘single-product’ in the woocommerce folder
3. Copy the 2 original files (price.php) from the woocommerce plugin folder to both created folder.
4. Alter these files
I’ve bought the theme : TechgoStore link :http://themeforest.net/item/woocommerce-wordpress-theme-techgostore/5954407
It has it’s own woocommerce folder. should i alter the files there?
and you mean with altering : adding the 2 lines you provided earlier ?
Many thanks
HJ
(@coach-henk)
Yes you can alter the files in the theme’s folder. Add or replace the lines, I don’t know the specific code from the theme. Trial and error :D.
Just backup them first 🙂
Thanks for the tip on that .
But this isn’t what i meant, the problem is i changed the tax % for standard on woo commerce to 21% and entered the prices whit out tax/BTW so ex BTW and i want that woo commerce calculates and shows the 21 % in the price of the product. but the price is still the same as the one i enter it isn’t showing price+21% btw but just price
HJ
(@coach-henk)
Ah oke, it seems we are both looking for a solution for the same problem: http://wordpress.org/support/topic/woocommerce-show-price-excluding-and-including-vat?replies=1
If you find a solution please let me know.