Support » Plugin: Product Options and Price Calculation Formulas for WooCommerce – Uni CPO » Specified and calculated dimensions in units of sq m

  • Resolved marypieroszkiewicz

    (@marypieroszkiewicz)


    I need to create a price form on the product page

    The first inputs fields are the dimensions:
    width and height are to be counted per square meter

    now how to write a function that counts these two dimension fields so that the price can be calculated.

    In addition, is it possible that if there are values less than 100 cm, the minimum price per 1 sq m that is included in the product …?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author moomooagency

    (@moomooagency)

    Hi,

    There is no “one for all” solution. Each product is individual. Please, check the docs and our youtube channel for tutorials.

    Thread Starter marypieroszkiewicz

    (@marypieroszkiewicz)

    Yes, it is about each individual product.

    Is it possible to measure dimensions in square meters?

    and is it possible to set so that when the customer enters in the inputs (width and height) values below 100 cm, the price per square meter is given?

    Thank you for answer

    Plugin Author moomooagency

    (@moomooagency)

    I would say it is possible to measure dimensions in sq. m., yes. But I do not know your specifics.
    Yes, it possible for sure to calculate kind of min price for 1 sq.m.

    Probably my answers are not quite helpful. Now you know these are possible. But you still have to find out how. Watch video tutorials, they have a lot of info, they are helpful. Just in case you are looking for a paid configuration service – it is possible too. In that case write to support@moomoo.agency.

    Thread Starter marypieroszkiewicz

    (@marypieroszkiewicz)

    I added a new sq m unit for woocommerce https://www.skyverge.com/blog/how-to-add-dimension-units-to-woocommerce/ will it work …?

    Once again I want to make sure that it is settable.

    I have the initial price entered in the product, which is per square meter and now a default value is defined in the inputs, e.g. height 100cm and width 100cm, and this value is the minimum price per square meter.

    Now, when the user enters values smaller than 100cm in inputs, it will be counted as the set minimum price for 100cm …?

    Plugin Author moomooagency

    (@moomooagency)

    I do not kn ow how it will work by adding that custom code or plugin.

    I know it can work in Uni CPO alone. Just setup your price configuration properly, set min price to be equal 1 sq. m. And that’s it!

    Thread Starter marypieroszkiewicz

    (@marypieroszkiewicz)

    Can I ask for an example on the demo.

    I need the dimensions to be counted: height and width, with additional options to choose from

    Formula for counting the height and width (AxB) / 10000 and that there is a security when the user enters an amount smaller than 100cm per 100cm, np. (90cm and 80cm) it was calculated like this:
    “[(AxB) / 10000] <1” and was the minimum value per square meter

    Plugin Author moomooagency

    (@moomooagency)

    In our fb group Builderius community there is a link to demo configs. Please, check them. Probably one of them is much like what you need and you can modify it further then.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Specified and calculated dimensions in units of sq m’ is closed to new replies.