• Resolved cobrains

    (@cobrains)


    Hi!
    1. I have an ecommerce where I sell a product by quantity packs (5 grams, 10 grams, 25 grams and 50 grams), but I need to show as a default price the 1 gram’s price, but only for specific categories.

    e.g. I have a product that cost 2€ per gram and has this variation: 5gr is 10€ (2×5), 10gr is 20€ (2×10) etc.
    When no variation is select and in shop page I need to show the per gram product (2€) that is not associated to any variation.

    Is there a plugin that could help me to achieve that?

    2. Also it would be great if there would be a way to auto calculate those prices. For example if I can create a custom field for each product (that can be the 1gr price field) it would be great if each variation prices were calculated automatically multiplying that single price.
    Maybe for each variation I could set up the general price multiplier rule that would automatically calculate price of that variation by multiplying the base price.

    e.g. for 5gr variation the base price will be multiplied by 5, for 10gr variation it would be 10 etc, so I don’t have to write them for every product each time

    Maybe this could be achieved in php, but I was wondering if you could help me

    Thank you

Viewing 1 replies (of 1 total)
  • Hello,

    When no variation is select and in shop page I need to show the per gram product (2€) that is not associated to any variation.

    This would require customization as there is no option to display a custom price when no variation is selected. You could either include 2€/gram in the product name or look into a plugin like WooCommerce Measurement Price Calculator.

    Also it would be great if there would be a way to auto calculate those prices. For example if I can create a custom field for each product (that can be the 1gr price field) it would be great if each variation prices were calculated automatically multiplying that single price.

    This can be done with the plugin mentioned above. You can check out this demo to get an idea of how it works ??

Viewing 1 replies (of 1 total)
  • The topic ‘Variation as a price multiply’ is closed to new replies.