I have some pages like this https://www.allfrom1supply.com/spray...-up-doors.html where there is a 'stub' product that uses an Alternate Display Page. This page has some code to redirect the stub product to a category. It was originally done for one item but over the years we ended up using it more often and now there are about a lot of redirect pages.
I wanted to put all the redirect code in one page to tidy it up and tested it with the following Tool Kit code and it works fine. I wanted to see if there was some simple 'modern' Miva code to do the same thing in case Tool Kit eventually dies - otherwise I'll just use this.
I wanted to put all the redirect code in one page to tidy it up and tested it with the following Tool Kit code and it works fine. I wanted to see if there was some simple 'modern' Miva code to do the same thing in case Tool Kit eventually dies - otherwise I'll just use this.
Code:
<mvt:if expr="g.Product_Code EQ 'go-2-test-stub-1'"> <mvt:item name="toolkit" param="headeroutput|Status|301 Moved Permanently" /> <mvt:item name="toolkit" param="headeroutput|Location|https://www.allfrom1supply.com/system-1501-chem-bake-1-step-31.html" /> <mvt:elseif expr="g.Product_Code EQ 'go-2-test-stub-2'"> <mvt:item name="toolkit" param="headeroutput|Status|301 Moved Permanently" /> <mvt:item name="toolkit" param="headeroutput|Location|https://www.allfrom1supply.com/system-1201-one-step-direct-to-metal-door-coating.html" /> </mvt:if>
Comment