Ajax upload files with custom item data
-
Hi,
My website use custom “add_to_cart” function because i need to pass custom data for products. But when i am using it, i am not getting[dnd-wc-file-upload]
array in my cart item variable.This is the WooCommerce function i use to push new product to the cart:
WC()->cart->add_to_cart($product_id, $quantity, $variation_id, $variation, $cart_item_data);
Can you help me and tell what should i do to get array with files i uploaded to product?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Ajax upload files with custom item data’ is closed to new replies.