Advertisement
Guest User

Untitled

a guest
Sep 6th, 2017
473
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. }, function (dataObject) {
  32.  
  33. var data = $.parseJSON(dataObject);
  34. window.alldata = data.getWishlistForCustomer;
  35. });
  36.  
  37.  
  38. *************************************************
  39. 2.Add product in wishlist
  40. *************************************************
  41.  
  42. ---------------API--------------------
  43. Add product in wishlist
  44.  
  45.  
  46. ----Parameter----------
  47. action*
  48. shopid*
  49. email*
  50. pid*
  51. vid*
  52. wid*
  53.  
  54. *all are mandatory
  55.  
  56. shopid = swl.shopid;//get shopid
  57. action = addProductInWishlist // put as string
  58. email
  59. vid = by default -1
  60. wid = by default -1
  61. pid=product id
  62.  
  63. -----------------URL----------------------------
  64. URL="/apps/johnjacobseyewear/interfaces/interfaceWishlist.php"
  65.  
  66.  
  67. -------------Example-------------------
  68.  
  69.  
  70. $.get("/apps/johnjacobseyewear/interfaces/interfaceWishlist.php", {
  71. action: "addProductInWishlist",
  72. shopid: "1",
  73. pid:"9792447948",
  74. vid:"-1",
  75. wid:"-1"
  76.  
  77. }, function (dataObject) {
  78.  
  79. var data = $.parseJSON(dataObject);
  80. if(data.status==0){
  81.  
  82. }
  83.  
  84. });
  85.  
  86. **************************************
  87. 3.How to remove product from wishlist
  88. ***************************************
  89.  
  90. ---------------API--------------------
  91. Remove Wishlist
  92.  
  93.  
  94. ----Parameter----------
  95. action*
  96. shopid*
  97. pid*
  98. email*
  99. *all are mandatory
  100.  
  101. pid//product id
  102. shopid
  103. action = deleteWishList // put as string
  104. email
  105.  
  106. -----------------URL----------------------------
  107. URL="/apps/johnjacobseyewear/interfaces/interfaceWishlist.php"
  108.  
  109.  
  110. -------------Example-------------------
  111.  
  112. $.get("/apps/johnjacobseyewear/interfaces/interfaceWishlist.php", {
  113. action: "removeProductFromWishlist",
  114. shopid: "1",
  115. pid:"9792447948",
  116.  
  117. }, function (dataObject) {
  118.  
  119. var data = $.parseJSON(dataObject);
  120. if(data.status=="0"){
  121. }else{
  122. }
  123.  
  124. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement