Start to Test this code as a WP Plugin on a woocommerce local site. lots of edits