Hi, I'm trying to figure out a way to pass the selected variations in the add to cart form to the product display title. So for instance, if the user selects the color "black" for Product X in the add to cart form, then I would like to title of the product to be Product X Black. Basically I want the title of the product to be the same as the title of the entity that is automatically generated when you do the bulk creation of products, based on their individual attributes. Any help on this would be appreciated. Also willing to fund anybody who can create a module that can do this.

On a side note, I think it may be accomplished through EntityNodeQuery, but not sure where to even begin.

Comments

htalwala created an issue. See original summary.

htalwala’s picture

Issue summary: View changes
rszrama’s picture

Category: Task » Support request
Status: Active » Closed (won't fix)
Issue tags: -add to cart, -title, -variations

Hey there, thanks for reaching out with your question. Unfortunately, it's a bit too ambiguous to answer ... it isn't clear to me where you want to affect the title. For example, to just have it show up in the shopping cart like that, you just need to ensure when entering products that you include the attributes in the title of the product itself. If you mean on the node page, that's going to be more complicated but require custom code.

That said, this issue queue isn't the best place for support requests like these. Please use Drupal Answers instead where we have a lot more people available to provide support and can ensure more people are able to find answers to their questions when they come up. Thanks!

https://drupal.stackexchange.com