WooCommerce-POS
WooCommerce-POS copied to clipboard
Question about filtering/picking product data passed to line item
Hi Paul,
was in need to pass additional product data to the line item and was wondering if the product fields white-list was there for performance reasons
in 0.4 you pick product attributes from the white list here https://github.com/kilbot/WooCommerce-POS/blob/0.4/assets/js/src/entities/cart/collection.js#L112
and in 0.5 here I believe https://github.com/kilbot/WooCommerce-POS/blob/master/assets/js/src/entities/cart/models/product.js#L102
I'm just curious about the reason
I ended up adding data to the product name and this should work for my case
thanks