• Hey, the plugin works fine and is awesome. the only problem I have is, the quantity amount shows 4 decimals after comma.
    The first point is, the view is not that pretty (quantity amount 1.0000 – 99.0000 or 100.0000 – 299.0000 just for example)
    and on the other hand there is no option to buy 0.5 (for e.g.) things on woocommerce (without using plugins) why it is really useless to have these decimals.
    I tried to fix this transitionally but can’t find the correct position in plugin-code to only show integer.
    On the other hand I am sure it is a problem of the server or of the goods management system or the serial interface, but I think it is faster to fix it in the plugin for this moment until I am able fix the server sided problem.

    would love to read any suggestions.

Viewing 1 replies (of 1 total)
  • Plugin Author WP Developer

    (@bycrik)

    Hi!

    You can find the template of the table at PLUGIN_DIR/view/frontend/price-table-fixed.php

    if ( $iterator->valid() ) {
       $quantity = $current_quantity;
    
       if ( intval( $iterator->key() - 1 != $current_quantity ) ) {
    	$quantity = $quantity . ' - ' . intval( $iterator->key() - 1 );
       }
    } else {
      $quantity = $current_quantity . '+';
    }

    Here quatity column generation code.

    Regards,
    Kolya

    • This reply was modified 5 years, 6 months ago by WP Developer.
Viewing 1 replies (of 1 total)
  • The topic ‘Amount decimals’ is closed to new replies.