Closed lsolesen closed 9 years ago
This must have happened after the most recent Commerce Kickstart Release update. Mind taking a look at this @mglaman
@mglaman answered in an e-mail:
The issue is the category field reset the vocabulary it points to. What's the proper vocabulary name? I have a snippet used to fix a few sites.
Also, CK2 now supports Features Override (verified in upgrade tests) so that should be one thing enabled (provided now) and utilized to prevent this.
@mglaman It is the taxonomy 'colllection' which is utilized in the menu. That is the default one used in CK2?
$field = field_info_field('field_product_category');
$field['settings']['allowed_values'][0]['vocabulary'] = 'product_category';
field_update_field($field);
This is the code snippet to reset the vocabulary if it has changed. It is "collection" if demo store, "product_category" if not demo store.
@mglaman Does this just go into an update hook?
@mikaelbirkelundjohansen Temporary, I've substituted the links with product search links. This should still be fixed though.
@lsolesen it would go in an update hook, but that shouldn't run (I don't think) as commerce_kickstart_demo_store returns true. What was the old link, for testing purposes
@lsolesen so I ran "drush en discimport_deploy -y" (since it isn't enabled) and an update hook I added to reset taxonomy_menu fixed up the catalog -- discimport/discimport_deploy@c514b2e4232d61335d99391cc94430ac1295272f
Cool. Den 27/08/2015 14.54 skrev "Matt Glaman" notifications@github.com:
@lsolesen https://github.com/lsolesen so I ran "drush en discimport_deploy -y" (since it isn't enabled) and an update hook I added to reset taxonomy_menu fixed up the catalog -- discimport/discimport_deploy@c514b2e https://github.com/discimport/discimport_deploy/commit/c514b2e4232d61335d99391cc94430ac1295272f
— Reply to this email directly or view it on GitHub https://github.com/discimport/discimport-build/issues/21#issuecomment-135413838 .
@mikaelbirkelundjohansen Looking at this now.