When you create an order using drupal backoffice screens, the product reference field displayed to add a product in the line item manager is hard coded without any drupal hook to alter the rendered product name.
So the default pattern is :

@sku: @title

In some cases, it is necessary to enrich/alter product title and/or alter database query too.

Comments

sebastien m.’s picture

Status: Active » Needs review
StatusFileSize
new2.63 KB

Here is my soluce.

Status: Needs review » Needs work

The last submitted patch, 1: commerce-alter_line_item_manager_suggest-2536986-1.patch, failed testing.

sebastien m.’s picture

Version: 7.x-1.11 » 7.x-1.x-dev
Status: Needs work » Needs review

chris matthews’s picture

The 4 year old patch to commerce_product.api.php and commerce_product.module applied cleanly to the latest commerce 7.x-1.x-dev, but still needs review.