Link a WooCommerce Product to an Existing Newer Version

Remi | April 27, 2016 | in Tutorials

I have to admit that I am a fan of what Amazon does, and there’s a feature I really like.

You know when you’re looking for a product, you find it, you’re about to buy it and at this moment moment, on the product page, you see a little notice stating that a newer version of the product is available! Wait! What? I was about to buy an already old version of a product I don’t even own yet? ;-)

Here is the result:



Ok, so, to implement this feature within WooCommerce, it’s fairly simple. I wrote the snippet below so that you guys can start selling more than one version of a plugin (an old one and a new one!). Simply paste the code in functions.php in the theme folder and you’re done!

Please note: this code has been tested with WordPress 4.5 and WooCommerce 2.6 Beta 1.

The author

About the author Remi: Hey! My name is RĂ©mi Corson, i'm a WordPress Expert Developer, i create high level themes and plugins, and i provide free stuff every week on this website!

One comment

  1. Pingback: Weekly Roundup: April 29, 2016 – Sell with WP

Leave a reply