--- amazon_store.module.orig	2011-10-26 18:09:13.000000000 -0400
+++ amazon_store.module.new	2012-02-21 12:43:21.000000000 -0500
@@ -922,7 +922,11 @@
       // For each sub-asin, record the values of its dimensions
       $curPtr = & $itemsByAttribute;
       foreach ($dimensions as $otherDimension) {
-        $attr = (string) $variation->ItemAttributes->$otherDimension;
+	foreach ($variation->VariationAttributes->VariationAttribute as $attribute) {
+	  if ($attribute->Name == $otherDimension) {
+	    $attr = (string) $attribute->Value;
+	  }
+	}
         if (empty($curPtr[$attr])) {
           $curPtr[$attr] = array();
         }
