How to assign products to categories ?

A post was split to a new topic: How to load the product’s categories on a product loading?