• Resolved jaybaldwin1

    (@jaybaldwin1)


    Hi,

    Thank you so much for this plugin, it is great and I’ve had no problems with it so far.

    We are using this plugin to sell add-on items, which cannot be purchased without purchasing a non-add-on item, for shipping cost reasons.

    This is doable with the current state of the plugin but there are two things which would make this much better and easier to achieve.

    1. Customisable “error” message when a customer attempts to purchase an item which is restricted, currently I am editing this string every time I update the plugin. Where we have so many products which can be purchased to unlock a product this error message becomes long and scary to customers.

    2. The other issue with using this plugin for what we are trying to use it for is that when adding a new add-on item we need to add every non-add-on product individually to the dependencies and when we add a non-add-on item then we need to add this to all of the add-on-item dependencies which are already in place.

    I can see three ways to improve this,

    1. Add an option add all products which do not have dependencies – I know this is very specific to our needs and doubt this is the best option for the plugin
    2. Add the ability to create “sets” of products which can be set as a dependency, so we could have a set of all non-add-on items and add this to each add-on product and we can easily add products to the set as we add new products to the store
    3. The ability to set product categories as a dependency – seems like the simplest option and probably the most versatile to other users needs

    Please let me know your thoughts on this,

    Again thank you very much for all your hard work on this, it is much appreciated!
    Jay

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author SomewhereWarm

    (@somewherewarm)

    Hey Jay,

    (1) – You might want to use a plugin such as Loco Translate to modify that string instead of making changes to plugin files directly. If you do a google search on “WordPress plugin localization” you should get quite a few helpful results.

    (2) – Category-based dependencies are a great idea indeed! Would love to add that feature in the future. Unfortunately this isn’t something that’s in our short-term plans.

    Cheers,
    Manos
    SomewhereWarm

    Thread Starter jaybaldwin1

    (@jaybaldwin1)

    Thank you for the response Manos!

    1. That is great, thank you for this, I will try setting this up
    2. I am glad you like the suggestion, I did have a look to see how difficult this would be to implement myself, would you have any pointers? I thought it would be an easy change, but looking at the code looks much more difficult than I thought!

    Kind Regards,
    Jay

    Plugin Author SomewhereWarm

    (@somewherewarm)

    Hey Jay,

    It’s quite tough to label this on a difficulty scale that’s mutually understood, or provide any tips without actually solving this for you ??

    – If you want to make categories dependent on other categories, it can’t be done by modifying existing code — you’d need to code a dedicated page to define category-based Dependencies and write some rule-based logic to handle the validation.
    – If you want to make specific products dependent on products from within a category, then you’d definitely be looking at less work.

    Cheers,
    Manos
    SomewhereWarm

    • This reply was modified 7 years, 7 months ago by SomewhereWarm.
    Thread Starter jaybaldwin1

    (@jaybaldwin1)

    Hi again Manos,

    I have done some work on getting this set up, please see my fork here : https://github.com/superj60/woocommerce-product-dependencies/tree/feature-category-dependencies

    I am happy to continue to develop this to get it finished, but I would really appreciate if at all possible some help testing the changes, I imagine you have a much better testing site for this.

    If you could let me know any issues you find and hopefully this will be finished in the next couple of weeks.

    Kind Regards,
    Jay

    Plugin Author SomewhereWarm

    (@somewherewarm)

    Hey Jay,

    Awesome, could you please send a pull request?

    Note that SomewhereWarm is currently understaffed and we have a bunch of things on our backlog, which means I will not be able to review/merge your PR within the next couple weeks.

    Cheers,
    Manos

    • This reply was modified 7 years, 7 months ago by SomewhereWarm.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature Request’ is closed to new replies.