1

I just use Magento top.links function. but it will display all link Like Myaccont,My wishlist,Mycart,checkout,login. but i want create sepate link OF mycart i can display anywhere in my header. Can you Please tell me what type of step i can do create sepate link of MYcart

I want to create this type of. i want to create separate cart Link? Please Help me?

  • are you want to spearete cart link using top link – Amit Bera Aug 7 '14 at 7:14
  • Yes i will found solution This Link. – coder Aug 7 '14 at 7:20
  • ok,you did not want cart link using toplink..then it is wk – Amit Bera Aug 7 '14 at 7:34
1

I Will Found Solution of the question $count = $this->helper('checkout/cart')->getSummaryCount(); //get total items in cart $total = $this->helper('checkout/cart')->getQuote()->getGrandTotal(); //get total price if($count==0) { echo $this->__('<a href="'.$cart_url.'" >(0 ITEMS)</a>',$count); } if($count==1) { echo $this->__('<a href="'.$cart_url.'" >(1 ITEM)</a>',$count); } if($count>1) { echo $this->__('<a href="'.$cart_url.'" >(%s ITMES)</a>',$count); } echo $this->__('<a href="'.$cart_url.'" >Total: %s', $this->helper('core')->formatPrice($total, false));

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.