kilbot / WooCommerce-POS

:bangbang: All development now at https://github.com/wcpos.
http://wcpos.com
GNU General Public License v3.0
353 stars 125 forks source link

Question about filtering/picking product data passed to line item #174

Open thomasmery opened 7 years ago

thomasmery commented 7 years ago

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