Hi, I'm new to Satchmo so I'm following the guide in order to learn
how to publish my products. In the meantime I also have replaced the
original product module with my own version slightly modified. I'm
using version 0.9.1 rc2.

I noticed that using the default module there is a section called
"Product Type" at the bottom of add page, while using customized
module this section doesn't appear. This is not a big problem because
I'm still able to add configurable products from the Configurable
Product add page, but I'm wondering why this happens and how to fix.

The tutorial says to be sure that ConfigurableProducts and
ProductVariations are installed, and they are. Then to go to /settings
and verify that both values are highlighted in Product Model Options.
But in my installation this setting is not present.

Thanks for any reply and for giving Satchmo, it looks great!
P.


# models.py:
from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from product.models import Product, ProductManager

class MerchantProduct(Product):
    merchant = models.ForeignKey(User,
                                 null=True,
                                 blank=True,
                                 editable=False,
                                 verbose_name=_("My product model"),)

    def _get_subtype(self):
        return _("My product model")

# admin.py:
from django.db import models
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from product.models import Product
from product.admin import ProductOptions
from models import MyProduct

admin.site.unregister(Product)

class MerchantProductAdmin(ProductOptions):
    def save_model(self, request, obj, form, change):
        if change is False:
            obj.merchant = request.user

        obj.save()

admin.site.register(MyProduct, MyProductAdmin)

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to