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.

CommentFileSizeAuthor
uc_product_kit_list_item_theme.patch2.09 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TR’s picture

Component: Products » Product kits

Moving to "Product kit" component.

longwave’s picture

Status: Needs review » Fixed

Committed 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.