Magento Forum

   
Magmi Replace Value
 
RaySpike
Jr. Member
 
Total Posts:  4
Joined:  2008-12-24
 

Hello,

I use the wonderful MagMi tool, but I am struggling with the Value Replacer v0.0.7a

I have different categories I want to rename with str_replace, but I can do just one value within a field (for example categories).

I’ll give a Replaced attributes for categories and give as New value for categories

{{ str_replace('Categorie1','Example',{item.categories}}}

But I want for example make more str_replace

{{ str_replace('Categorie1','Example',{item.categories}}}
{{ str_replace
('Cat2','Examples2',{item.categories}}}
{{ str_replace
('Bla','Examples3',{item.categories}}}
etc.

How can I achieve this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
mcm999
Member
 
Total Posts:  42
Joined:  2009-05-06
 

Hi Ray,

Try this:

{{ str_replace('Categorie1','Example',{item.categories});str_replace('Cat2','Examples2',{item.categories});str_replace('Bla','Examples3',{item.categories}}}

 
Magento Community Magento Community
Magento Community
Magento Community
 
RaySpike
Jr. Member
 
Total Posts:  4
Joined:  2008-12-24
 

Thnx mcm999 for reply,

but unfortunately, that doesn’t work. In that case nothing will replaces

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