Multiple content types

beernutmark's picture
Offline
Joined: 11/25/2011
Juice: 6
Multiple content types

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.

Chained Attributes and Options By: robbie (169 replies) Wed, 06/23/2010 - 21:01
  • Shopping cart missing attributes By: pmlchan (11/17/2010 - 10:18)
  • Any chance of getting this on drupal.org? By: ergophobe (10/26/2010 - 14:06)
  • Anybody pls By: alexmalka@detografx.com (10/13/2010 - 10:06)
  • Got It To Work By: alexmalka@detografx.com (10/10/2010 - 12:13)
  • version 1.1 and uc_aac By: scot.self (10/06/2010 - 11:08)
  • Again By: alexmalka@detografx.com (10/06/2010 - 11:02)
  • @alex: I just looked at your By: vizteck (10/01/2010 - 03:22)
  • Still No Good By: alexmalka@detografx.com (09/30/2010 - 12:54)
  • Still No Good By: alexmalka@detografx.com (09/30/2010 - 12:54)
  • All Attibute show no mater if i enable or disable them By: alexmalka@detografx.com (09/28/2010 - 15:30)
  • [quote] Also I think this is By: mpkpm (09/28/2010 - 05:35)
  • Re: Chained Attributes and Options By: mpkpm (09/28/2010 - 03:55)
  • Hi, I could remove the By: mpkpm (09/27/2010 - 13:08)
  • Hi, I am able to hide the By: mpkpm (09/27/2010 - 03:05)
  • Hi folks I too cannot By: aireworth (09/24/2010 - 12:29)
  • Re: Chained Attributes and Options By: archer007 (09/23/2010 - 20:42)
  • Cano won't work By: archer007 (09/23/2010 - 15:45)
  • Re: Chained Attributes and Options By: mpkpm (09/23/2010 - 09:28)
  • No White Screen By: oncreative (09/23/2010 - 08:49)
  • Active By: vizteck (09/23/2010 - 05:43)
  • Re: Chained Attributes and Options By: robbie (09/22/2010 - 22:38)
  • How do I actually use this module? By: archer007 (09/22/2010 - 17:28)
  • Ver 1.2 fails to update price change from dependant attribute By: aireworth (09/19/2010 - 10:51)
  • Names rather than Labels for selecting dependant attribute By: aireworth (09/19/2010 - 10:45)
  • Re: Chained Attributes and Options By: fehin (09/15/2010 - 10:28)
  • Select Boxes vs. Check Boxes By: ixlr8 (09/06/2010 - 16:43)
  • Attribute Label Submit Bug By: oncreative (08/31/2010 - 13:10)
  • Re: Chained Attributes and Options By: oncreative (08/31/2010 - 12:56)
  • It's Working By: oncreative (08/30/2010 - 09:49)
  • Re: Chained Attributes and Options By: oncreative (08/30/2010 - 06:06)
  • Got past all the bugs but still doesnt work By: oncreative (08/24/2010 - 07:09)
  • Re: Chained Attributes and Options By: scot.self (07/09/2010 - 01:10)
  • Have to delete a point space in first line of uc_cano.module By: Yuri (07/01/2010 - 10:55)
  • Not compatible with Boost module 6.x-1.18 By: Yuri (07/01/2010 - 10:24)