• joshuasagraphics

    (@joshuasagraphics)


    Consider changing the following:
    /js/price/ppom-price-v2.js / /js/price/ppom-price.js

    To support decimal/float quantities. A site I am working on currently supports decimal quantities but your plugin converts quantities to whole Integers.

    v2 Line 39:

    get_product_qty: function() {
    
            const quantity = this.dom_product_qty.val() || 0;
            return parseFloat(quantity);
        },

    v1 Line 1017:

    function ppom_get_order_quantity() {
    
        var quantity = ppom_input_vars.is_shortcode === 'yes' ? 1 : wc_product_qty.val();
        quantity = quantity || 1;
        return parseFloat(quantity);
    
    }
Viewing 1 replies (of 1 total)
  • jane

    (@jane357)

    Hi,

    Sorry for the inconveniences. Unfortunately Mr Najeeb is hit by COVID yesterday and he will be in isolation for next 3 days. You might be facing some delay in response but we will make sure your issue is resolved.

    I will be really thankful for all your patience and cooperation.

    Regard,
    Jane Brian
    Sales Manager NMedia

Viewing 1 replies (of 1 total)
  • The topic ‘Not supporting float/decimal numbers’ is closed to new replies.