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

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,
TakeoutdinnerAsked:
Who is Participating?
 
miked2004Connect With a Mentor Commented:
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
 
miked2004Commented:
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
 
TakeoutdinnerAuthor Commented:
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
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
miked2004Commented:
Do a url rewrite like I posted earlier.
0
 
TakeoutdinnerAuthor Commented:
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
 
miked2004Commented:
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
 
TakeoutdinnerAuthor Commented:
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
 
miked2004Commented:
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
 
TakeoutdinnerAuthor Commented:
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
 
miked2004Commented:
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
 
TakeoutdinnerAuthor Commented:
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
 
TakeoutdinnerAuthor Commented:
And Update Footer are's link information
0
 
TakeoutdinnerAuthor Commented:
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
 
miked2004Commented:
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
 
miked2004Commented:
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
 
TakeoutdinnerAuthor Commented:
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
 
miked2004Commented:
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
 
TakeoutdinnerAuthor Commented:
Good morning! Thank you for coming again!

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

Thanks,
0
 
miked2004Commented:
Log into the admin and Go to CMS Blocks. IT is a navigation item.
0
 
TakeoutdinnerAuthor Commented:
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
 
miked2004Commented:
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
 
TakeoutdinnerAuthor Commented:
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
 
miked2004Commented:
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
 
TakeoutdinnerAuthor Commented:
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
 
TakeoutdinnerAuthor Commented:
Ok, Thanks.
0
 
miked2004Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.