Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I use feeds to import products in my drupal commerce site.
I use the title module for the product variation title replacement.
When i have a product in my cart, i don't have a title of the product.
- When i go to the product display and edit it, open the product variation, and save the product display the title is in the cart form.
- When i don't open the product variation and save the product display, i don't have a title in the cart.
Is this a bug or is there a solution for this?
Comments
Comment #1
plachTry the latest dev, please.
Comment #2
gapa CreditAttribution: gapa commentedI tried with latest dev but this is still a problem. I am usign commerce_kickstart 2.8 and have replaced title module with latest dev.
Comment #3
docans CreditAttribution: docans commentedI am also experiencing this problem. When i import my products the Title field is not populated. Any reason's why
Thanks
Comment #4
docans CreditAttribution: docans commentedComment #5
Honza Pobořil CreditAttribution: Honza Pobořil commentedSame problem happened to me when importing just nodes (without Commerce entities, without the Commerce Kickstart).
It is happend because after import Feeds does not save title to $node->title. (You map title only to title_field, not to title.) In Drupal there are some places where Title module is able to load proper field value and put it tempoary to $node->title, but there are many places where Title's hook is not invoked and it is trying to use just $node->title or value from database.
You can workaround it by re-save imported nodes, so it will load title_field value and save it to $node->title and then to database.
OR
Setup importer's mapping to set title value both to node title and title_field.
But this workaround does not work with multilingual nodes (using entity translation). If you need to show translated content title, you have to configure it to use title_field (not title atribute).
I am not sure if it is bug in Title or Feeds module.
Comment #6
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedComment #7
FranCarstens CreditAttribution: FranCarstens commentedI've been fighting this all day. I finally:
And BOOM! It worked.
If you're using Commerce Kickstart remember to update the "title" module in "profiles/commerce_kickstart/modules" otherwise you'll end up with a duplicate.
Comment #8
maxplus CreditAttribution: maxplus commentedHi,
using the current DEV solved this issue for me, Title_field is now properly saved during import