Code: Need cart item id / order item id for each document
-
There doesn’t seem to be any record on a document of the cart item key or the order item id (not to be confused with the product id for the order item).
Please add the following line to record
$cart_item['key']
with the cloned document.woocommerce-digital-signature/admin/woocommerce-esig-admin.php:184
WP_E_Sig()->meta->add( $agreement_id, 'esig_cart_item_key', $cart_item['key'] );
We are recording additional data from customers as they add the product to their cart, we then use it in the document. When we have multiple of the same document in the cart, we need to distinguish them.
- The topic ‘Code: Need cart item id / order item id for each document’ is closed to new replies.