Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.x
Multi-store. Franchise. Facilitator. AI tools.
Everything your marketplace needs - now in one platform.
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

-
DAYS
-
HOURS
-
MINUTES
-
SECONDS
20% Off Is Temporary. The Benefits Aren't.

HAPPY20

Join the MultiVendorX Facebook Community

Contact, share, and grow with thousands of MultiVendorX users around the world.
View Categories

Add custom field in store add product page

We have added React hook support in the Add Product page so developers can inject custom fields/components into the product form.
Available hooks:


applyFilters(
'multivendorx_add_product_middle_section',
null,
product,
setProduct,
handleChange,
productFields,
typeFields,
modules,
setFeaturedImage
)}

{applyFilters(
'multivendorx_add_product_right_section',
null,
product,
setProduct,
handleChange,
productFields,
setErrorMsg
)}

These hooks are intended for extending the product form UI by adding custom React fields/components.
Available Arguments :

  • product → Current product state object.
  • setProduct → React state setter to update product values.
  • handleChange → Shared field update handler.
  • productFields → Enabled product field settings.
  • typeFields → Product type configuration fields.
  • modules → Active modules list.
  • setFeaturedImage → Update featured image state.
  • setErrorMsg → Show validation/error messages.

Example

addFilter(
    'multivendorx_add_product_middle_section',
    'my-plugin/custom-product-field',
    (
        content,
        product,
        setProduct
    ) => {
        return (
            <>
                {content}

                <div className="form-group">
                    <label>Custom Field</label>

                    <input
                        type="text"
                        value={product.custom_field || ''}
                        onChange={(e) => {
                            setProduct((prev) => ({
                                ...prev,
                                custom_field: e.target.value,
                            }));
                        }}
                    />
                </div>
            </>
        );
    }
);

Leave a Reply

Shopping Cart
Launch Your Marketplace
in Days, Not Month
Get expert guidance to build, scale, and grow your MultiVendorX marketplace
Book Free Strategy Call
Trusted by 10000+ marketplace Owners
Scroll to Top