Skip to main content

Appmaker Hooks

Appmaker built-in hooks.

useCartProduct

This hook is used to get the cart product data.

useCart

This hook is used to get the cart data.

useProductDetail

This hook is used to get the product detail data.

useProductListItem

This hook is used to get the product list item data.

useProductVariations

This hook is used to get the product variations in product list.

useProductOptions

This hook is used to get the product variations in productDetail page.

useDiscount

This hook is used to get the discount data.

useOtpLogin

This hook is used to implement OTP login in your app.

useUserProfile

This hook is used to get the user profile data.

useUser

This hook is used to get the user data.

useReviewSummary

This hook is used to get the review summary data.

useReviewListItem

This hook is used to retrieve the data for a review item and is used in the review list item component.

useAddReview

This hook is used to add a review.

useOrderLineItem

This hook is used to get the order line item data.

useProductImages

This hook is used to get the product images and handle the image swiper actions. Used in the product detail page.

useWishlistProductIds

This hook is used to get the wishlist product ids.

useWishlistProducts

This hook is used to get the wishlist products.

useAddress

This hook is used to get the address data.

useAddressItem

This hook is used to get the address item data.

useAddAddress

This hook is used to add an address.

useProductWishList

This hook is used to add or remove products from wishlist.

useRegister

This hook is used to get handle register functionality.

useLogin

This hook is used to get handle login functionality.

useForgotPassword

This hook allows you to send a reset password email to a customer.

useNavigationActions

This hook allows you to get the navigation actions.

usePage

This hook is used to get the page data.

useCartActions

This hook is used to add multiple items to the cart.

useOrders

This hook is used to get the order data of the user.

useProducts

This hook is used to get the products data by passing the query params.

useShopifyProduct

This hook is used to get the product data in a specific format by passing the product node.

useLocalCart

This hook is used to get the local cart data. You can use this hook to get cart data outside the cart page.

useProductCartQuantity

This hook is used to get the product cart quantity data.

useScrollToBlock

This hook is used to scroll to a specific block on the page.

useReviewList

This hook is used to get list of reviews