I have ticked both the "Link to Product" and "Link With Line Item" checkboxes in the "Commerce Line Item: Product Attributes" field settings on the "Shopping cart form" view (admin/structure/views/view/commerce_cart_form/edit).
If you are logged in, this causes the product title of that field being linked to the product display node path, appended by "?line_item_id=[line_item_id]
", which is the expected behaviour. However, the links only appear for an authenticated user. The anonymous user will not see any links at all!
The patch attached at #1929782: Anonymous users cannot view their line item attributes. does not help, so this issue seems to be unrelated to the other one.
Comments
Comment #1
roball CreditAttribution: roball commentedComment #2
roball CreditAttribution: roball commentedI have now found that the non-linked product titles may not only appear to the anonymous user, but also for logged in users in some circumstances.
Thus, the following workaround can be applied which always works:
[path]?line_item_id=[line_item_id]
" as the Link path.Comment #3
roball CreditAttribution: roball commentedComment #4
sano CreditAttribution: sano as a volunteer commentedI do not see this problem using Commerce Product Attributes 7.x-1.0-beta3+0-dev. Tested it with authenticated as well as anonymous user in FF and Safari on Mac. The only patch I have installed in the module is https://www.drupal.org/project/commerce_product_attributes/issues/1517084 but I do not believe that should affect this issue.
Comment #5
sano CreditAttribution: sano as a volunteer commentedMaybe the @roball used the Commerce Product Option module, which could explain the observed behavior. The attached related issue has a patch that might provide a fix for this issue.