Needs work
Project:
Ubercart Sub-Product
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 May 2011 at 15:03 UTC
Updated:
17 May 2011 at 21:03 UTC
When adding fields to the Sub product display fields created for product classes were not being displayed. So instead of limiting fields to content from products using:
content_types('product')
I took all content types and then limited them to content which are uc products by checking for:
$type_info['module'] == 'uc_product'
I made a patch for this change (only a few lines in two functions).
| Comment | File | Size | Author |
|---|---|---|---|
| uc_subproduct_content_fields_for_product_classes.patch | 1.83 KB | jedsmith13 |
Comments
Comment #1
larowlanWe should retain the existing code, the $node is passed as an argument - we should use
then
we can use the existing code here but change it from
$type_info = content_types('product');to
$type_info = content_types($node->type);