• 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 1 replies (of 1 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    Thank you for bug report.

    We’ll fix it next week, but (on my estimation) we won’t repease fixed version in January.

    So if you need fixed version for tests — please submit ticket to https://algolplus.freshdesk.com/

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