MainWP Blog

Useful Code Snippets for WooCommerce
Tips & Tricks
Sebastian Moran

Useful Code Snippets for WooCommerce

WooCommerce is among the most widely used plugins in WordPress to enable eCommerce on a site. Since WooCommerce has filters, actions, and hooks, that means making site changes using code snippets is easy. Code snippets can easily be added on any connected child site using the MainWP Code Snippets extension. For example, if you do not have Add to Cart redirect enabled, the Continue Shopping link will redirect the customer back to the product that was added when clicked. In most cases, this does not make sense. You can use this code snippet, which will set the Continue Shopping link

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys

Your Download Is Just One Click Away

…or just download the plugin.

By entering your email, you agree to our Terms of Service and Privacy Policy.