How do i edit the "Account" button in Magento? - magento

I am running the latest Magento ( 1.9 ) with the Default theme and right now, in the top right region of the header i see the Account and CART buttons.
What i want to do is edit the Account button into something else however I spent the last 2 hours trying to find the place where I can edit it.
Can you please guide me in the right direction ?

You need to navigate to your theme's app layout directory, for example;
root/app/design/frontend/base/default/layout
The top links are declared as a position in the template in the xml and can be added to by the different extensions. The account link is defined in customer.xml. If you search that file for "top.links" you will find it;
<!-- Mage_Customer -->
<reference name="top.links">
<action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action>
</reference>
After you modify this, you will need to flush your cache for the changes to take effect.
Best
Tom

Related

How to add links to the top menu of Magento site when there is already a left menu?

Can anyone tell me how to add links to the top menu of my Magento site.
Here it is - http://www.westoztools.com.au/working/index.php/
Please note that I have a left menu as well.
The way the top menu is built depends highly on your theme.
But if the theme follows standard behavior then you could add a link in the top menu through any layout xml file like this:
<default>
<reference name="top.links">
<action method="addLink" translate="label title">
<label>LINK LABEL HERE</label>
<url>relative url here</url>
<title>Link title here</title>
<prepare>1</prepare>
<urlParams/>
<position>100</position> <!-- feel free to change this -->
</action>
</reference>
</default>

Magento: Order detail page is not showing

Order details page isn't showing any data, left bar , header , footer are present on the page. I enabled error log but there isn't error.
If I change theme to other theme, I can see details but when I change it to hellowired theme, nothing is there.
I don't understand whats wrong going on, what I'm supposing is some other person played with code or changed something which is causing this issue, and now I'm totally unable to understand where to proceed from.
Its simply complicated. Without any error how can I reach at that point in Magento where there are so many files in it with vast and complicated structure.
Any help would act as pain relief :P. Is there anyone who can suggest anything.
If it's working with default theme, that means your custom theme "helloweird" may have something wrong in the layout files.
If you are referring to the checkout page you should look in the file
app/design/frontend/helloweird/helloweird/layout/checkout.xml .
If you are referring to account order history details then you should look in the customer.xml
The path to the layout folder of your theme may differ.
You will not receive errors if the layout xml files have something wrong.
first of all you have to check checkout.xml FROM app/design/frontend/YOUR_PACKAGE/YOUR_THEME/layout
if it's contain checkout_onepage_success block if not then you have to copy these block from base
<checkout_onepage_success translate="label">
<label>One Page Checkout Success</label>
<reference name="root">
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
</reference>
<reference name="content">
<block type="checkout/onepage_success" name="checkout.success" template="checkout/success.phtml"/>
</reference>
</checkout_onepage_success>
let me know if you have still problem

How to remove sign up links from top menu in magento?

Recently I have notcied that on my websites top menu two sign up buttons are visible. How do I remove the extra link?
find following line in your theme's layout folder
<reference name="top.links">
And check there must be two instance of the link you are speaking in different files.
for ex if two Log Out links are visible, following must be inside above tag in two places.
<action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action>
If you have recently added any extension you must also check in its xml file.
Hope this helps

Whats the proper way to fix Magento Wishlist Link Points to Root?

Magento's (1.5.1.0) cms_footer_links link to wishlist is incorrect: it points to the web root instead of "/wishlist". I have been able to apply a temporary fix (on wishlist.xml: the commented action was replaced by the uncommented action below it)
<reference name="top.links">
<block type="wishlist/links" name="wishlist_link"/>
<!-- <action method="addLinkBlock"><blockName>wishlist_link</blockName></action> -->
<action method="addLink" translate="label title"><label>My Wishlist</label><url>wishlist</url><title>My Wishlist</title><prepare/><urlParams/><position>20</position></action>
</reference>
Fixing it this way naturally doesnt show the number of items in the wishlist on the link. How do I go about fixing <blockName>wishlist_link</blockName> without changing the core xml responsible for it? I imagine it can be done via local.xml (this did not work), but what is the syntax for doing that?
An alternative solution would be to find the reason why it stopped working, but that can be a much more daunting task than modifying local.xml. I have been able to find other people with the exact same problem on the magento forum (1, 2), but I've given up on asking for help there...

Magento - updating catalog.xml

I'm trying to update a magento theme (the theme name is blank_seo), and i'm trying to change the product page default template to 3 columns. I've tried updating the app/design/frontend/default/blank_seo/layout/catalog.xml file. but so far nothing is working.
The only solution that i've found is manually changing the 'Page Layout' dropbox to 3 columns. If anyone has a simpler/quicker way of doing this (or a reason why my editing of catalog.xml doesn't work), I'd be extremely thankful!
Just looking at the code I have, I have been able to do this without any issue, which part of the catalog.xml file are you changing? It should be the <catalog_product_view> element like so:
<catalog_product_view translate="label">
<label>Catalog Product View (Any)</label>
<!-- Mage_Catalog -->
<reference name="root">
<action method="setTemplate"><template>page/1column-productview.phtml</template></action>
</reference>
....
</catalog_product_view>
I have a custom template set up in my system for the product page, as you can see.
Also, make sure you refresh your cache and check your logs to ensure you are not missing any errors.

Resources