Solved

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

Posted on 2011-03-16
27
574 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
Comment Utility
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
Comment Utility
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
Comment Utility
Do a url rewrite like I posted earlier.
0
 
LVL 12

Expert Comment

by:miked2004
Comment Utility
0
 

Author Comment

by:Takeoutdinner
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
And Update Footer are's link information
0
 

Author Comment

by:Takeoutdinner
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 12

Expert Comment

by:miked2004
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Good morning! Thank you for coming again!

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

Thanks,
0
 
LVL 12

Expert Comment

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

Author Comment

by:Takeoutdinner
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Ok, Thanks.
0
 
LVL 12

Expert Comment

by:miked2004
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now