Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Adding new string to function in Drupal's Ubercart

string

  • Please log in to reply
No replies to this topic

#1 moog

moog

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 11 September 2007 - 11:39 AM

Hello.

I'm working on a site which using drupal CMS. And I got a problem that I can't solve by myself.

What I need is to insert a string into the function. String called $node. That abels me to use $node->nid,taxonomy etc. right ? So what I need it to look like is this function uc_product_table($op, $node, $args = array()){

But everywhere I put it, it hits error.

I need it because I want to to show ubercart module price only on certain pages. So I think I can do it then by this if($node->nid, or taxonomy == x) { Then show the second price $fields[] = array('name' => 'price2', 'title' => t('Price2'), 'enabled' => true, 'attributes' => array('field' => 'p.price2', 'id' => 'price2')); } else {do nothing}

I appreciate any suggestion.

Thank you.

Sincerely,

Sogastic
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download