add REF to product_sale_element loop and fix product tempalte