• If this isn’t the best place to ask this Q… appreciate direction on where I can get more info, or even just know if what I’m trying to do is possible.

    I’ve built a nicely working plugin that uses the WC_Integration class – so I have my settings page showing up in the “Integrations” tab of Woocommerce.

    I’ve got a bunch of settings and checkboxes and whatnot and they all work great, the user can click “Save” – they get Sanitized and so this much is perfect.

    But what I want to do now, is add a button, outside the form (eg BELOW the “Save Changes” button that is automatically there as part of using function init_form_fields().

    Check out the screen shot:

    https://cl.ly/2R3z15461W2c

    Not only do I want to move that “Sync Orders” button to below the Save Changes, but I want to show some other details like how many orders have been synced etc.

    And finally I want that “Sync Orders” button to use AJAX – to give feedback as it runs the script I’m going to assign to it.

    I think if I could just know how I can create another section on my integrations tab, below the form — I can figure out all the rest… I just need to move that button.

    Looking at the WC_Integration documentation, I’m not seeing where there is the ability to do anything other than show the title, description, a single group of settings with one “save” button, and errors / success messages to show after saving.

    Did I miss it, or do I have to live with putting my button in the settings?

    https://www.ads-software.com/plugins/woocommerce/

  • The topic ‘WC_Integration – settings page, add an AJAX button outside of the form settings’ is closed to new replies.