How to create custom link for category?To create a different page and link from the category view pageHow to link between two categories in different root catalog?Layered Navigation Category linkHow to add root category to navigationHow to redirect a category to another linkcategory url redirect to custom controller - magento 2New Root Category Not Display At FrontEndCategory menu linking direct to productthe category buttons are redirecting me to the home screen on the front endAdd Custom Link Under Existing Categories
Ribbon Cable Cross Talk - Is there a fix after the fact?
1950s or earlier book with electrical currents living on Pluto
Salesforce bug enabled "Modify All"
Is my company merging branches wrong?
Filter a file list against an integer array?
Removing Doubles Destroy Topology
Will this series of events work to drown the Tarrasque?
Do seaplanes need to get clearance for takeoff?
Way of refund if scammed?
How would a physicist explain this starship engine?
How to become an Editorial board member?
How can I prevent Bash expansion from passing files starting with "-" as argument?
Why did Nick Fury not hesitate in blowing up the plane he thought was carrying a nuke?
US F1 Visa grace period attending a conference
What causes a person to remain in this world as a ghost?
How to safely discharge oneself
Farthing / Riding
List of lists elementwise greater/smaller than
Why does an injection from a set to a countable set imply that set is countable?
Germany rejected my entry to Schengen countries
Good examples of "two is easy, three is hard" in computational sciences
If the Charles SSL Proxy shows me sensitive data, is that data insecure/exposed?
How do we explain the use of a software on a math paper?
How did Jean Parisot de Valette, 49th Grand Master of the Order of Malta, die?
How to create custom link for category?
To create a different page and link from the category view pageHow to link between two categories in different root catalog?Layered Navigation Category linkHow to add root category to navigationHow to redirect a category to another linkcategory url redirect to custom controller - magento 2New Root Category Not Display At FrontEndCategory menu linking direct to productthe category buttons are redirecting me to the home screen on the front endAdd Custom Link Under Existing Categories
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have to create category in Magento backend, it display to front end, can it possible if category name is Ex. like Football, and when i click it football category, it redirect to another sites link?
Ex. Category 1 Is Football -> Site 1 Name Like Ex. www.football.com and when click Football category its Redirect It Site 2 Like Ex. www.hockey.com
Pls Help And Suggest Some Ideas.
magento-1.9 category
add a comment |
I have to create category in Magento backend, it display to front end, can it possible if category name is Ex. like Football, and when i click it football category, it redirect to another sites link?
Ex. Category 1 Is Football -> Site 1 Name Like Ex. www.football.com and when click Football category its Redirect It Site 2 Like Ex. www.hockey.com
Pls Help And Suggest Some Ideas.
magento-1.9 category
add a comment |
I have to create category in Magento backend, it display to front end, can it possible if category name is Ex. like Football, and when i click it football category, it redirect to another sites link?
Ex. Category 1 Is Football -> Site 1 Name Like Ex. www.football.com and when click Football category its Redirect It Site 2 Like Ex. www.hockey.com
Pls Help And Suggest Some Ideas.
magento-1.9 category
I have to create category in Magento backend, it display to front end, can it possible if category name is Ex. like Football, and when i click it football category, it redirect to another sites link?
Ex. Category 1 Is Football -> Site 1 Name Like Ex. www.football.com and when click Football category its Redirect It Site 2 Like Ex. www.hockey.com
Pls Help And Suggest Some Ideas.
magento-1.9 category
magento-1.9 category
edited May 2 '17 at 11:55
Siarhey Uchukhlebau
10.3k93058
10.3k93058
asked May 2 '17 at 11:47
Rushikesh SolankiRushikesh Solanki
537321
537321
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
I dont know why you want to do this, but you can achieve by .htaccess
use 301 redirect rule for that
<IfModule mod_rewrite.c>
#301 redirect
redirect 301 oldURL NEWURL
</IfModule>
add a comment |
Easiest possible way to do is:
Admin Level: In the category(Football) description you can add some script:
<script>window.location.href = "http://www.football.com";</script>
Code Level (Dirty way): You need to override core file: app/code/core/Mage/Catalog/Block/Navigation.php
There inside function _renderCategoryMenuItemHtml
find below code
$html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
$html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
$html[] = '</a>';
& then put condition to identify category the compose the URL & replace with $this->getCategoryUrl($category)
as per your requirement.
its working but when click any category first its go to current category then redirect another category.
– Rushikesh Solanki
May 2 '17 at 13:24
can have a other ways?
– Rushikesh Solanki
May 2 '17 at 13:25
Other way is code level changes. See my updated answer. With Admin changes it will do that way only.
– Akhil Gupta
May 3 '17 at 5:12
Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.
– Akhil Gupta
May 3 '17 at 5:15
add a comment |
You can create custom Url Rewrites from Magento Admin panel.
Magento admin > Catalog > URL Rewrite Management >
Search for current category request path and delete it
Now you will able to create new url rewrite for that particular category.
ID Path : unique id path
Request Path : football.html
Target Path :www.hockey.com
Redirect : 301
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f172621%2fhow-to-create-custom-link-for-category%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I dont know why you want to do this, but you can achieve by .htaccess
use 301 redirect rule for that
<IfModule mod_rewrite.c>
#301 redirect
redirect 301 oldURL NEWURL
</IfModule>
add a comment |
I dont know why you want to do this, but you can achieve by .htaccess
use 301 redirect rule for that
<IfModule mod_rewrite.c>
#301 redirect
redirect 301 oldURL NEWURL
</IfModule>
add a comment |
I dont know why you want to do this, but you can achieve by .htaccess
use 301 redirect rule for that
<IfModule mod_rewrite.c>
#301 redirect
redirect 301 oldURL NEWURL
</IfModule>
I dont know why you want to do this, but you can achieve by .htaccess
use 301 redirect rule for that
<IfModule mod_rewrite.c>
#301 redirect
redirect 301 oldURL NEWURL
</IfModule>
answered May 2 '17 at 13:45
Murtuza ZabuawalaMurtuza Zabuawala
12.8k73363
12.8k73363
add a comment |
add a comment |
Easiest possible way to do is:
Admin Level: In the category(Football) description you can add some script:
<script>window.location.href = "http://www.football.com";</script>
Code Level (Dirty way): You need to override core file: app/code/core/Mage/Catalog/Block/Navigation.php
There inside function _renderCategoryMenuItemHtml
find below code
$html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
$html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
$html[] = '</a>';
& then put condition to identify category the compose the URL & replace with $this->getCategoryUrl($category)
as per your requirement.
its working but when click any category first its go to current category then redirect another category.
– Rushikesh Solanki
May 2 '17 at 13:24
can have a other ways?
– Rushikesh Solanki
May 2 '17 at 13:25
Other way is code level changes. See my updated answer. With Admin changes it will do that way only.
– Akhil Gupta
May 3 '17 at 5:12
Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.
– Akhil Gupta
May 3 '17 at 5:15
add a comment |
Easiest possible way to do is:
Admin Level: In the category(Football) description you can add some script:
<script>window.location.href = "http://www.football.com";</script>
Code Level (Dirty way): You need to override core file: app/code/core/Mage/Catalog/Block/Navigation.php
There inside function _renderCategoryMenuItemHtml
find below code
$html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
$html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
$html[] = '</a>';
& then put condition to identify category the compose the URL & replace with $this->getCategoryUrl($category)
as per your requirement.
its working but when click any category first its go to current category then redirect another category.
– Rushikesh Solanki
May 2 '17 at 13:24
can have a other ways?
– Rushikesh Solanki
May 2 '17 at 13:25
Other way is code level changes. See my updated answer. With Admin changes it will do that way only.
– Akhil Gupta
May 3 '17 at 5:12
Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.
– Akhil Gupta
May 3 '17 at 5:15
add a comment |
Easiest possible way to do is:
Admin Level: In the category(Football) description you can add some script:
<script>window.location.href = "http://www.football.com";</script>
Code Level (Dirty way): You need to override core file: app/code/core/Mage/Catalog/Block/Navigation.php
There inside function _renderCategoryMenuItemHtml
find below code
$html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
$html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
$html[] = '</a>';
& then put condition to identify category the compose the URL & replace with $this->getCategoryUrl($category)
as per your requirement.
Easiest possible way to do is:
Admin Level: In the category(Football) description you can add some script:
<script>window.location.href = "http://www.football.com";</script>
Code Level (Dirty way): You need to override core file: app/code/core/Mage/Catalog/Block/Navigation.php
There inside function _renderCategoryMenuItemHtml
find below code
$html[] = '<a href="'.$this->getCategoryUrl($category).'"'.$linkClass.'>';
$html[] = '<span>' . $this->escapeHtml($category->getName()) . '</span>';
$html[] = '</a>';
& then put condition to identify category the compose the URL & replace with $this->getCategoryUrl($category)
as per your requirement.
edited May 3 '17 at 5:11
answered May 2 '17 at 11:58
Akhil GuptaAkhil Gupta
1,6261721
1,6261721
its working but when click any category first its go to current category then redirect another category.
– Rushikesh Solanki
May 2 '17 at 13:24
can have a other ways?
– Rushikesh Solanki
May 2 '17 at 13:25
Other way is code level changes. See my updated answer. With Admin changes it will do that way only.
– Akhil Gupta
May 3 '17 at 5:12
Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.
– Akhil Gupta
May 3 '17 at 5:15
add a comment |
its working but when click any category first its go to current category then redirect another category.
– Rushikesh Solanki
May 2 '17 at 13:24
can have a other ways?
– Rushikesh Solanki
May 2 '17 at 13:25
Other way is code level changes. See my updated answer. With Admin changes it will do that way only.
– Akhil Gupta
May 3 '17 at 5:12
Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.
– Akhil Gupta
May 3 '17 at 5:15
its working but when click any category first its go to current category then redirect another category.
– Rushikesh Solanki
May 2 '17 at 13:24
its working but when click any category first its go to current category then redirect another category.
– Rushikesh Solanki
May 2 '17 at 13:24
can have a other ways?
– Rushikesh Solanki
May 2 '17 at 13:25
can have a other ways?
– Rushikesh Solanki
May 2 '17 at 13:25
Other way is code level changes. See my updated answer. With Admin changes it will do that way only.
– Akhil Gupta
May 3 '17 at 5:12
Other way is code level changes. See my updated answer. With Admin changes it will do that way only.
– Akhil Gupta
May 3 '17 at 5:12
Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.
– Akhil Gupta
May 3 '17 at 5:15
Please do up vote & mark as accepted, if this helped. So this will help for the people also, have same requirement.
– Akhil Gupta
May 3 '17 at 5:15
add a comment |
You can create custom Url Rewrites from Magento Admin panel.
Magento admin > Catalog > URL Rewrite Management >
Search for current category request path and delete it
Now you will able to create new url rewrite for that particular category.
ID Path : unique id path
Request Path : football.html
Target Path :www.hockey.com
Redirect : 301
add a comment |
You can create custom Url Rewrites from Magento Admin panel.
Magento admin > Catalog > URL Rewrite Management >
Search for current category request path and delete it
Now you will able to create new url rewrite for that particular category.
ID Path : unique id path
Request Path : football.html
Target Path :www.hockey.com
Redirect : 301
add a comment |
You can create custom Url Rewrites from Magento Admin panel.
Magento admin > Catalog > URL Rewrite Management >
Search for current category request path and delete it
Now you will able to create new url rewrite for that particular category.
ID Path : unique id path
Request Path : football.html
Target Path :www.hockey.com
Redirect : 301
You can create custom Url Rewrites from Magento Admin panel.
Magento admin > Catalog > URL Rewrite Management >
Search for current category request path and delete it
Now you will able to create new url rewrite for that particular category.
ID Path : unique id path
Request Path : football.html
Target Path :www.hockey.com
Redirect : 301
edited May 2 '17 at 12:13
answered May 2 '17 at 12:02
Jitheesh V OJitheesh V O
13
13
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f172621%2fhow-to-create-custom-link-for-category%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown