I have just spent the past two days trying to figure out why cano wasn't working on one of my sites but was fine on the other. Turns out cano does not like multiple drupal content types that are all products.
In the cano configuration I have areas to configure cano attributes for each of my content types "Beers" "Food" "products". But cano only works when the attributes are set in the products section.
I believe that the following line 87 and a many other similar ones are the reason for the problem:
function _uc_cano_get_dependencies($nodetype, $attributes) {
$pcid = ($nodetype == "product") ? "0" : $nodetype;All my relevant node types are set to product but the pcid's are not. I have pcid's of "food_items' and "beer_items".
This line above checks if it is a product and then wrongly sets pcid to 0.
To work around this problem I am not simply ignoring the sections in cano configuration for my other content types and only making changes in the products section.
Since I have a workaround and I am not a great php coder I am not going to waste much more time on this issue but hopefully someone else can use this info to make a fix in the future.
