Hi David, hope all is well!
I'm working on a major revision to my product page - is there an easy way to create a 2nd product.html file for testing..?
I would like a file that contains product.html output, without calling header & reviews. This has to be a copy as the existing version is in use on my site now & I can't replace it until the new version is finished! Unfortunately I can't create a 2nd PT site for this.
Thanks
Hi,
I would create a complete copy of products.php and call it something like products2.php.
Then, you can change the require() sections at the bottom to point to your test versions, or simply remove any you don't want - although bear in mind that the header contains the HTML header and character set declaration, so the appearance of your test version might not look the same if you are viewing it without the header included....
If you use search engine friendly URLs, you could add another rule to your .htaccess to point /products2/ to your test version:
RewriteRule ^product2/(.*).html$ products2.php?q=$1&rewrite=1&%{QUERY_STRING} [L]
Hope this helps!
Cheers,
David.