popup add_edit_product
Modal for adding or modifying a product
Popup Add Edit Product Overview
This is the popup used for adding or modifying an Product
on the platform. Exists in the menufocusgroup_product resuable and on the owner's portal.
Key Workflows
Button New Product is clicked
Creates a new
Product
if one does not exist alreadySets the
Total sold
field to 0
Runs the
Save product
custom workflow on theProduct
Button Add Image is clicked
Creates an
Image
instance and adds it to theimages
state of this reusableIf the product does not have a primary image - which should only be the case when initially creating a product or if you’ve deleted every existing image - then the newly created
Image
will be marked as the main primaryThe new
Image(s)
are not saved to theProduct
until theButton New Product / Save Changes
is clicked
Group Remove Image is clicked
Delinks the
Image
instance from theProduct
and removes it from theimages
state on the reusableIf this
Image
was theImage main
for the product,Image main
will be set to a newImage
Save product [Custom workflow]
Updates the product with the inputted values from the form
When saving the
Image main
andImages
we refer to theimage main
andimages
states on this reusable
Last updated