Solved

Magento Redirection -Category>Contact Us to Footer's Contact Us

Posted on 2011-03-16
27
583 Views
Last Modified: 2012-06-27
Hi experts,

I have installed Magento Trial version and am porting our application there.

How can I set Redirection of Category>Contact Us to Footer's Contact Us?
I think it might be in Admin Panel.

Thanks,
0
Comment
Question by:Takeoutdinner
  • 14
  • 13
27 Comments
 
LVL 12

Expert Comment

by:miked2004
ID: 35158389
In Admin look at Catalog -> URL Rewrite Management. This will allow you to set up url rewrites.

If this is not what you are looking for, please be more clear as-to what exactly you are trying to do/change.
0
 

Author Comment

by:Takeoutdinner
ID: 35180347
Hi,

When I click "Contact Us" tab which is generated "Categories", it goes to "http://patti.oncmc.net/index.php/contact-us-1.html". But I want to redirect this to "http://patti.oncmc.net/index.php/contacts/".
How can I do this?

Thanks,
0
 
LVL 12

Expert Comment

by:miked2004
ID: 35180677
Do a url rewrite like I posted earlier.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 12

Expert Comment

by:miked2004
ID: 35180681
0
 

Author Comment

by:Takeoutdinner
ID: 35180940
Hi,

1. Catalog>Manage Categories>Contact Us>URL key>enter "conatcts">Save
2. Click Contact Us tab
Then it goes "http://patti.oncmc.net/index.php/contacts.html/". But I need to go "http://patti.oncmc.net/index.php/contacts/" - NO ".html" required.

Please advise me.

Thanks,


0
 
LVL 12

Expert Comment

by:miked2004
ID: 35181262
Hey,

Actually adding a url rewrite will not work because you are setting up the navigation item as a category.

What you can do is just add a link into the top nav template that points to the contacts page.

Edit /app/design/frontend/{your package}/{your theme}/catalog/navigation/top.phtml
and add a "li" item for the contacts link.
0
 

Author Comment

by:Takeoutdinner
ID: 35182134
Hi,

I am a beginner of Magento. I added <li></li> codes as below from top.phtml of "\app\design\frontend\base\default\template\catalog\navigation".
But I cannot see Contact Us link on the screen. Please advise me what I need to do next.

<div class="nav-container">
    <ul id="nav">
        <?php echo $_menu ?>
      <li>
            <a href="~/index.php/contacts/">Contact Us </a>
      </li>      
    </ul>
</div>
0
 
LVL 12

Expert Comment

by:miked2004
ID: 35182284
1. What are your template settings. which theme are you using?
2. Which file did you edit. please include the whole path. this should be dependent on your theme settings.
3. your url is incorrect. it should be "/contacts"
0
 

Author Comment

by:Takeoutdinner
ID: 35182452
1. Theme: I have English, French, and Korean. <li><a href="contacts/">Contact Us </a></li> shows in French and Korean, but not in English.

 How can I correct it?

2. website\\app\design\frontend\base\default\template\catalog\navigation\top.phtml

3. "/contacts" ==> Thanks
0
 
LVL 12

Expert Comment

by:miked2004
ID: 35182530
1. Those are your locals not themes.
In Admin -> System -> Configuration -> Design (tab), is wehere you would see your design  and theme setup.
If you have not changed this them it is using base/default.

If you have not changed the theme/design paths then you are editing the correct file. Do you have caching enabled? Did you clear the cache if it is enabled?


IF all else fails you can enable template hints to display the file path being used for the top nav.
Admin -> system-> config -> developer (tab at very bottom of page). Them change the "Current Configuration Scope" to the store you are looking at. Then in the Debug box set "template path hints to yes and refresh the frontend. Now you will see the template paths for each part of the page. Ensure that you are editing the file that is shown.
0
 

Author Comment

by:Takeoutdinner
ID: 35183232
Hi,

Thank you so much for your kind advices. It works fine.
I have a few other questions as follows: If you are willing to advise continuously, I will add point. Please advise me if you are willing to or not.

My next questions will be left/right column management:
1. How can I bring new added tag for customer view
2. How can I hide/view contents (Popular Tags, NewsLetter, image, etc.)

Thanks
0
 

Author Comment

by:Takeoutdinner
ID: 35183248
And Update Footer are's link information
0
 

Author Comment

by:Takeoutdinner
ID: 35183252
Hi,

Thank you so much for your kind advices. It works fine.
I have a few other questions as follows: If you are willing to advise continuously, I will add point. Please advise me if you are willing to or not.

My next questions will be left/right column management:
1. How can I bring new added tag for customer view
2. How can I hide/view contents (Popular Tags, NewsLetter, image, etc.)
3. Update (Add/Delete/change) Footer area's link data

Thanks
0
 
LVL 12

Expert Comment

by:miked2004
ID: 35183267
in the app/design/frontend/{your design}/{your theme}/layouts folder there are xml files that control this.

1.  I am not clear what you are asking/want to do.


2.  
tag.xml - Comment out this code to hide. change left to right to change the side is shows on.
<reference name="left">
            <block type="tag/popular" name="tags_popular" template="tag/popular.phtml"/>
        </reference>

Open in new window


newsletter.xml
<default>
        <!-- Mage_Newsletter -->
        <reference name="left">
            <block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
        </reference>

    </default>

Open in new window


The others are the same. find the file controlling it and make any edits needed.
0
 
LVL 12

Expert Comment

by:miked2004
ID: 35183333
For the footer. search the layout xml files for "footer_links". this is how new links are added. You can comment this out to remove the link.
the example below is from the catalog.xml file.

<reference name="footer_links">
            <action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
        </reference>

Open in new window

0
 

Author Comment

by:Takeoutdinner
ID: 35183421
Thank you for continuous advices. I increased 50 points.
Let's do it one by one.
A. Footer Link

There are

About UsCustomer Service
Site MapSearch TermsAdvanced SearchContact Us
Help Us to Keep Magento Healthy - Report All Bugs (ver. 1.5.0.1)

© 2011 CMC-PATTI Publishing. All Rights Reserved..

1. ABout Us - I want to change redirect value. It was "/about-magento-demo-store". But I want to change it to "/about-us" which I new generated Page
2. Contact Us - I want to remove this menu from footer_links.
3. Help Us to Keep Magento Healthy - Report All Bugs (ver. 1.5.0.1) - I want to change this contents.

Thanks,

0
 
LVL 12

Expert Comment

by:miked2004
ID: 35198776
1. Edit Admin -> CMS Blocks -> Footer Links


2. in /app/design/frontend/{your package}/{your theme}/layout/contacts.xml remove the code below.

<default>
        <reference name="footer_links">
            <action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled"><label>Contact Us</label><url>contacts</url><title>Contact Us</title><prepare>true</prepare></action>
        </reference>
    </default>

Open in new window


3. this is in /app/design/frontend/{your package}/{your theme}/template/page/html/footer.phtml
0
 

Author Comment

by:Takeoutdinner
ID: 35198826
Good morning! Thank you for coming again!

Where is "Edit Admin -> CMS Blocks -> Footer Links"?

Thanks,
0
 
LVL 12

Expert Comment

by:miked2004
ID: 35199311
Log into the admin and Go to CMS Blocks. IT is a navigation item.
0
 

Author Comment

by:Takeoutdinner
ID: 35209232
Hi there,

1: okay
2 & 3: Even though I changed it in codes (contacts.xml, footer.phtml ), but it doesn't change the screen.

Any thought?

Thanks,
0
 
LVL 12

Expert Comment

by:miked2004
ID: 35209419
1. Disable cache if it is enabled(at least while developing)

2. turn template hints back on and make sure you are editing the correct files. remember there are multiple duplicate files in different theme folders. If you are editing the wrong theme then It will not change anything.

Those would be the two things to check.
0
 

Author Comment

by:Takeoutdinner
ID: 35216490
Hi,

1 & 3 are fine.
2: I changed it(contacts.xml) like follows. So I expect its display "Contact Usa" or "Contact Usb" or "Contact Usc" if it is right one. But it still displays "Contact Us". Please advise me.

<layout version="0.1.0">
    <default>
        <reference name="footer_links">
            <action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled"><label>Contact Usa</label><url>contacts</url><title>Contact Usb</title><prepare>true</prepare></action>
        </reference>
    </default>

    <contacts_index_index translate="label">
        <label>Contact Us Form</label>
        <reference name="root">
            <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
            <action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Usc</title></action>
        </reference>
        <reference name="content">
            <block type="core/template" name="contactForm" template="contacts/form.phtml"/>
        </reference>
    </contacts_index_index>
</layout>
0
 
LVL 12

Expert Comment

by:miked2004
ID: 35216955
1. When you turned you template path hints what was the path that the template files are pulled from?
2. What is the path of the contacts.xml file you are editing?


And finally you only need to edit the code in this portion of the xml. the rest is for other things
<reference name="footer_links">
            <action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled"><label>Contact Usa</label><url>contacts</url><title>Contact Usb</title><prepare>true</prepare></action>
        </reference>

Open in new window

0
 

Author Comment

by:Takeoutdinner
ID: 35233512
Hi,

I will do contacts.xml management later.
My next question is I use Cusom Options. For this, I add "A', "B", "Other" Radio Buttons. When I choose "Other", I want to use Text Field for "Other" description. How can I do it?

Thanks,
0
 
LVL 12

Accepted Solution

by:
miked2004 earned 150 total points
ID: 35233538
You should open a new question for this, since it is getting off the topic of the original question. This will Help others when searching for solutions.
0
 

Author Comment

by:Takeoutdinner
ID: 35233557
Ok, Thanks.
0
 
LVL 12

Expert Comment

by:miked2004
ID: 35233619
Hey, Post a link here and I will Take a look at it.

One Note Regarding:

My next question is I use Custom Options. For this, I add "A', "B", "Other" Radio Buttons. When I choose "Other", I want to use Text Field for "Other" description. How can I do it?

This will probably be tricky. I am not familiar with any built in magento functionality that will allow this(radio btns and a free text field). You will probably need to do quite a bit of custom code to accomplish this. If this functionality is required then you may want to seek out a developer.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question