Deepinder Posted August 6, 2020 Share Posted August 6, 2020 How can we create a category alias name Link to comment Share on other sites More sharing options...
musicmaster Posted August 6, 2020 Share Posted August 6, 2020 You can't. At least not in Prestashop software. Your only option is to make a redirect in the .htaccess file. Link to comment Share on other sites More sharing options...
Deepinder Posted August 8, 2020 Author Share Posted August 8, 2020 if not presta shop any other tool that can do the same Link to comment Share on other sites More sharing options...
musicmaster Posted August 9, 2020 Share Posted August 9, 2020 One of the tricks I used to have some similar effect is putting this kind of code in config.inc.php: $tmps = explode("-", $_SERVER['REQUEST_URI']); if((sizeof($tmps) == 2) && ($tmps[0] == "/220")) header('Location: http://www.myshop.com/21-bicycles'); It redirects the category with id 220 to category 21. That way you can access a category from two trees. Quite likely you will find other solutions in the addons. Link to comment Share on other sites More sharing options...
Deepinder Posted August 10, 2020 Author Share Posted August 10, 2020 Hi, Thanks for code. I was looking for code to import Products and Merge the categories . For example Computers and computer both as alias to Desktops. Reason i am doing so... i am managing 3 different data feeds and all have different categories. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now