I ran into a unique problem with a unique client. On a Magento account screen, there are usually two places where βMy Cartβ appears; the top panel, and on the side panel as a block. However, I was instructed to delete them and place a link (with the number of items in the basket) in the "My Account" section of the sidebar.
It seems like as a new user I can not send images. This will create a problem.
MY ACCOUNT
Panel
Address Book
My shopping cart (2 pcs.) <---- This link here. In this area and showing the number of items
My Orders
My Product Reviews
May Tags Newsletter Subscription
Now adding the link itself is a problem. In fact, it is quite simple and accomplished.
<action method="addLink" translate="label" module="checkout"><name>cart</name><path>checkout/cart/</path><label>My Cart</label></action>
in the customer.xml file.
The problem is with the listing of items in the basket within this area. If this site was in English only, some if statements inside the code \ core \ Mage \ Customer \ Block \ Account \ Navigation.php would allow it. However, the entire translation seems to be done before the addItem function is called to add these links to the menu.
I believe that if the number of items in the basket can be displayed before addItem is called, this problem will be solved, but all php from inside the tags will be ignored.
If anyone has a solution or any clues to this, we will be grateful! Thanks for taking the time to read this.
source
share