Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5972399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:39:08+00:00 2026-05-22T20:39:08+00:00

How can it be solved?I want to ‘My Cart’ link not in top menu,

  • 0

How can it be solved?I want to ‘My Cart’ link not in top menu, rather in other place. So I deleted from checkout.xml:

<reference name="top.links">
    <block type="checkout/links" name="checkout_cart_link">
        <action method="addCheckoutLink"></action>
    </block>
</reference>

Then add new reference:

<reference name="top.mybasket">
    <block type="checkout/links" name="checkout_cart_link">
        <action method="addCartLink"></action>
    </block>
</reference> 

From page.xml i add this:

    <block type="page/html_header" name="header" as="header">
                <block type="page/template_links" name="top.links" as="topLinks"/>
// other blocks
                <block type="page/template_links" name="top.mybasket" as="my_basket_count"/>
</block> 

Next i add in header.phtml by:

<?php echo $this->getChildHtml('my_basket_count') ?> 

All works fine.
My question is how this whole process can be done in local.xml? I tried but it looks critical!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:39:09+00:00Added an answer on May 22, 2026 at 8:39 pm

    Here is the content of local.xml you need if i understand correctly your requirements:

    <?xml version="1.0"?>
    <layout version="0.1.0">
     <default>
      <reference name="top.links">
       <remove name="checkout_cart_link"/>
      </reference>
      <reference name="root">
       <reference name="header">
        <block type="page/template_links" name="top.mybasket" as="my_basket_count"/>
       </reference>
      </reference>
      <reference name="top.mybasket">
       <block type="checkout/links" name="checkout_cart_link">
        <action method="addCartLink"></action>
       </block>
      </reference>
     </default>
    </layout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've noticed many questions on here from new programmers that can be solved using
This is not a question that can be solved by using ease-in . If
I want tp build a WPF (or Windows Forms if it can solve the
I want to solve x. How can I do it in Scheme? T1-F2=0 F1+T2=GM-Gm
I'm stuck on one thing i can't get solved. I have part of code,
edit: Solved - mod_rewrite was the problem I can't get CI to work as
This is solved, but I can't mark it as such for 2 days. This
I can't see this in the docs, but I presume it's a solved problem.
I know I've solved this problem before, but I can't remember or find the
UPDATE The issue is solved, all the code you can see works. Hello! I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.