Why arent product attributes being attached to items in the wishlist? They did in the previous version, now no attributes and a box for "have" which is unusable. Anybody find a way to include the product attributes?

Comments

lancewig’s picture

Quick Fix:

Go to uc_wishlist.module and add this inside the uc_wishlist_get_contents() function (around line 527. It's right after a comment that says "// add wishlist id data")

    if(!empty($item->data['attributes'])):
      $item->attributes = "<div class='item-list'><ul class='product-description'>";
      foreach ($item->data['attributes'] as $oid):
        $result = db_query("SELECT name FROM {uc_attribute_options} ao WHERE ao.oid = %d", $oid);
          while ($row = db_fetch_object($result)) {
	      $item->attributes .= "<li>" . $row->name . "</li>";  
          }
      endforeach;
         $item->attributes .= "</ul></div>";
    endif;  

Now go to uc_wishlist.pages.inc and replace $element['title'] with this in side uc_wishlist_view_form() (around line 257):


$element['title'] = array(
      '#value' => l(filter_xss($node->title, array()), 'node/'. $node->nid) . "<br />" . $item->attributes,
    ); 
naveenvalecha’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.