diff --git a/components/AppsComponent/CheckoutData/page.jsx b/components/AppsComponent/CheckoutData/page.jsx index 5fd897a..2b6f19e 100644 --- a/components/AppsComponent/CheckoutData/page.jsx +++ b/components/AppsComponent/CheckoutData/page.jsx @@ -129,59 +129,86 @@ const CheckoutData = () => {
-

آدس ها

+

آدرس ها

-
CTX.setBottomSheetAddressOpen(true)} >

افزودن آدرس جدید

-
+
*/}
- {addressData.map((e, index) => ( -
setAddressId(index)} - key={index} - > -
- 0 ? ( + <> + {addressData.map((e, index) => ( +
setAddressId(index)} + className={`flex rtl justify-between cursor-pointer mx-2 relative ${ + addressId == index + ? "border-2 !border-green-600 rounded-lg bg-green-50" + : "" + }`} > - - - -
-
-

{e.address}

+
+
+ + + + +
+
+

+ {" "} + {e.address}{" "} +

+
+
+ +
+
+ ))} + + ) : ( +
+
+
CTX.setBottomSheetAddressOpen(true)} + > + افزودن آدرس +{" "} +
- ))} + )}

زمان و نحوه ارسال

@@ -214,56 +241,59 @@ const CheckoutData = () => {
{shippingData?.map((e, index) => (
handleShippingID(index)} + className={`flex rtl justify-between cursor-pointer mx-2 ${ shippingId == index ? "border-2 !border-green-600 rounded-lg bg-green-50" : "" }`} - onClick={() => handleShippingID(index)} - key={index} > -
- - - - -
-
-

- {e.name}{" "} -

-

- {" "} - حداکثر - - روز کاری - | هزینه ارسال - - هزار تومان -

+
+
+ + + + +
+
+

+ {e.name}{" "} +

+

+ {" "} + هزینه ارسال + + هزار تومان +

+
+ +
))}
@@ -452,7 +482,7 @@ const CheckoutData = () => {

diff --git a/components/AppsComponent/ProductData/page.jsx b/components/AppsComponent/ProductData/page.jsx index 446ca30..c8f7432 100644 --- a/components/AppsComponent/ProductData/page.jsx +++ b/components/AppsComponent/ProductData/page.jsx @@ -234,9 +234,9 @@ const ProductData = ({ params, data }) => {
-
+
{ @@ -250,7 +250,7 @@ const ProductData = ({ params, data }) => {

مشخصات

{ @@ -261,7 +261,7 @@ const ProductData = ({ params, data }) => {

روش استفاده

{ @@ -272,7 +272,7 @@ const ProductData = ({ params, data }) => {

نقد و بررسی

{ diff --git a/components/AppsComponent/RootData/page.jsx b/components/AppsComponent/RootData/page.jsx index d605c99..58560d7 100644 --- a/components/AppsComponent/RootData/page.jsx +++ b/components/AppsComponent/RootData/page.jsx @@ -13,11 +13,11 @@ import "react-toastify/dist/ReactToastify.css"; import "swiper/css"; import "../../../style/fontiran.css"; import "../../../style/globals.css"; -import Goftino from "plugins/Goftino/page"; import { useRouter } from "next/navigation"; import NextTopLoader from "nextjs-toploader"; -import Yektanet from "plugins/Goftino/page"; import SideBarNavBarMobile from "@comp/Navbar/SideBarNavBarMobile/page"; +import Goftino from "plugins/Goftino/page"; +import Yektanet from "plugins/Yektanet/page"; const RootData = ({ children }) => { const [cart, setCart] = useState([]); @@ -76,7 +76,7 @@ const RootData = ({ children }) => { let updatedCart; if (existingItem) { // If the item is already in the cart, update its count - if (existingItem.count < maxOrderCount) { + if (existingItem.count < maxOrderCount || maxOrderCount == 0) { updatedCart = prevCart.map((item) => item.id === id ? { ...item, count: item.count + 1 } : item ); @@ -85,9 +85,9 @@ const RootData = ({ children }) => { toast.error( ` نمیتوانید بیشتراز - + ${" "} ${maxOrderCount} - + ${" "} عدد ثبت کنید `, { position: "bottom-right", diff --git a/components/Footer/page.jsx b/components/Footer/page.jsx index c533b9d..76396c7 100644 --- a/components/Footer/page.jsx +++ b/components/Footer/page.jsx @@ -172,31 +172,9 @@ const Footer = () => { قیمت کالا ، نیاز افراد رو برطرف کنیم و تجربه جدیدی از لذت خرید به وجود بیاریم.

- {/* -
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
*/} -
-
+
+
-
+
+ +
+
+ + + + + +
+
+ + + + + + + + + + +
+
+ + + +
+ +
+ + + +
diff --git a/plugins/Goftino/page.jsx b/plugins/Goftino/page.jsx index 8e780b7..317ea72 100644 --- a/plugins/Goftino/page.jsx +++ b/plugins/Goftino/page.jsx @@ -1,18 +1,9 @@ import Script from "next/script"; -export default function Yektanet() { - const getYektanet = () => { +export default function Goftino() { + const getGoftiono = () => { return { - __html: ` !function (t, e, n) { - t.yektanetAnalyticsObject = n, t[n] = t[n] || function () { - t[n].q.push(arguments) - }, t[n].q = t[n].q || []; - var a = new Date, r = a.getFullYear().toString() + "0" + a.getMonth() + "0" + a.getDate() + "0" + a.getHours(), - c = e.getElementsByTagName("script")[0], s = e.createElement("script"); - s.id = "ua-script-rqSC1axy"; s.dataset.analyticsobject = n; - s.async = 1; s.type = "text/javascript"; - s.src = "https://cdn.yektanet.com/rg_woebegone/scripts_v3/rqSC1axy/rg.complete.js?v=" + r, c.parentNode.insertBefore(s, c) - }(window, document, "yektanet"); + __html: ` !function(){var i="Gk1Yld",a=window,d=document;function g(){var g=d.createElement("script"),s="https://www.goftino.com/widget/"+i,l=localStorage.getItem("goftino_"+i);g.async=!0,g.src=l?s+"?o="+l:s;d.getElementsByTagName("head")[0].appendChild(g);}"complete"===d.readyState?g():a.attachEvent?a.attachEvent("onload",g):a.addEventListener("load",g,!1);}(); `, }; }; @@ -21,7 +12,7 @@ export default function Yektanet() { <>