• Resolved maddoctor

    (@maddoctor)


    Is there a way to make a product attribute accept a custom value by the customer?
    For example let’s say I have a product that has a specific price per meter and I want the customer to pick the meters they want and get the correct price (increments of 1 meter only), is that possible to do without adding 10, 20 or even more variations?
    I know I can do this by adding enough variations, like
    1 meter – 1$
    2 meters – 2$
    3 meters – 3$
    but if there are enough choices, for many different products, this will lead to many many variations. Is it possible to make it work without the variations? To pick the price programmatically based on the chosen number of meters.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Simplest way would be to have the product price be the per metre price – so, if the customer needs 5 metres, they select 5 as the quantity.

    In your example, the product price is $1 – so ordering 5 would cost $5.

    Thread Starter maddoctor

    (@maddoctor)

    Yes that’s what I’m after but how do I set the product price to be per meter price in woocommerce?

    Just set the price of the product to be what you want per metre – then it will be multiplied by whatever quantity the customer chooses.

    Hi @maddoctor

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom product attribute’ is closed to new replies.