Link to home
Start Free TrialLog in
Avatar of Takeoutdinner
Takeoutdinner

asked on

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,
Avatar of miked2004
miked2004
Flag of United States of America image

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.
Avatar of Takeoutdinner
Takeoutdinner

ASKER

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,
Do a url rewrite like I posted earlier.
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,


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.
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>
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"
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
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.
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
And Update Footer are's link information
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
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.
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

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,

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
Good morning! Thank you for coming again!

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

Thanks,
Log into the admin and Go to CMS Blocks. IT is a navigation item.
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,
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.
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>
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

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,
ASKER CERTIFIED SOLUTION
Avatar of miked2004
miked2004
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok, Thanks.
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.