Attribute names are correct but selected options do not show up in report. Found a comment in a different ubercart module (uc_who_bought_what) that there was a change in attributes storage in ubercart 6.x-2.0-rc6.
Attribute names are correct but selected options do not show up in report. Found a comment in a different ubercart module (uc_who_bought_what) that there was a change in attributes storage in ubercart 6.x-2.0-rc6.
Comments
Comment #1
cayenne commentedHere is the pertinent code fix from the WHo Bought What module.
The issue is that old orders' attributes are not an array, but the new ones are. Yep, life is interesting.
Comment #2
cayenne commentedAfter a mildly embarrassing foray into not reading the instructions, I have made a simple change that appears to address the problem. I'd make a patch, but my patches never seem to work.
Replace line 386 (
$option_rows[] = t('@attribute: @option', array('@attribute' => $attribute, '@option' => $option));)with the following code:Thus, if it's old code, it works as before, and if the order was placed under the new code, it's unparsed as an array with vertical bars between.
Comment #3
Rene Hostettler commentedThanks for the fix Cayenne worked for me. Was getting lots of not htmlentiy errors as well now all attribute names displaying correctly