Tell us what you are trying to do?
I'm creating and editing WooCommerce products with Toolset Forms.
Is there any documentation that you are following?
https://toolset.com/documentation/user-guides/creating-woocommerce-products-using-cred-forms/
Is there a similar example that we can see?
N/A
What is the link to your site?
Attached in ticket.
Hello! I'll be glad to provide some guidance but I'm not really clear what you're asking for based on information I have.
The best practices for setting up an ad-hoc image gallery (not the standard WooCommerce gallery) in Forms depend a lot on the type of gallery you want to implement. Do you have a specific gallery in mind? For example, here's a document describing one method for creating an image gallery from a repeating image field: https://toolset.com/documentation/user-guides/create-image-galleries-using-toolset-and-custom-fields/
Or you could use Slider Views to create slider-style galleries with images: https://toolset.com/documentation/user-guides/creating-sliders-with-types-and-views/
I could provide more information about how to create and populate a Slider View using images from related posts, using Forms.
The documentation link you shared explains that managing Product Gallery images with Forms will require custom code. Are you asking for best practices about how to implement custom code in general? I can help you implement any public Toolset API, if you have questions about something specific please let me know.
Hi Christian,
I'm asking in terms of working with the standard WooCommerce gallery. It suggests this will require custom code however it doesn't really give any clues on what needs to be hooked up to make this work for what seems like it should be fairly standard functionality. Or it suggests as a non-code solution to "add product images using custom fields defined in Types" but again doesn't provide any detail on exactly how you would hook up these custom fields to the standard WooCommerce gallery?
I'm happy to code or use use custom fields if they can be hooked up to the standard WooCommerce Product gallery but I little more detail to work with.
Thanks,
Daniel
I see, in short this is a limitation of the Forms software and there is no guidance offered for extending Forms to manage WooCommerce product gallery images. Our system is not designed to support those images, so there's no extra advice here in the forums. None of our APIs are specific to product gallery images, so I don't have any code examples to share with you.