Custom fields on products complete as well as working permalink structure for custom post types.