Variation Checkbox Float number in title
-
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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Variation Checkbox Float number in title’ is closed to new replies.