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

Create new product type based on grouped product
 
enrai
Jr. Member
 
Total Posts:  3
Joined:  2012-01-11
 

I already made a module, which gives me new product type. this product type behaves like a grouped product, except that no fieldset to choice products for that grouped product. I just cant add simple products to a grouped product.

There is a sources of my module.

app/etc/modules/Homerefit_Gallery.xml:

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

app/code/local/homerefit/Galleryproduct/etc/config.xml:

<?xml version="1.0"?>
<config>
    <
modules>
        <
Homerefit_Galleryproduct>
            <
version>0.1.0</version>
        </
Homerefit_Galleryproduct>
    </
modules>
    <global>
        <
models>
            <
galleryproduct>
                <class>
Homerefit_Galleryproduct_Model</class>
            </
galleryproduct>
        </
models>
        <
helpers>
            <
galleryproduct>
                <class>
Homerefit_Galleryproduct_Helper</class>
            </
galleryproduct>
        </
helpers>
 
        <
catalog>
            <
product>
                <
type>
                    <
gallery translate="label" module="galleryproduct">
                        <
label>Gallery Product</label>
                        <
model>galleryproduct/product_type_gallery</model>
                        <
composite>1</composite>
                        <
allow_product_types>
                            <
simple/>
                            <
virtual/>
                        </
allow_product_types>
                        <
index_priority>51</index_priority>
                    </
gallery>
                </
type>
            </
product>
        </
catalog>
    </global>
    <
adminhtml>
        <
translate>
            <
modules>
                <
Homerefit_Galleryproduct>
                    <
files>
                        <default>
Homerefit_Galleryproduct.csv</default>
                    </
files>
                </
Homerefit_Galleryproduct>
            </
modules>
        </
translate>
        <
layout>
            <
updates>
                <
galleryproduct>
                    <
file>galleryproduct.xml</file>
                </
galleryproduct>
            </
updates>
        </
layout>
    </
adminhtml>
</
config>

app/code/local/homerefit/Galleryproduct/Helper/Data.php:

<?php
class Homerefit_Galleryproduct_Helper_Data extends Mage_Core_Helper_Abstract
{

}

app/code/local/homerefit/Galleryproduct/Model/Product/Type/Gallery.php:

<?php
class Homerefit_Galleryproduct_Model_Product_Type_Gallery extends Mage_Catalog_Model_Product_Type_Grouped
{
    
const TYPE_CODE 'gallery';
}
 
Magento Community Magento Community
Magento Community
Magento Community
 
enrai
Jr. Member
 
Total Posts:  3
Joined:  2012-01-11
 

Anyone can help me with this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
enrai
Jr. Member
 
Total Posts:  3
Joined:  2012-01-11
 

Still cant find solution....

 
Magento Community Magento Community
Magento Community
Magento Community
 
head
Jr. Member
 
Total Posts:  16
Joined:  2007-09-26
 

some informations can be found in the wiki: http://www.magentocommerce.com/wiki/5_-_modules_and_development/catalog/create_a_new_product_type

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