WooCommerce-POS icon indicating copy to clipboard operation
WooCommerce-POS copied to clipboard

Question about filtering/picking product data passed to line item

Open thomasmery opened this issue 7 years ago • 0 comments

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

thomasmery avatar Jun 07 '17 13:06 thomasmery