Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2009 at 20:18 UTC
Updated:
22 Jul 2009 at 03:10 UTC
Jump to comment: Most recent file
We currently can't override the display of attributes on each product line of an order. I've created a patch to add theme_uc_order_attributes($product) to Ubercart. Patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 511846_200907072254-0400.patch | 3.08 KB | sammys |
| #1 | 511846_200907061618-0400.patch | 3.14 KB | sammys |
Comments
Comment #1
sammys commentedPatch attached.
Comment #2
sammys commentedSet to 'needs review'
Comment #3
rszrama commentedSo, it appears to work properly at least, but I have two questions with the patch:
1) In the comments for the function, you say that $product is deliberately ignored, but I don't know what you mean. It's using $product->data right there.
2) You mention $options in the comments for the function, but you don't include it in hook_theme(), the prototype, or when the theme function is called. Is that what's being deliberately ignored? Or should that just be taken out of the comments?
3) Regarding the comments, don't we know the return type? A string, either populated with the option HTML or empty?
Comment #4
sammys commentedYeah the comments were there when I implemented the code a different way. I'll rework it and resubmit.
Comment #5
sammys commentedComment #6
sammys commentedComment #7
rszrama commentedAlrighty, thanks for the cleanup. Committed.