want to display sale price below regular price in woocommerce single product page. And also want to show regular price font small then sale price. I try to find it in many ways and also implement many code but it didn't work. Please suggest me,
For displaying the sale price, you could do something like below.
$original_price = 500 //Whatever your price is
$sale_percentage = 10
$sale_price = (sale_percentage/10)*original_price
echo "Sale price: " . $sale_price
Insert that into your WordPress site and there are some links on how to do that over here .
To change the font smaller or bigger, visit this link which will tell you how to do this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.