Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How can I move “box currency-switcher” to the right column or header? 
 
ForgetHangovers
Sr. Member
 
Total Posts:  83
Joined:  2009-04-12
Maryland, USA
 

What is the best way to move the “box currency-switcher” from the left column (default) to the right column or header?

p.s. “box currency-switcher” is the drop down to select the currency, labeled “Select Your Currency”

TiA,
-Chris

 
Magento Community Magento Community
Magento Community
Magento Community
 
jgorrell
Member
 
Total Posts:  44
Joined:  2009-07-27
Morgantown, WV
 

Open your layout folder:
/app/design/frontend/[your interface]/[your theme]/layout/

Open the file directory.xml and change:

<catalog_category_default>
        <
reference name="left">
            <
block type="directory/currency" name="currency" before="catalog.leftnav" template="directory/currency.phtml"/>
        </
reference>
    </
catalog_category_default>
and
<catalog_category_layered>
        <
reference name="left">
            <
block type="directory/currency" name="currency" before="catalog.leftnav" template="directory/currency.phtml"/>
        </
reference>
    </
catalog_category_layered>

to

<catalog_category_default>
        <
reference name="left">
            <
block type="directory/currency" name="currency" before="-" template="directory/currency.phtml"/>
        </
reference>
    </
catalog_category_default>
and
<catalog_category_layered>
        <
reference name="left">
            <
block type="directory/currency" name="currency" before="-" template="directory/currency.phtml"/>
        </
reference>
    </
catalog_category_layered>

I haven’t tested this but it should work.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ForgetHangovers
Sr. Member
 
Total Posts:  83
Joined:  2009-04-12
Maryland, USA
 

Thanks for the shot Jay, but that’s not doing the trick.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ForgetHangovers
Sr. Member
 
Total Posts:  83
Joined:  2009-04-12
Maryland, USA
 

Nevermind, figured it out:

<!--
Category default layout
-->

    <
catalog_category_default>
        <
reference name="right">
            <
block type="directory/currency" name="currency" before="catalog.rightnav" template="directory/currency.phtml"/>
        </
reference>
    </
catalog_category_default>

<!--
Category layered navigation layout
-->

    <
catalog_category_layered>
        <
reference name="right">
            <
block type="directory/currency" name="currency" before="catalog.rightnav" template="directory/currency.phtml"/>
        </
reference>
    </
catalog_category_layered>
 
Magento Community Magento Community
Magento Community
Magento Community
 
jgorrell
Member
 
Total Posts:  44
Joined:  2009-07-27
Morgantown, WV
 

Whoops, I’m not sure how I missed changing the reference block name as that’s the main part! Sorry about that but at least you figured it out. You should also change the “before” attribute though in the way I did as you’re referencing a location (the catalog) which doesn’t exist on the right unless you moved it also. Setting it to before="-" will make it show at the very top of the box and after="-" will make it show at the bottom.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ForgetHangovers
Sr. Member
 
Total Posts:  83
Joined:  2009-04-12
Maryland, USA
 

It seems to work either way, but I’ve made the change as you mentioned anyways:

<!--
Category default layout
-->

    <
catalog_category_default>
        <
reference name="right">
            <
block type="directory/currency" name="currency" before="-" template="directory/currency.phtml"/>
        </
reference>
    </
catalog_category_default>

<!--
Category layered navigation layout
-->

    <
catalog_category_layered>
        <
reference name="right">
            <
block type="directory/currency" name="currency" before="-" template="directory/currency.phtml"/>
        </
reference>
    </
catalog_category_layered>
Thanks for your help Jay
 
Magento Community Magento Community
Magento Community
Magento Community
 
jgorrell
Member
 
Total Posts:  44
Joined:  2009-07-27
Morgantown, WV
 

You’re welcome and yeah, it’ll just default to a position (I believe at the top) if the referenced before/after block isn’t in the same parent block so the result is the same… it’s just cleaner smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
dennisp
Jr. Member
 
Total Posts:  11
Joined:  2009-04-30
Ukraine
 

Hello,

Thanks for the advice, but following this guideline only enabled the currency dropdown on the category pages only; how to enable it on all pages (essentially home/product pages)?

Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Philster53142
Member
 
Total Posts:  67
Joined:  2009-10-03
 

Jay will this also work for my issue? I need to move the category title above the category image. Please look at these two images.

As you can see the subcategory static block is pushing my title all the way to the bottom of the page. I think I need to change the reference but I don’t know what I’m looking for.

Thanks,
Phil

Image Attachments
Magento-demo.jpgcategory-title.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
ikultura
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2010-02-06
 

hi, i still got this problem. in my template directory there are only lines like:

<catalog_category_layered>
<reference name="left">
</reference>
</catalog_category_layered>

and

<catalog_category_default>
<reference name="left">
</reference>
</catalog_category_default>

without additional lines which you gave in your solution. i changed them in default/layout/directory.xml (because i found there lines you wrote about) but it doesnt work. any idea, what i can do it?

my test website is here: http://artliberation.org/exhibitioncentre/index.php/

thank you for your help!

 
Magento Community Magento Community
Magento Community
Magento Community
 
ikultura
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2010-02-06
 

hi, i still got this problem. in my template directory there are only lines like:

<catalog_category_layered>
<reference name="left">
</reference>
</catalog_category_layered>

and

<catalog_category_default>
<reference name="left">
</reference>
</catalog_category_default>

without additional lines which you gave in your solution. i changed them in default/layout/directory.xml (because i found there lines you wrote about) but it doesnt work. any idea, what i can do it?

my test website is here: http://artliberation.org/exhibitioncentre/index.php/

thank you for your help!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top