• Resolved adamscriptinside

    (@adamscriptinside)


    Hi,

    I am a website manager for an ecommerce company which is releasing a unique product where you can select from a list of flavours and choose which percentage of each flavour you would like to select.

    This seems easy enough to do with attributes and variations but the custom functionality required to limit the percentage values (added together) to equal <= 100% and changing variation select dropdowns to range sliders is getting me stuck!

    Limiting the variation values seems do able by looping through each variation every time the user selects one, updating the max amount on each range slider.

    I’m not asking for someone to write me code in order to do this at all, but was wondering if there’s a solution or a logical angle I could approach this from that I am not seeing.

    I have been so busy managing the website which has left me not much time to sharpen my skills on php, ajax, js and such so my knowledge is somewhat limited.

    Thanks!
    Adam.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey Adam,

    That is an interesting setup you have described. I’m not aware of a way this could be handled through variations. If I was building this, I would take a look at the Gravity Forms Product Add-ons extension.

    https://woocommerce.com/products/gravity-forms-add-ons/

    It uses a Gravity Form to create additional options for customers. You could use that to set up ranges and limit the total to 100%. Plus it wouldn’t require you to write code.

    If you have any questions, let me know.

    Thanks!

    Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    I hope you found the previous reply helpful. We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Percentage Based Product Fields’ is closed to new replies.