I have a process which needs to node_load/node_save the checkout node between the time you add to cart and check out.
I believe the nodeapi 'update' operation may be blanking out the $node->attributes.
The solution is to set $node->attributes in the nodeapi 'load' operation.
Patch attached in the next comment.
This may actually solve some of the other 3rd-party module incompatibilities. I'm just guessing though.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | uc_node_checkout-attribute_blanking_on_node_save-1369790-2.patch | 1.26 KB | stewart.adam |
| #1 | attribute_blanking_on_node_save-1369790-1.patch | 862 bytes | millenniumtree |
Comments
Comment #1
millenniumtreeAdditionally, this bug also prevents adjustments and alternate skus from getting into the order.
Patch explained:
Pull cart attribute data from uc_cart_products table
Load the attributes into the node
Note that once the product is checked out, the attribute data is loaded a different way
This patch http://drupal.org/node/1131406 was also useful for me to keep the nodes around after checking out.
Comment #2
stewart.adam commentedI've experienced this issue as well. Attached patch makes a few more changes: