Hi:
The situation is as follows:
Initially I created a content type with two attributes but business needs had to add more attributes.
I followed the instructions to add programmatically the remaining attributes but not added and the instructions were correct.
I began to review the records of the tables and saw that even though I had added the attributes to the content types , they had not updated those attributes in the products classes (I'm sending the appropriate image).
The partial solution I did was add the records to the tables manually (uc_class_attributes - uc_class_attribute_options) what was needed and worked programmatic creation of products.
I did a test by deleting the kinds of products and creating them again but did not work.
I hope this problem will be solved as soon as possible because I believe that is critical.
Thank you.
Manuel.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TR’s picture

Category: Bug report » Support request
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

I can't reproduce this. If I go to /admin/store/products/classes/my_product_class/attributes (where my_product_class is an existing product content type on my site), then I still see the "Add attributes to the product class ..." text and the link to the page where you can add an attribute.

Note the text and link are displayed in the system help block, so if you don't have this block enabled in your admin theme then the text won't show. See /admin/structure/block/manage/system/help/configure

Even if the text doesn't display for you, visiting the link directly (e.g. /admin/store/products/classes/my_product_class/attributes/add) should work for you to add attributes.

longwave’s picture

Maybe we should move that link out of hook_help and into a local action link or directly into the page.

manuel_mra’s picture

Hi:
In the case you write directly : /admin/store/products/classes/my_product_class/attributes/add it shows the button to add the attributes, but in the /admin/store/products/classes/my_product_class/attributes link it doesn't show in the picture I'm sending (ubercart-class-attribute-error-03.png).
I checked out if the block was enabled and it is enabled (ubercart-class-attribute-error-02.png ).
Anyway ... writing directly fixes in part the issue and I don't have to add via sql the records I need to work.
But I don't know why it doesn't show.
Thanks.
Manuel.

longwave’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

This should be improved in #2315267: Change add attribute/add more attribute terminology, if you can test the patch there it would be appreciated.