When using the new 'modify node fields' action to change CCK fields or other node parameters on an Ubercart product node, the product's existing dimensions are deleted. Tested and reproduced on production and sandbox sites.

Drupal 6.14
Views 2.8
VBO 1.8 or 1.x-dev (Dec. 14 2009)

I wish that UC's fields were all CCK fields, which seem to work OK with this action. This VBO action would be a huge benefit when updating multiple nodes on a site with hundreds of products, but is completely unusable as of now. Seems like it needs to ignore certain columns on product node rows when updating the DB.

Thanks for your help in looking into this.

Comments

infojunkie’s picture

Thanks for your report. I'll look into this starting Jan 3rd. Happy new year!

infojunkie’s picture

In the mean time, I'd be grateful if you could post the simplest steps needed to reproduce your error. Please note that I am not familiar with Ubercart. Thanks!

sgriffin’s picture

node_save($object);

Im just learning to manipulate nodes myself, your scripts you can re-insert the data after the node save using the following
And you'll probably need to set your $object->height, length ,width etc since they are all 0 to begin with.
db_query("UPDATE {uc_products} SET length = ".$object->length.",width = ".$object->width.",height = ".$object->height." WHERE nid =$object->nid",$object->model,$object->nid);

m.stenta’s picture

I'm having this problem as well. Whenever actions are performed on Ubercart product nodes, the length, width, and height attributes are reset to 0. Not good.

My specific example involved using the "Modify node taxonomy terms" action on product nodes. It successfully added the term I wanted, but erased dimensions.

I'm looking through the VBO code to see why the dimensions aren't being preserved up to the node_save() call. Any insight from the someone who knows this code would be appreciated.

m.stenta’s picture

Title: 'Modify node fields' action removes Ubercart product dimensions » Ubercart product dimensions get erased
Version: 6.x-1.x-dev » 6.x-1.8

I meant to change the title and version that this issue applies to. I'm using the 1.8 release on Ubercart 2.2.

m.stenta’s picture

Status: Active » Closed (duplicate)

This is an Ubercart issue, and a dupe of: http://drupal.org/node/685698

infojunkie’s picture

Thanks mstenta for taking care of this :-)