Developer forum

Forum » Ecommerce - Standard features » Product item type

Product item type

Casper Andersen
Reply

Hello DynamicWeb

I have a custom item type that i have made with code first. I have then created some paragraphs with different information, and would like to convert these paragraphs into products.

Said in another way, i would like to be able to have products that have the same fields and my custom item type, but i dont want to have to create them in the e-commerce section, is there a way to make a product inherit fields from an item type?

Regards Casper


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hello Casper,

As far as I know, no.

The only thing closer to what you try to accomplish, is to either add a Product Field on the itemType and use it to connect the 2 objects or add a simple text filed where you can store the ProductNumber or ProductID of the product.

First option is useful if you want to bring product information in the ItemType page while the second is useful if you want to bring ItemType information in the Product Detail page using the ItemPublisher directly in the template and filter based on the field you have defined.

However, please note that you gonna need the itmes to published as paragraphs or pages if you want to list them with ItemPublisher. I don;t think this is official information but this is something I found out playing with the ItemPublisher.

I hope this helps,

Adrian

 

You must be logged in to post in the forum