changing product/variant api layout
add complete function call to $api
Merge remote-tracking branch 'origin/master'