How to create a Custom product type by default.

It like Affiliate Products.


1 Answer 1


You add below code in your etc.xml file

                    <affilated translate="label" module="affilatedproduct">
                        <label>Affilated Product</label>

in Model_Product_Type file

class Vendor_Affilatedproduct_Model_Product_Type extends Mage_Catalog_Model_Product_Type_Abstract
    const TYPE_AFFILIATE          = 'affilated';
    const XML_PATH_AUTHENTICATION = 'catalog/affilated/authentication';
    protected function _prepareProduct(Varien_Object $buyRequest, $product, $processMode)
        if ($this->_isStrictProcessMode($processMode)) {
            return Mage::helper('affilatedproduct')->__(
                'Affiliate product %s cannot be added to cart. ' .
                ' On the product detail page click the "Go to parent site"'.
                ' button to access the product.',
        return parent::_prepareProduct($buyRequest, $product, $processMode);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.