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 to override catalog/convert_adapter_product
 
tsifra
Member
 
Total Posts:  57
Joined:  2008-09-14
 

I’m trying following:

1. Create

app/etc/modules/Peerus_Catalog.xml

Content

<?xml version="1.0"?>
<config>
  <
modules>
    <
Peerus_Catalog>
      <
codePool>local</codePool>
      <
active>true</active>
    </
Peerus_Catalog>
  </
modules>
</
config>

2. Create

app/code/local/Peerus/Catalog/etc/config.xml

Content

<?xml version="1.0"?>
<config>
  <global>
    <
models>
      <
catalog>
<
rewrite>
        <
convert_adapter_product>Peerus_Catalog_Model_Convert_Adapter_Product</convert_adapter_product>
</
rewrite>
      </
catalog>
    </
models>
  </global>
</
config>

3. Create

app/code/local/Peerus/Catalog/Model/Convert/Adapter/Product.php

Content is like

class Peerus_Catalog_Model_Convert_Adapter_Product
    
extends Mage_Catalog_Model_Convert_Adapter_Product
{
...
}

Nothing happens. Mage_Catalog_Model_Convert_Adapter_Product is still in use.

 
Magento Community Magento Community
Magento Community
Magento Community
 
LeeSaferite
Guru
 
Avatar
Total Posts:  322
Joined:  2007-08-31
Lake City, FL
 

EDIT:  redacted because I’m an idiot.  wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
LeeSaferite
Guru
 
Avatar
Total Posts:  322
Joined:  2007-08-31
Lake City, FL
 

Without you being a bit more specific, it is hard to figure out the problem. 

But at a guess, are expecting classes that extend Mage_Catalog_Model_Convert_Adapter_Product to now extend Peerus_Catalog_Model_Convert_Adapter_Product?

If you can give a little more context to the problem, you could get a better response

 
Magento Community Magento Community
Magento Community
Magento Community
 
tsifra
Member
 
Total Posts:  57
Joined:  2008-09-14
 

Sorry for troubling. I think the cache was my problem =)))

Now everything is fine!

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