Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ***************************
- 1.How to get wishlist data
- ***************************
- ------API---------
- getWishlistDetails
- ----Parameter----------
- action*
- shopid*
- email*
- *all are mandatory
- email :- You can get email by cookieData
- shopid = swl.shopid;//get shopid
- action = getWishlistDetails // put as string
- -----------------URL----------------------------
- URL="/apps/johnjacobseyewear/interfaces/interfaceWishlist.php"
- ---------------Example-------------------------------
- $.get("/apps/johnjacobseyewear/interfaces/interfaceWishlist.php", {
- action: "getWishlistDetails",
- shopid: "1",
- email:"shubhamgupta947@gmail.com"
- }, function (dataObject) {
- var data = $.parseJSON(dataObject);
- window.alldata = data.getWishlistForCustomer;
- });
- *************************************************
- 2.Add product in wishlist
- *************************************************
- ---------------API--------------------
- Add product in wishlist
- ----Parameter----------
- action*
- shopid*
- email*
- pid*
- vid*
- wid*
- *all are mandatory
- shopid = swl.shopid;//get shopid
- action = addProductInWishlist // put as string
- email
- vid = by default -1
- wid = by default -1
- pid=product id
- -----------------URL----------------------------
- URL="/apps/johnjacobseyewear/interfaces/interfaceWishlist.php"
- -------------Example-------------------
- $.get("/apps/johnjacobseyewear/interfaces/interfaceWishlist.php", {
- action: "addProductInWishlist",
- shopid: "1",
- pid:"9792447948",
- email:"krunal@gmail.com",
- vid:"-1",
- wid:"-1"
- }, function (dataObject) {
- var data = $.parseJSON(dataObject);
- if(data.status==0){
- }
- });
- **************************************
- 3.How to remove product from wishlist
- ***************************************
- ---------------API--------------------
- Remove Wishlist
- ----Parameter----------
- action*
- shopid*
- pid*
- email*
- *all are mandatory
- pid//product id
- shopid
- action = deleteWishList // put as string
- email
- -----------------URL----------------------------
- URL="/apps/johnjacobseyewear/interfaces/interfaceWishlist.php"
- -------------Example-------------------
- $.get("/apps/johnjacobseyewear/interfaces/interfaceWishlist.php", {
- action: "removeProductFromWishlist",
- shopid: "1",
- pid:"9792447948",
- email:"shubhamgupta947@gmail.com"
- }, function (dataObject) {
- var data = $.parseJSON(dataObject);
- if(data.status=="0"){
- }else{
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement