Assign patterns to products