Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Variation Checkbox Float number in title

$
0
0

Replies: 0

Hi! I wanted to say Hi first! This is my first time here and Im not sure if here is the correct area to post this so I hope it is.

Sorry for my english.

I noticed that when you set a float price for the variatons group, it takes that value for the total cart sum but in the frontend container display, it shows a Int number.

I found a solution editing this file in the plugin: product-add-ons-woocommerce/includes/Frontend/templates/checkbox.php.

Changing the line 16 for:
<?= $value->price ? '(' . wc_price($value->price, array('decimals' => 2)) . ')' : "" ?>

Hope it helps more people, now it show the float value of the price in the frontend.


Viewing all articles
Browse latest Browse all 59525

Trending Articles