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

currency switcher will not show in product page
 
raperjan
Jr. Member
 
Total Posts:  24
Joined:  2010-01-12
 

hi

i have a problem with currency switcher, it will not show in product pages and tag pages , it just show in category page

can you tell me how to add currency switcher in product page ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
raperjan
Jr. Member
 
Total Posts:  24
Joined:  2010-01-12
 

no body ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

Edit this file:
app/deisng/frontend/{interface}/{theme}/layout/catalog.xml and add this section

<catalog_product_view>
        <
reference name="left">
            <
block type="directory/currency" name="currency" before="-" template="directory/currency.phtml"/>
        </
reference>
    </
catalog_product_view>
If you use on the product page a template with a right column instead of a left column change the reference name to “right”.

Marius.

 
Magento Community Magento Community
Magento Community
Magento Community
 
raperjan
Jr. Member
 
Total Posts:  24
Joined:  2010-01-12
 

thank you

that code works like a charm

 
Magento Community Magento Community
Magento Community
Magento Community
 
raperjan
Jr. Member
 
Total Posts:  24
Joined:  2010-01-12
 

one other question

i tried to add currency switcher in tag pages, but in tag.xml i notice this : Default layout, loads most of the pages

when i put the code in right place the currency switcher showed in all the pages !

i want a code just for tag pages

look at this code :

<catalog_product_view>
<reference name=\"left\">
<block type=\"directory/currency\" name=\"currency\" before=\"-\" template=\"directory/currency.phtml\"/>
</reference>
</catalog_product_view>

how to customize it for tag pages ?

it should be like it ?

<tag_view>
<reference name=\"left\">
<block type=\"directory/currency\" name=\"currency\" before=\"-\" template=\"directory/currency.phtml\"/>
</reference>
</tag_view>

help me and tell me what word should replace with tag_view ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
raperjan
Jr. Member
 
Total Posts:  24
Joined:  2010-01-12
 

i solve it

this code worked fine in tag.xml page

<tag_product_list translate="label">
<reference name="left">
<block type="directory/currency" name="currency" before="-" template="directory/currency.phtml"/>
</reference>

</tag_product_list>

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