diff --git a/components/Yamaha/Product/Accessories_Detail.js b/components/Yamaha/Product/Accessories_Detail.js index d35d503..d56fb5f 100644 --- a/components/Yamaha/Product/Accessories_Detail.js +++ b/components/Yamaha/Product/Accessories_Detail.js @@ -101,7 +101,7 @@ const ProductDetails = function ({ detailaccessories, backend, user, ...props }) product_name: detailproduct[0].name, } setFormValue(newformValue) - console.log(JSON.stringify(newformValue)); + // console.log(JSON.stringify(newformValue)); const response = await fetch( "/api/transaction/AddToCart", { @@ -114,7 +114,7 @@ const ProductDetails = function ({ detailaccessories, backend, user, ...props }) ); if (response.ok) { var res = await response.json(); - console.log("cek response :", res); + // console.log("cek response :", res); if (res["STATUS"] === 1) { res["DATA"]["cart"]; swal("Produk Berhasil Ditambah ke Keranjang", "Silahkan Cek Keranjang Belanja Anda", "success"); @@ -181,7 +181,7 @@ const ProductDetails = function ({ detailaccessories, backend, user, ...props })
*/} - + {/* */} diff --git a/components/Yamaha/Product/Apparel_Detail.js b/components/Yamaha/Product/Apparel_Detail.js index 3d661cc..d4535b3 100644 --- a/components/Yamaha/Product/Apparel_Detail.js +++ b/components/Yamaha/Product/Apparel_Detail.js @@ -101,7 +101,7 @@ const ProductDetails = function ({ detailapparel, backend, user, ...props }) { product_name: detailproduct[0].name, } setFormValue(newformValue) - console.log(JSON.stringify(newformValue)); + // console.log(JSON.stringify(newformValue)); const response = await fetch( "/api/transaction/AddToCart", { @@ -114,7 +114,7 @@ const ProductDetails = function ({ detailapparel, backend, user, ...props }) { ); if (response.ok) { var res = await response.json(); - console.log("cek response :", res); + // console.log("cek response :", res); if (res["STATUS"] === 1) { res["DATA"]["cart"]; swal("Produk Berhasil Ditambah ke Keranjang", "Silahkan Cek Keranjang Belanja Anda", "success"); @@ -181,7 +181,7 @@ const ProductDetails = function ({ detailapparel, backend, user, ...props }) {
*/} - + {/* */}
diff --git a/components/Yamaha/Product/Helmet_Detail.js b/components/Yamaha/Product/Helmet_Detail.js index dfd27e1..a0b5fa6 100644 --- a/components/Yamaha/Product/Helmet_Detail.js +++ b/components/Yamaha/Product/Helmet_Detail.js @@ -101,7 +101,7 @@ const ProductDetails = function ({ detailhelmet, backend, user, ...props }) { product_name: detailproduct[0].name, } setFormValue(newformValue) - console.log(JSON.stringify(newformValue)); + // console.log(JSON.stringify(newformValue)); const response = await fetch( "/api/transaction/AddToCart", { @@ -114,7 +114,7 @@ const ProductDetails = function ({ detailhelmet, backend, user, ...props }) { ); if (response.ok) { var res = await response.json(); - console.log("cek response :", res); + // console.log("cek response :", res); if (res["STATUS"] === 1) { res["DATA"]["cart"]; swal("Produk Berhasil Ditambah ke Keranjang", "Silahkan Cek Keranjang Belanja Anda", "success"); @@ -181,7 +181,7 @@ const ProductDetails = function ({ detailhelmet, backend, user, ...props }) {
*/} - + {/* */}
diff --git a/components/Yamaha/Product/Motor.js b/components/Yamaha/Product/Motor.js index 8f37fe2..275e3e5 100644 --- a/components/Yamaha/Product/Motor.js +++ b/components/Yamaha/Product/Motor.js @@ -9,7 +9,7 @@ import NumberFormat from 'react-number-format'; const ProductCard = function ({ product, backend, user, ...props }) { const products = useSelector((state) => state.products) - console.log(product) + // console.log(product) const Product = product.map((data) => { return ( diff --git a/components/Yamaha/Product/Motor_Detail.js b/components/Yamaha/Product/Motor_Detail.js index b7609e4..c5ded3c 100644 --- a/components/Yamaha/Product/Motor_Detail.js +++ b/components/Yamaha/Product/Motor_Detail.js @@ -119,7 +119,7 @@ const ProductDetails = function ({ detailproduct, backend, user, ...props }) { // product_img: detailproduct[0].backend.img[0], } setFormValue(newformValue) - console.log(JSON.stringify(newformValue)); + // console.log(JSON.stringify(newformValue)); const response = await fetch( "/api/transaction/AddToCart", { @@ -132,7 +132,7 @@ const ProductDetails = function ({ detailproduct, backend, user, ...props }) { ); if (response.ok) { var res = await response.json(); - console.log("cek response :", res); + // console.log("cek response :", res); if (res["STATUS"] === 1) { res["DATA"]["cart"]; swal("Produk Berhasil Ditambah ke Keranjang", "Silahkan Cek Keranjang Belanja Anda", "success"); @@ -188,7 +188,7 @@ const ProductDetails = function ({ detailproduct, backend, user, ...props }) {
- + {/* */}
diff --git a/components/Yamaha/Product/Sparepart.js b/components/Yamaha/Product/Sparepart.js index c0a2b3a..bf330fa 100644 --- a/components/Yamaha/Product/Sparepart.js +++ b/components/Yamaha/Product/Sparepart.js @@ -14,7 +14,7 @@ import NumberFormat from 'react-number-format'; const ProductCard = function ({ ygp, yamalube, helmet, apparel, accessories, backend, ...props }) { const products = useSelector((state) => state.products) - console.log(ygp) + // console.log(ygp) const YGP = ygp.map((data) => { return ( diff --git a/components/Yamaha/Product/Yamalube_Detail.js b/components/Yamaha/Product/Yamalube_Detail.js index 97d0fc4..cfa9f87 100644 --- a/components/Yamaha/Product/Yamalube_Detail.js +++ b/components/Yamaha/Product/Yamalube_Detail.js @@ -101,7 +101,7 @@ const ProductDetails = function ({ detailyamalube, backend, user, ...props }) { product_name: detailproduct[0].name, } setFormValue(newformValue) - console.log(JSON.stringify(newformValue)); + // console.log(JSON.stringify(newformValue)); const response = await fetch( "/api/transaction/AddToCart", { @@ -114,7 +114,7 @@ const ProductDetails = function ({ detailyamalube, backend, user, ...props }) { ); if (response.ok) { var res = await response.json(); - console.log("cek response :", res); + // console.log("cek response :", res); if (res["STATUS"] === 1) { res["DATA"]["cart"]; swal("Produk Berhasil Ditambah ke Keranjang", "Silahkan Cek Keranjang Belanja Anda", "success"); @@ -181,7 +181,7 @@ const ProductDetails = function ({ detailyamalube, backend, user, ...props }) {
*/} - + {/* */}
diff --git a/components/Yamaha/Product/Ygp_Detail.js b/components/Yamaha/Product/Ygp_Detail.js index edc98ea..a8f0cb8 100644 --- a/components/Yamaha/Product/Ygp_Detail.js +++ b/components/Yamaha/Product/Ygp_Detail.js @@ -36,7 +36,7 @@ const options = { }; const ProductDetails = function ({ detailygp, backend, user, ...props }) { - console.log(detailygp); + // console.log(detailygp); const [formValue, setFormValue] = React.useState({ product_img: "", @@ -102,7 +102,7 @@ const ProductDetails = function ({ detailygp, backend, user, ...props }) { product_name: detailproduct[0].name, } setFormValue(newformValue) - console.log(JSON.stringify(newformValue)); + // console.log(JSON.stringify(newformValue)); const response = await fetch( "/api/transaction/AddToCart", { @@ -115,7 +115,7 @@ const ProductDetails = function ({ detailygp, backend, user, ...props }) { ); if (response.ok) { var res = await response.json(); - console.log("cek response :", res); + // console.log("cek response :", res); if (res["STATUS"] === 1) { res["DATA"]["cart"]; swal("Produk Berhasil Ditambah ke Keranjang", "Silahkan Cek Keranjang Belanja Anda", "success"); @@ -182,7 +182,7 @@ const ProductDetails = function ({ detailygp, backend, user, ...props }) {
*/} - + {/* */}
diff --git a/components/Yamaha/Shop/Cart.js b/components/Yamaha/Shop/Cart.js index bcb23da..2f6ba67 100644 --- a/components/Yamaha/Shop/Cart.js +++ b/components/Yamaha/Shop/Cart.js @@ -65,6 +65,8 @@ const CartContent = function ({ backend, cart_product, ...props }) { return uuid; } + // console.log(GenerateID()); + return (
{ @@ -75,7 +77,7 @@ const CartContent = function ({ backend, cart_product, ...props }) { product_color: cart_product[0].product_color, } setFormValue(newformValue) - console.log(JSON.stringify(newformValue)); + // console.log(JSON.stringify(newformValue)); const response = await fetch( "/api/transaction/AddToCheckout", { @@ -88,7 +90,7 @@ const CartContent = function ({ backend, cart_product, ...props }) { ); if (response.ok) { var res = await response.json(); - console.log("cek response :", res); + // console.log("cek response :", res); if (res["STATUS"] === 1) { res["DATA"]["checkout"]; swal("Produk Berhasil Ditambah ke Keranjang", "Silahkan Cek Keranjang Belanja Anda", "success"); @@ -187,7 +189,7 @@ const CartContent = function ({ backend, cart_product, ...props }) { ...formValue, product_total: e.target.value.toString(), }) - console.log("isi target value : ", e.target.value); + // console.log("isi target value : ", e.target.value); }} /> diff --git a/components/Yamaha/Shop/Checkout.js b/components/Yamaha/Shop/Checkout.js index 772510f..da63e9a 100644 --- a/components/Yamaha/Shop/Checkout.js +++ b/components/Yamaha/Shop/Checkout.js @@ -60,7 +60,7 @@ const CheckoutContent = function ({ backend, checkout_product, user, provinces, product_price: checkout_product[0].product_total, } setFormValue(newformValue) - console.log(JSON.stringify(newformValue)); + // console.log(JSON.stringify(newformValue)); const response = await fetch( "/api/transaction/create", { @@ -73,7 +73,7 @@ const CheckoutContent = function ({ backend, checkout_product, user, provinces, ); if (response.ok) { var res = await response.json(); - console.log("cek response :", res); + // console.log("cek response :", res); if (res["STATUS"] === 1) { res["DATA"]["transaction"]; swal("Produk Berhasil Ditambah ke Keranjang", "Silahkan Cek Keranjang Belanja Anda", "success"); diff --git a/pages/yamaha/index.js b/pages/yamaha/index.js index 89f2f61..740403b 100644 --- a/pages/yamaha/index.js +++ b/pages/yamaha/index.js @@ -58,7 +58,7 @@ export async function getServerSideProps(context) { if (res["STATUS"] === 1) { dealers = res["DATA"]["dealers"]; } - console.log(userObj); + // console.log(userObj); return { props: { dealers, backend, user }, // will be passed to the page component as props