• Resolved johnfotios

    (@johnfotios)


    I’ve got it set to “Show Each Option’s Price”.

    I’m selling a product with various add-ons. One of the add-ons is free (just a colour option). When the price is set to 0, it doesn’t show up in the #ppom-price-container.

    I want it to be listed and show as £0. Any advice?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter johnfotios

    (@johnfotios)

    I’m looking in ppom-price.js, line 361

    ppom_add_price_item_in_table(option_label_with_qty, option_price_with_qty, 'ppom-variable-price', '', option);

    Is there something here I can amend? I thought there might be something checking if option price > 0?

    • This reply was modified 3 years, 2 months ago by johnfotios.
    • This reply was modified 3 years, 2 months ago by johnfotios.
    Thread Starter johnfotios

    (@johnfotios)

    On line 557 (I think) it’s got if (price == 0) return;

    If I comment this out, it works. It will add products priced at 0 to the table.

    Unfortunately it doesn’t work if the field type is Image… is there something else for images?

    Thread Starter johnfotios

    (@johnfotios)

    I noticed a quirk… which works but doesn’t actually work. The price field lets you enter a string, not just numbers, so I set the price to “free”, it now works and adds the option to the price table, showing it as £0.00. Great!

    But now this breaks the Options Total and Total fields, which get stuck as £0.00!

    Thread Starter johnfotios

    (@johnfotios)

    Ok… final update! I’ve got it working by setting the option price to 00.0000000000000000000000001. lol.

    This lets options appear and show as £0.00 without breaking the Options Total or Total.

    Hi @johnfotios,

    thanks for the update ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Selected option not showing when price is 0’ is closed to new replies.