ubercat

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
atomicbop's picture

Default value as Ubercart attribute option

I'm having a major problem with displaying Ubercart attributes. I need to get each attribute option's price to display in it's own cck field. I have tried using default value using the php input, and also using Computed Fields module. The values should display, but they are not.

This is the code for the value:

$node->attributes[1]->options[1]->price

If I print this in node.tpl.php, it shows. Why wouldn't it show in a cck field? I've also tried it in a view using the customfield module.

Read more
Subscribe with RSS Syndicate content