Adding a price suffix ONLY on product pages
-
Hey! So I managed to add some php code in order to show a price suffix.
Now I would want to only show this at the product page.
So that restriction would need to be added to this code:
add_filter( 'woocommerce_get_price_suffix', 'bbloomer_add_price_suffix_price_inc_tax', 99, 4 ); function bbloomer_add_price_suffix_price_inc_tax( $suffix, $product, $price, $qty ){ $suffix = ' <small>(inkl. MwSt.)</small>'; return $suffix; }
Hope you can help me out on this one again!
With kind regards
Chris
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Adding a price suffix ONLY on product pages’ is closed to new replies.