• Resolved santiagofloresh

    (@santiagofloresh)


    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)
  • Plugin Author bizswoop

    (@bizswoop)

    Thank you so much for your information and contribution to the community using the Product Add-ons plugins. This is a great place to post the information. Hopefully other users will find your solution useful to them as well, if they need a similar solution for float price.

Viewing 1 replies (of 1 total)
  • The topic ‘Variation Checkbox Float number in title’ is closed to new replies.