• Resolved someka

    (@someka)


    Hello everyone,

    This is what we need (easier to explain with visual):

    Let me also put the explanation here (for SEO and search purposes)

    There are 3 variations here:
    1. Year Selection
    2. Single-Multi Selection
    3. Lifetime-Monthly-Annual Selection

    A user can either:
    – Select a year and free download
    – Select all variations and buy

    Info about variations:
    – Last two is the same for all products (single-multi selection AND lifetime-monthly-annual Selection)
    – First variation (year in this case) is optional:
    — For some products there is only year variation
    — For some products there is no variation
    — For some products there can be even more variations.
    – Please note that, free download should work independent of the last two variations. But buy button works connected with all variations.

    So, basically I have two ideas with my limited knowledge:
    – We will write a custom function. This will hook into the variations loop. And it will insert this Free Download button just before the last two variations. I say “just before” because we don’t know how many variations will be on the top but we know that last two variations are always there. So, when code finds the “Users” variation, it will inject a free download button there.
    – Or even better: if there is a plugin which allow us to build the form section like a page builder, it would be great. I searched a lot but could not find any plugins to do that.
    – I also thought about using “Free Downloads for Woocommerce” plugin, but we want the user to go through the normal checkout process for Woocommerce to record them as normal orders.

    Any other easier options are also welcomed.

    • This topic was modified 3 years, 5 months ago by someka.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @someka,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers!

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to come up with a solution and the help options provided were useful to you. If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product Page – Insert additional add to cart button between variations’ is closed to new replies.