Not compatible with Commerce Product Attributes

Created on 13 January 2021, almost 5 years ago
Updated 18 August 2025, 3 months ago

Problem/Motivation

I am trying to show product attributes which were selected in add to cart form. So people should be able to select some attributes and when they hit add to cart button, they are presented with this nice popup with attributes which they selected.

For some reason it looks like attributes field just prints out product name and nothing else. For me it looks like permission problem of some kind, since same views functionality works anywhere else on website. But I am not sure where to dig into.

Steps to reproduce

Install Drupal Commerce 7, not kickstart installation, install this module and product attributes module. Add some kind of attributes with pricing etc. and then edit the view provided by this module to add field "Commerce line item: Product attributes". It will just print product title and nothing else.

Weird thing is, in Views when typing contexual filter by hand (commerce line item ID) it works nicely! But not when adding to cart.

Proposed resolution

Possible solution is just to rework the view to take the last order item instead and show it in popup. Which should in theory work. But it is a workaround, not a solution to existing problem.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia lubwn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024