Remove Decimals from Price
-
I’m attempting to remove the .00 from my bulk pricing column. I would assume using a round() somewhere in the following code would achieve this:
(<?php echo wp_kses_post( wc_price( wc_get_price_to_display( wc_get_product( $product_id ), array( 'price' => $current_price, ) ) ) ) ; ?> each)
However, when I add the round() before wc_price I’m returned 0. My original thought was to add it in the array() but I can’t seem to get that to work either.
Thank you in advance.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove Decimals from Price’ is closed to new replies.