hello, when i check the categories, if categories_status=0, i get "There are no products to list in this category."
i want to redirect these categories to homepage
any help?
hello, when i check the categories, if categories_status=0, i get "There are no products to list in this category."
i want to redirect these categories to homepage
any help?
- Why do you feel this is necessary?
- Why are visitors hitting those categories in the first place?
- If they're getting there because of links INSIDE your site, then you should simply fix those links.
- If they're getting there because search engines have old links, then it would be much more meaningful to your customers if you were to present a message instead of sending them someplace generic like the home page.
Why not just change the message (by editing that text in your language file) to something like "We're sorry, the category you selected appears to have been changed. Please <a href="index.php">click here to see our home page for the latest deals</a>."
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.