Need help with drupal ubercart.

Discussion in 'Drupal' started by sogastic, Sep 9, 2007.

  1. #1
    Hello.

    I have added the second price column to ubercart category. I use cost input field as a second price. But I also have another category where i don't want that second price. So im in kinda trouble here now.
    I have used all kinds of things to get if to working but it seems not to be reading that $node->taxonomy[5]
    At the moment it looksk like this :
    if($node->taxonomy[5]) {
       $fields[] = array('name' => 'cost', 'title' => t('Price2'), 'enabled' => true, 'attributes' => array('field' => 'p.cost', 'id' => 'price2'));
      }
    Code (markup):
    Also I need to use "-" in price to put price range.

    Anybody have any ideas ?

    Sincerely,
    Sogastic
     
    sogastic, Sep 9, 2007 IP