| |

How to automatically apply a WooCommerce URL Coupon when using W3 Total Cache

The WooCommerce URL Coupons is a great extension that allows you to set up a unique URL (ex. https://zen.agency/trysave20) and automatically apply product or cart discounts without the need for your customers to enter an actual coupon code. Using the page redirect option, you are able to redirect customers to a page after visiting the unique URL.

While setting up the extension, I found an issue that can arise for website owners who are running any type of caching plugin on their website. The issue breaks the coupon functionality when the caching plugin caches the unique URL you’ve chosen. We happen to use W3 Total Cache, and luckily, there is an easy fix by following the 2 steps outline below:

  1. Create a unique prefix to be used for all your URL couponsFor this demonstration, let’s use “coupon/”. So, instead of my unique URL being https://zen.agency/trysave20, it will carry the coupon/ prefix and be called https://zen.agency/coupon/trysave20url-coupons-1
  2. Modify W3 Total Cache to NOT cache any requests with the coupon/ prefixThis setting can be found under Performance>Page Cache. Scroll to the bottom of the page and you will see “Never cache the following pages”. Just add coupon/ to the text box.


Joseph Riviello

Looking for a seasoned WooCommerce expert and digital marketing strategist with an unwavering dedication to client success? Meet Joe Riviello, the CEO of Zen Agency, with over 22 years of experience helping e-commerce businesses scale through holistic marketing strategies. Joe Riviello is a seasoned WooCommerce expert, digital marketing strategist, and CEO of Zen Agency with over 22 years of experience in the e-commerce industry. He is a passionate business development professional committed to helping businesses reach their full potential through various holistic digital marketing strategies. Joe's expertise lies in creating a seamless user experience for customers while delivering strong business results. He has worked with several high-profile clients across various industries, including retail, healthcare, and finance, helping them achieve their business goals through digital marketing solutions. Joe's journey to becoming a CEO started with his passion for technology and user experience design. He has always been interested in how technology can solve business challenges and improve customer experiences. Throughout his career, he has focused on creating e-commerce websites and digital marketing campaigns that provide an exceptional user experience while delivering strong business results. As the CEO of Zen Agency, Joe is responsible for leading the agency's strategic direction and ensuring that clients receive the highest quality of service. He is a natural leader who inspires and motivates his team to achieve their goals and deliver exceptional results for clients. Joe is a recognized industry leader and has spoken at several conferences on topics related to digital marketing, user experience design, and business strategy. He passionately advocates for data-driven marketing and believes that every business, regardless of size or industry, can benefit from a holistic digital marketing strategy.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *