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.

  1. 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.
  2. 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

plach’s picture

Version: 7.x-1.0-alpha7 » 7.x-1.x-dev
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Try the latest dev, please.

gapa’s picture

I 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.

docans’s picture

Issue summary: View changes

I am also experiencing this problem. When i import my products the Title field is not populated. Any reason's why

Thanks

docans’s picture

Status: Postponed (maintainer needs more info) » Active
Honza Pobořil’s picture

Title: Using feeds module to import products title don't display in cart and review order » Using Feeds module to import content does not save $node->title
Component: Miscellaneous » Code

Same 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.

SocialNicheGuru’s picture

Issue tags: +title, +Feeds
FranCarstens’s picture

I've been fighting this all day. I finally:

  1. Updated to the latest dev of title (7.x-1.0-alpha7+14-dev)
  2. Updated to the latest dev of commerce_feeds (7.x-1.3+5-dev)
  3. Cleared cached
  4. Changed the variation title column's title in my csv
  5. Saved the csv with Unix line endings (just in case there were some hidden characters from my Excel export)
  6. Replaced the mapping with the appropriate new csv column title (mapped to both "title" and "product title")
  7. Removed the old csv files from the server
  8. Renamed the updated csv files
  9. Imported

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.

maxplus’s picture

Hi,
using the current DEV solved this issue for me, Title_field is now properly saved during import