Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The additional product type form options haven't exported automaticly with commerce features module.
Comments
Comment #1
joshmillerDiscussing this on #drupal-commerce this morning... Here's the gist from pcambra (commerce_features maintainer) and bojanz (commerce_kickstart 2.x maintainer)
bojanz: autosku has its own storage, reads it, then alters the product type info. it is not supported by features at all
pcambra: so it's config that should be made exportable. strongarm or something?
bojanz: we create the patterns during module install. strongarm is for variables only. this is a separate table
pcambra: yeah, not sure where. ouch.
bojanz: so needs its own features integration
pcambra: then ctools exportables, but IMHO that should be in autosku module
Comment #2
joshmillerAnd the example code from Kickstart ...
http://pastebin.com/QDi0XAw6
Comment #3
rbayliss CreditAttribution: rbayliss commentedIn my experience, since the autosku settings are carried around with the product type when loaded with commerce_product_type_load(), they're exported automatically by commerce_features, when you export the product type. If that's no longer the case, I'm happy to write CTools export code for the commerce_autosku table.
Personally, I'm not a big fan of using variables for storage of arbitrary entity bundle settings, but I'm certainly willing to consider it if that would make things easier.
Comment #4
hawkeye.twolf+1 It doesn't seem that autosku settings are picked up by commerce features. I don't have the time to devote to it right now, but converting to variable to support export via strongarm would be a big plus.
Thanks for a useful module!
Derek
Comment #5
rbayliss CreditAttribution: rbayliss commentedOK, I switched from using straight up database storage to using the CTools Export API for the storage. This means that autosku patterns can now be exported by features. I'll be rolling a new stable release in the next few days unless we find an issue with the implementation.
Comment #7
bporter2387 CreditAttribution: bporter2387 commentedi just wanted add that you must have ctools bulk export enabled or features won't export the autosku pattern.
Sorry for reopening this thread.
Comment #8
rbayliss CreditAttribution: rbayliss commentedbporter2387, CTools Bulk export isn't required, just the basic CTools module and the features module.
Comment #9
gaydamaka CreditAttribution: gaydamaka as a volunteer and at Propeople (now part of FFW) for FFW commentedHi, who knows why the option "Automatically Generate SKU" is not activated when the enable features?
Comment #10
mikemccaffrey> I'll be rolling a new stable release in the next few days unless we find an issue with the implementation.
So it looks like this change was committed into the dev branch on Mar 25, 2013, and there hasn't been a stable release made in the three years since.
Any chance of that actually happening at some point, rbayliss?
Comment #11
rbayliss CreditAttribution: rbayliss at Last Call Media commentedYep. Thanks for the reminder. I guess 3 years is probably enough time to verify that the code is stable. Just released 7.x-1.2. It should be available shortly.