Hi,
I have (Magento ver. 1.9.1.0) with a multi-vendor plugin. When a seller/buyer login, there is a left menu which shows both options for seller/buyer (see image). I would like to change the left menu so that "My Account" block shows on the top and "Marketplace" block on the bottom.
I have tried to look into left.phtml file, but it only has the "Marketplace" links. So it seems like both blocks are being merged together somewhere in another file. Any suggestions?
Thank you
Solved! Go to Solution.
Hi @Under1009
In your xml use before and after syntax (i.e) add the code in my account code section call in xml like before="your marketplace name".
Hope this helps you.
Hi there,
this is likely to be added by your themes layout XML. You can find this here:
app/design/frontend/yourpackage/yourtheme/layout/
One of the files in there will be adding those blocks. They are likely to be customer.xml or local.xml.
You can debug where the code is by commenting blocks out of the XML files. Make sure you have caches off. System > Cache Management.
Let me know how you go.
Gareth.
Hello @iWeb GazJoy
I believe there are two blocks which are being included, one from customer.xml and one from marketplace.xml. Both are referencing
<reference name="left">
How can I change their order?
There are a number of ways to do this. You can either use before and after on the blocks in the XML where they are originally declared in your themes customer.xml and marketplace.xml or you can unset/insert the blocks in your local.xml like this:
<reference name="left"> <!-- Unset --> <action method="unsetChild"> <block>block1</block> </action> <action method="unsetChild"> <block>block2</block> </action> <action method="unsetChild"> <block>block3</block> </action> <!-- Insert --> <action method="insert"> <block>block3</block> </action> <action method="insert"> <block>block1</block> <after>1</after> <siblingName>block3</siblingName> </action> <action method="insert"> <block>block2</block> <after>1</after> <siblingName>block1</siblingName> </action> </reference>
Let me know if this helps.
Hi @Under1009
In your xml use before and after syntax (i.e) add the code in my account code section call in xml like before="your marketplace name".
Hope this helps you.
@AddWebSolution Thanks for that!