Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When a product kit is configured to show the component products as a list (when mutable is UC_PRODUCT_KIT_UNMUTABLE_WITH_LIST), the output is hard coded and cannot be altered or themed.
This patch introduces a theme function for the output. I'm using this to remove the quantity and " x " when the quantity is 1.
Comment | File | Size | Author |
---|---|---|---|
uc_product_kit_list_item_theme.patch | 2.09 KB | Anonymous (not verified) | |
Comments
Comment #1
TR CreditAttribution: TR commentedMoving to "Product kit" component.
Comment #2
longwaveCommitted a slightly different version to both branches. theme('uc_product_kit_list_item') takes the entire $product now, so it is also responsible for the node_access() check and linking the title if appropriate. This reduces code duplication and allows even more flexibility.
6.x: http://drupalcode.org/project/ubercart.git/commitdiff/e47c5da
7.x: http://drupalcode.org/project/ubercart.git/commitdiff/985dc9b