So currently have enabled in WooCommerce a custom Ajax add to cart via admin that allows me to add custom additional data as follows:
$cart->add_to_cart($product_id , 1, 0, $variation, array('tmcartepo'=>$extra_options_data ) );
And it works nicely.
But the problem is, I need to set 2 (two) arrays of custom additional data on add_to_cart().
Any help is much appreciated.
Basically, this site has Product designer and extra custom fields for products, all managed by separate plugins. My task is to create single product reorder in my account. So, I want to add new product to cart and set two different arrays with metadata for that product.