How to generate dynamic prices for variations in a WooCommerce Product? [on hold]

There is just one virtual product to sell in the entire website, it’s a service.

A service that has a base price.

  • The first variable has 31 options.
  • The second variable has 7 options.
  • The third variable has 5 options.
  • The fourth variable has 3 options, and…
  • …the fifth variable has 2 options.

All these are characteristics of the same service (virtual product).

Every variable option has an extra cost that has to be shown in the option selection prior to cart.

EXAMPLE:

  • The base price is 100
  • The option 29 of the first characteristic (variable) has an extra cost of 30
  • The option 5 of the second characteristic (variable) has an extra cost of 40
  • The option 2 of the third characteristic (variable) has an extra cost of 20
  • The option 1 of the fourth characteristic (variable) has an extra cost of 5
  • The option 1 of the fifth characteristic (variable) has an extra cost of 5

The variaton: Base price + 29(Op1) + 5(Op2) + 2(Op3) + 1(Op4) + 1(Op5) would imply a total cost of 200 if it was declared.

Now, it is not practical to declare a cost per permutation that would be the regular variations approach solution, its not practical because you must change a lot more that one in 49 values (including the base price) when you have to update one extra cost or the base price.

That is why I would like to find a workaround or plugin that helps me to create that dynamic pricing.

I was thinking about putting custom fields but I don’t know how to force the display of the changed product in option selection prior to cart with non-woocommerce fields.

Any advice would be highly appreciated.

Read more here: How to generate dynamic prices for variations in a WooCommerce Product? [on hold]

Leave a Reply

Your email address will not be published. Required fields are marked *