Reduce the calls to wpsc_product_has_variations

minor whitespace corrections