Frontend User Specific Edit Product Widget in Frontend Admin w/Elementor & WordPress

Frontend User Specific Edit Product Widget in Frontend Admin w/Elementor & WordPress

To watch the corresponding video tutorial click here: Frontend User Specific Edit Content Form in Frontend Admin w/Elementor & WordPress – Video

To skip the set up steps and download the template click here

Introduction

The Edit Product Form widget in Frontend Admin allows users to edit products directly from the frontend. This feature is useful for marketplaces, multi-vendor stores, or any website where users need to manage their listings without accessing the WordPress dashboard.

Setting Up the Edit Product Form

Step 1: Adding an Edit Button

  1. Open Elementor and navigate to the template where your products are listed.
  2. Add a Button widget to the product card.
  3. Choose an appropriate icon (e.g., a pencil) from the Elementor Icon Library.
  4. Remove the button text and set the position to Absolute in the Advanced tab.
  5. Adjust the position to the top-right of the product card and set an offset of 10.
  6. Remove padding, set the background to transparent, and change the text color to black.
  7. Adjust the offset further (e.g., 30) to avoid overlapping with Elementor’s editor icons.

Step 2: Adding the Edit Product Form

  1. Drag an Off-Canvas widget onto the page.
  2. Inside the Off-Canvas widget, insert the Edit Product Form widget.
  3. If necessary, add extra fields such as:
    • Categories
    • Tags
    • Sale Price (placed under the Price field)

Step 3: Adding a Cancel Button

  1. Add a new Button widget below the form.
  2. Change its background color to red and center it.
  3. Set the button text to “Cancel.”
  4. Under Dynamic Tags, choose Off-Canvas and select “Close Off-Canvas.”

Step 4: Configuring the Edit Button

  1. Select the edit button created earlier.
  2. Under Dynamic Tags, scroll to Off-Canvas and select the Off-Canvas widget.
  3. Choose the action “Open Off-Canvas” so the form appears when the button is clicked.

Restricting Access to the Edit Button and Form

By default, the edit button and form should only be visible to the product’s author. Elementor’s built-in conditions are not dynamic enough for this, so follow these steps:

Step 1: Set Conditions for the Edit Button

  1. Open the Content tab for the button.
  2. Navigate to ConditionsManage Conditions.
  3. Add an OR Group.
  4. Set the condition: Post Author equals Current User.
  5. Save the conditions.

Step 2: Set Conditions for the Off-Canvas Widget

  1. Scroll to Frontend Admin ConditionsManage Conditions.
  2. Add an OR Group.
  3. Apply the same condition: Post Author equals Current User.
  4. Save and publish.

Testing the Setup

  1. Open the product listing page and verify that the edit button appears only for the product author.
  2. Click the button to ensure the edit form opens for the correct product.
  3. Log in as a different user and confirm that the button does not appear for products they don’t own.

Conclusion

By following these steps, you can easily add an Edit Product Form widget to your product listings using Frontend Admin and Elementor Pro. This setup ensures that only product authors can edit their listings directly from the frontend, improving user experience and site management.

If you found this tutorial helpful, please like our content, subscribe to our Youtube channel, and leave us a 5-star review on WordPress.org!

To skip the set up steps and download the template click here

Frontend User Specific Edit Product Widget in Frontend Admin w/Elementor & WordPress

Still stuck? 
Contact our support team here.

Before you go

Get 10% OFF

and Shabti's expert tutorials, updates & Content Management tips to your email