Product

fetchAll function:

parameters:

catId category id

query

return: promise

zid.store.product.fetchAll(catId, query).then(function (response) {
		
})

fetch function:

parameters:

id product id or variant id

return: promise

zid.store.product.fetch(id).then(function (response) {
	
})

getReviews function:

parameters:

product_id: main product id , don't use product.selected_product.id

page

return: promise

addReview function:

parameters:

id : main product id , don't use product.selected_product.id

comment

rating

is_anonymous

return: promise

Last updated

Was this helpful?