|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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 |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| adding int to string,creat a file named string.. | emda321 | C and C++ | 2 | 06-18-2007 12:18 PM |
| newbie- image downloader | yoda855 | Visual Basic Programming | 34 | 08-11-2006 12:36 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 97%