01273 264503 info@mootpoint.org

My web development blog collects posts I’ve made solving problems for my clients. There’s hints, tips and code snippets for all the open source frameworks I work with: WordPress, WooCommerce, OpenCart, Drupal, Magento and more. If you have a web development question, get in touch or post a question in the comments, I’ll try my best to help.

Gravity Forms count uploaded files programmatically

Gravity Forms count uploaded files programmatically

Gravity Forms offers a very nice multi-file upload function, allowing multiple images to be attached to a form. This snippet counts the number of uploaded files and submits the count as a read-only field on the form.

Cleaning up Gravity Forms file uploads

Cleaning up Gravity Forms file uploads

Uploaded files attached to Gravity Form submissions can quickly mount up, filling up server space. Find out how to remove expired form entries, including the attached files; and also to remove any temporary files left over from abandoned submissions.

WordPress Contact Form 7 user registration

WordPress Contact Form 7 user registration

You can use Contact Form 7 to create a simple membership system for WordPress. Create a user registration form and use this snippet to automatically create user accounts which can be approved in the admin area.

Magento bulk product import with images

Magento bulk product import with images

A post documenting my experience bulk importing many products into Magento 1.7, including dealing with multiple product images, and removing duplicate images from previous imports.