Discussions

Clone a Product Type ?

Hi,

Forgot to ask that in my last post but it's could be nice to be able to clone a product type which share 90% of fields,...

Thanks,
Florent

Posted: Jul 9, 2011

Comments

Florent on July 11, 2011

I'm not sure to understand Rfay : english,D.C and personnal limitation ;o).

If i create a Product Type "Book" and i want to create a product type "ebook". A lot of fields will be the same. So tha ability to clone Book to Ebook, could be great !

An other question ? Is Product Type is "exactly" the same than a content type. Can you had cck field without restriction, just like a content type ?

Thanks
Florent

AdamGerthel on July 12, 2011

It's not exactly the same thing, since they aren't content types. "Content type" is a certain type of entities, called 'nodes'. "Product type" is another kind of entities. However, since entities are field:able, you are able to add all kinds of fields (like CCK, but it's not called CCK in D7).

Florent on July 17, 2011

Can you play (add fields) with a product type like a content type ? Or do we have to take care of some limitations ?

WebmistressM WebmistressM on June 10, 2012

I would like to be able to re-use alot of the setup of one product type. For example:

Simple Product
Product With Required Attributes
Product With Multiple Images
Product With Multiple Images and Required Attributes
Product for Multiple Product Display
Product for Multiple Product Display With Multiple Images
Product for Multiple Product Display With Required Attributes
Product for Multiple Product Display With Multiple Images & Required Attributes

A good portion of these have common fields so this is gonna get crazy if I must make these manually without use of a "clone this product type" option.

maxchock on August 17, 2012

can't agree more. I thought this is just a simple thing but apparently I am wrong..

alexanansi alexanansi on January 2, 2013

+1
I'd really like to see this, getting fed up of creating multiple product types that are almost exactly the same!

pirex360 pirex360 on August 14, 2013

I understand the Field Tools... but why you use the Daemon_Byte sandbox ? i really wanted to this actions without sandbox ...i think i never used one :)

4fs on August 14, 2013

I rarely use sandbox projects, in this case I had no choice - this way or nothing I could find so far. I tested this in a local environment and it worked extremely well with 0 errors. Seems very stable to me even after using this method for production now.

Here is the easy url should you want
http://drupalcode.org/sandbox/Daemon_Byte/2031677.git

click master and install as a normal module.

pirex360 pirex360 on August 28, 2013

Hi, thanks for the help...i now can clone variations and then clone fields to the content type...really easy.
My question is for the Displays... when cloning or creating a new, them add fields... the manage display is by default, and do not inherit the display configuration from the bundle...it is possible to clone the manage display too ?

Thanks for all the help :)