Skip Navigation

[Resolved] Best practice for adding WooCommerce product image gallery with Toolset Forms?

This support ticket is created 5 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Christian Cox 5 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1374991

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.

#1375167

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.

#1376011

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

#1376337

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.