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

zid.store.product.getReviews(product_id, page).then(function (response) {
	
})

addReview function:

parameters:

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

comment

rating

is_anonymous

return: promise

zid.store.cart.addProduct(id, comment, rating, is_anonymous).then(function (response) {
	
})

// product_id can be passed from onclick function

Last updated

Was this helpful?