Hi,

I need to make different (tangible) product types due to tax differences per product. I tried to copy the tangible module and tweak it so it would genererate a second set of tangible products but that didn't work out for me.

Does anybody know how to do this?

Thanks in advance!

Wubbo

Comments

chrislynch’s picture

I've been working on a new kind of product over the last week or so, and have it basically working I think ...

The problem that I have hit is that I can't find documentation of the e-commerce API(s) and so the only way to get your product working is to copy and existing one (as you have done), tweak that, and then look for other integration points (for example, in the cart.module) and implement these as required.

What would be really useful would be a template for a new product type module with stubs for all existing API calls and short comments on the functionality of each one. That would make implementing a new one very simple!

In the meantime, you might want to try looking at the hosting.module in the contrib directory, which seems to be the simplest example of adding a new product type that is readily available.

wubbonius’s picture

thanks Chris. This helps. Docu indeed is the thing that would be very helpful for the e-commerce modules.

Not to be negative - I think the modules are a good workable set. But docu would make life easier ;-)

I'll take a look at the hosting module!

May the ease increase :D

wubbonius’s picture

Well - this seems not to be working for me. How to get this to be a shippable product??
I just can't seem to find that!

Help would be appreciated very much ;-)