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 (