Advertisement
Guest User

Untitled

a guest
Sep 6th, 2017
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. ***************************
  2. 1.How to get wishlist data
  3. ***************************
  4.  
  5. ------API---------
  6. getWishlistDetails
  7.  
  8.  
  9. ----Parameter----------
  10. action*
  11. shopid*
  12. email*
  13.  
  14. *all are mandatory
  15.  
  16. email :- You can get email by cookieData
  17.  
  18. shopid = swl.shopid;//get shopid
  19.  
  20. action = getWishlistDetails // put as string
  21.  
  22. -----------------URL----------------------------
  23. URL="/apps/johnjacobseyewear/interfaces/interfaceWishlist.php"
  24.  
  25.  
  26. ---------------Example-------------------------------
  27.  
  28. $.get("/apps/johnjacobseyewear/interfaces/interfaceWishlist.php", {
  29. action: "getWishlistDetails",
  30. shopid: "1",
  31. email:"shubhamgupta947@gmail.com"
  32. }, function (dataObject) {
  33.  
  34. var data = $.parseJSON(dataObject);
  35. window.alldata = data.getWishlistForCustomer;
  36. });
  37.  
  38.  
  39. *************************************************
  40. 2.Add product in wishlist
  41. *************************************************
  42.  
  43. ---------------API--------------------
  44. Add product in wishlist
  45.  
  46.  
  47. ----Parameter----------
  48. action*
  49. shopid*
  50. email*
  51. pid*
  52. vid*
  53. wid*
  54.  
  55. *all are mandatory
  56.  
  57. shopid = swl.shopid;//get shopid
  58. action = addProductInWishlist // put as string
  59. email
  60. vid = by default -1
  61. wid = by default -1
  62. pid=product id
  63.  
  64. -----------------URL----------------------------
  65. URL="/apps/johnjacobseyewear/interfaces/interfaceWishlist.php"
  66.  
  67.  
  68. -------------Example-------------------
  69.  
  70.  
  71. $.get("/apps/johnjacobseyewear/interfaces/interfaceWishlist.php", {
  72. action: "addProductInWishlist",
  73. shopid: "1",
  74. pid:"9792447948",
  75. email:"krunal@gmail.com",
  76. vid:"-1",
  77. wid:"-1"
  78.  
  79. }, function (dataObject) {
  80.  
  81. var data = $.parseJSON(dataObject);
  82. if(data.status==0){
  83.  
  84. }
  85.  
  86. });
  87.  
  88. **************************************
  89. 3.How to remove product from wishlist
  90. ***************************************
  91.  
  92. ---------------API--------------------
  93. Remove Wishlist
  94.  
  95.  
  96. ----Parameter----------
  97. action*
  98. shopid*
  99. pid*
  100. email*
  101. *all are mandatory
  102.  
  103. pid//product id
  104. shopid
  105. action = deleteWishList // put as string
  106. email
  107.  
  108. -----------------URL----------------------------
  109. URL="/apps/johnjacobseyewear/interfaces/interfaceWishlist.php"
  110.  
  111.  
  112. -------------Example-------------------
  113.  
  114. $.get("/apps/johnjacobseyewear/interfaces/interfaceWishlist.php", {
  115. action: "removeProductFromWishlist",
  116. shopid: "1",
  117. pid:"9792447948",
  118. email:"shubhamgupta947@gmail.com"
  119.  
  120. }, function (dataObject) {
  121.  
  122. var data = $.parseJSON(dataObject);
  123. if(data.status=="0"){
  124. }else{
  125. }
  126.  
  127. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement