php - Woocommerce - add serial to products in orders -


i looking way add serial number each sold product, in order display in woocommerce. need manual solution, s/n of sent product added order before package sent. have tried show on following picture:

possibility of adding serial

originally, thought implementing product meta (without knowing how) realized product metas can altered when order set on hold , not while processing.

any ideas aboout how proceed? already!

not sure trying achieve if need serial number each product (just display in cart page) can add data attribute each listing recall in checkout area , have display using hooks. how want process serial number? purely display on checkout? assuming is...

add_filter( 'woocommerce_cart_item_name', recall_serial_number, 10, 2 );  function recall_serial_number() {     $serial = $item_data->get_attributes( 'serial-number' );         echo $serial; } 

give code whirl if want display serial on cart page without processing further. make sure name of attribute "serial number" not tested should work.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -