Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards

form customization

Product Stock Manager & Notifier for WooCommerce

Resolved
Viewing 9 reply threads
  • Author
    Posts
    • #219724
      javier
      Participant

      Is there a way I can add new fields to the form?

    • #219732

      Hello there, Thanks for getting in touch with us.

      You can surely add new fields in the form by adding custom code on your end.
      Do you have a developer so that we can assist you with hooks/ filters accordingly?

    • #219744
      javier
      Participant

      Hello, I am a developer, I would need to know the hooks and if possible some example of use, thank you

    • #219746

      @javier, you can use the below filter on your end to register new fields –

      
      stock_manager_fileds_array
      
      Copy

      Let us know if you need any further assistance.

    • #219747
      javier
      Participant

      Can I have some example of the code?

    • #219748

      Kindly download the updated plugin from here https://github.com/multivendorx/woocommerce-product-stock-alert. We have added a hook using which you can add new fields in the form. Here’s the new hook provided:

      
      do_action( 'stock_manager_before_subscribe', $customer_email, $product_id, $variation_id );
      
      Copy

      Use the above shared hook and retrieve data using $_POST.

      We will add the same hook in our next update as well. Let us know if you need any further assistance from our end.

    • #220015
      javier
      Participant

      but this hook does not allow me to modify the form changes before being shown, right? Could you have a complete example of the hook?

    • #220016

      Let me share this with the dev team and once I hear back from them I will keep you posted.
      Thanks for your understanding.

    • #222017

      Hi Javier,

      We’ve already provided the hook and instructions for adding a custom field. To modify the field data and view it from the backend, you’ll need to implement a substantial amount of custom code on your end. We recommend following the flow outlined in our plugin and building your custom functionality based on that.

      Alternatively, you may consider hiring our service team for assistance from here https://multivendorx.com/custom-development/.

      Please let us know if you need any further assistance.

    • #235795

      It’s been long and we have not heard back from you. We presume your issue is resolved now. We are closing this thread. If you need help or face issue in future please do create a new support ticket.

Viewing 9 reply threads

The topic ‘form customization’ is closed to new replies.