Try the Demo

Magento Forum

   
Double text displayed in products
 
EsmeraldaHop
Jr. Member
 
Total Posts:  10
Joined:  2009-09-02
 

Hi,

I have the following script in my prices.phtml file and somehow the text is displayed twice in the products.

I

<?php foreach ($_product->getCategoryIds() as $_category): ?>
                <?php 
if (in_array($_category, array(43,44,62,67,70))) : ?> <?php echo "<br />Grundpreis &euro; 0,07/Meter" ?>
                <?php 
endif; ?>

Somehow I can’t get rid of the second line. Can you perhalps help me out here?

Thnx!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Guru
 
Avatar
Total Posts:  515
Joined:  2011-07-03
 

Try to take an other file instead of price.phtml. Maybe in the view.phtml before or after the price block is loaded?

 Signature 

Magento Freelancer.

Need an extension? Feel free to contact me!

Web: http://www.sig-tec.de
E-Mail:
Skype: sig-tec
Xing: https://www.xing.com/profile/Siegfried_Schmitz2
Profil auf freelance.de
Profil auf freelancermap.de

 
Magento Community Magento Community
Magento Community
Magento Community
 
EsmeraldaHop
Jr. Member
 
Total Posts:  10
Joined:  2009-09-02
 

Solved!

Category 43, 44 and 73 are subcategories of 62 and therefore it went double. By deleting them from the code, the problem was solved.

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