• Resolved loxlie

    (@loxlie)


    Hi.

    There seems to be a problem with the min_qty property of a product applying. It’s successfully returned from the ajax call for a product, but only seems to be applied to the spin box if allow_to_input_fractional_qty setting is on.

    I think that’s due to this in product_item.vue:

    minQty() {
    let minQty = '1';
    if (this.getSettingsOption('allow_to_input_fractional_qty')) {
    minQty = typeof this.item.min_qty !== 'undefined' ? this.item.min_qty : '0.01';
    }
    return minQty;
    },

    Instead of something like:

        minQty() {
    let defMinQty = this.getSettingsOption('allow_to_input_fractional_qty')) ? '0.01' : '1';
    minQty = typeof this.item.min_qty !== 'undefined' ? this.item.min_qty : defMinQty;
    return minQty;
    },

    When creating the interface bit for the product it looks like the value needs changing too. In Chrome at least, if you end up with <input type="number" min=10 value=1 />, only when the value is manually changed does the it jump to the minimum.

    Hope that helps.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.