Still works for PS4, folks
I am so glad I found this post, because I applied the magic code to my checkout.php and it did the trick-- and that's with PS4 and PHP 5.2, too.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.