Home Forums WC Vendors Pro Support Adding Variations dropdown options

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #66467
    Yasa
    Participant

    Hi,
    I would like to disable some of the features from add variation dropdown. I uploaded a Screen Shot to show it better;

    Basically I just want to keep “Add Variation” “Create variations from all attributes” & “Delete all variations”, how can I do that?

    Thanks.

    Bonus Question: I would like to give permission to vendors to create their own attributes, is that possible?

    #66498
    Anna
    Member

    @canyasa
    Yasa,
    The only way to achieve this would be to edit core files. So- you would need to re-do this each time you update Pro. You would nee to modify this file:
    wc-vendors-pro/public/forms/partials/wcvendors-pro-product-variations.php
    Cut/remove lines 32-59, as shown int he screenshot.

    I tested this and it works, product added and saved and purchased– no errors.

    https://www.wcvendors.com/wp-content/uploads/2017/05/variationcut1.jpg

    —Edited to add: NOT RECOMMENDED because this messes with CORE FILES. So use at your own risk.

    • This reply was modified 5 years, 7 months ago by Anna. Reason: eta not an ideal solution
    #66499
    Anna
    Member

    Bonus question– As is they can create attribute terms (if you allow them.. wp amdin > woocommerce > wc vendors > product form : Allow vendors to add attribute terms. ( This does not allow vendors to add attributes ) , just not the attributes.

    I’ll have to ask on this one; though I think i recall Jamie expressing security concerns about this permission in the past.

    #66539
    Yasa
    Participant

    Thank you for the code Anna.

    I hope Jamie could find a solution for the permission to vendors to create their own attributes, that would give a huge flexibility for the system.

    Regards.

    #68750
    Malavika Gupta
    Participant

    Hi Anna,

    I want to disable all the above features which Yasa has mentioned from add variation dropdown. I would appreciate if you can share the code with me as well.

    Even I would like vendors to be able to create their own attributes (not global attributes though).
    Thanks

    #68769
    Anna
    Member

    @malavika-prav
    Ok I made the post public so you can see what was needed… however I do not recommended modifying core files, so use this at your own risk.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.