tabexseriescomponents 0.0.64 → 0.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/dist/index.cjs.js +25023 -16634
  2. package/dist/index.esm.js +25033 -16645
  3. package/dist/index.umd.js +24824 -16437
  4. package/package.json +1 -1
  5. package/src1-10/Contexts/LanguageContext.jsx +347 -0
  6. package/src1-10/Contexts/ProductsCardsSectionContext.jsx +28 -0
  7. package/src1-10/StylesJS/Customstyles.js +235 -0
  8. package/src1-10/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +205 -0
  9. package/src1-10/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +239 -0
  10. package/src1-10/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
  11. package/src1-10/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +169 -0
  12. package/src1-10/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +180 -0
  13. package/src1-10/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
  14. package/src1-10/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
  15. package/src1-10/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +149 -0
  16. package/src1-10/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +271 -0
  17. package/src1-10/TabexComponents/Cards/MenuCard/MenuCard.jsx +546 -0
  18. package/src1-10/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +474 -0
  19. package/src1-10/TabexComponents/Cards/Productcard6/Productcard6.jsx +290 -0
  20. package/src1-10/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
  21. package/src1-10/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +293 -0
  22. package/src1-10/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +278 -0
  23. package/src1-10/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +312 -0
  24. package/src1-10/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +279 -0
  25. package/src1-10/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +293 -0
  26. package/src1-10/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +456 -0
  27. package/src1-10/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +272 -0
  28. package/src1-10/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  29. package/src1-10/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +127 -0
  30. package/src1-10/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +126 -0
  31. package/src1-10/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +292 -0
  32. package/src1-10/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +281 -0
  33. package/src1-10/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
  34. package/src1-10/TabexComponents/Footer/Footer2/Footer2.jsx +381 -0
  35. package/src1-10/TabexComponents/Footer/Footer3/Footer3.jsx +316 -0
  36. package/src1-10/TabexComponents/Footer/Footer4/Footer4.jsx +437 -0
  37. package/src1-10/TabexComponents/Footer/Footer5/Footer5.jsx +488 -0
  38. package/src1-10/TabexComponents/Footer/Footer6/Footer6.jsx +286 -0
  39. package/src1-10/TabexComponents/Footer/Footer7/Footer7.jsx +370 -0
  40. package/src1-10/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +231 -0
  41. package/src1-10/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  42. package/src1-10/TabexComponents/Generalfiles/images/noimage.png +0 -0
  43. package/src1-10/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  44. package/src1-10/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  45. package/src1-10/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  46. package/src1-10/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  47. package/src1-10/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  48. package/src1-10/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  49. package/src1-10/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  50. package/src1-10/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  51. package/src1-10/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  52. package/src1-10/TabexComponents/Generalfiles/images/usflag.png +0 -0
  53. package/src1-10/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  54. package/src1-10/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +722 -0
  55. package/src1-10/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +681 -0
  56. package/src1-10/TabexComponents/Headers/Header4/Header4.jsx +614 -0
  57. package/src1-10/TabexComponents/Headers/Header6/Header6.jsx +666 -0
  58. package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
  59. package/src1-10/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +710 -0
  60. package/src1-10/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +769 -0
  61. package/src1-10/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +666 -0
  62. package/src1-10/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +940 -0
  63. package/src1-10/TabexComponents/Headers/Modernheader/Modernheader.jsx +714 -0
  64. package/src1-10/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +833 -0
  65. package/src1-10/TabexComponents/Headers/Subheader/Subheader.jsx +239 -0
  66. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  67. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
  68. package/src1-10/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +129 -0
  69. package/src1-10/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +153 -0
  70. package/src1-10/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  71. package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
  72. package/src1-10/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +793 -0
  73. package/src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +486 -0
  74. package/src1-10/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
  75. package/src1-10/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
  76. package/src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +512 -0
  77. package/src1-10/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
  78. package/src1-10/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
  79. package/src1-10/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
  80. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
  81. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
  82. package/src1-10/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
  83. package/src1-10/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
  84. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
  85. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
  86. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
  87. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +193 -0
  88. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
  89. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
  90. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +309 -0
  91. package/src1-10/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +260 -0
  92. package/src1-10/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
  93. package/src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +216 -0
  94. package/src1-10/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
  95. package/src1-10/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
  96. package/src1-10/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
  97. package/src1-10/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  98. package/src1-10/TabexComponents/StaticPages/Login/Login.jsx +299 -0
  99. package/src1-10/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
  100. package/src1-10/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1271 -0
  101. package/src1-10/TabexComponents/StaticPages/Policies/Policies.jsx +353 -0
  102. package/src1-10/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1456 -0
  103. package/src1-10/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +209 -0
  104. package/src1-10/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +776 -0
  105. package/src1-10/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
  106. package/src1-10/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +285 -0
  107. package/src1-10/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
  108. package/src1-10/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +606 -0
  109. package/src1-10/assets/images/cod.png +0 -0
  110. package/src1-10/assets/images/egyptflag.png +0 -0
  111. package/src1-10/assets/images/fawry.png +0 -0
  112. package/src1-10/assets/images/payment.png +0 -0
  113. package/src1-10/assets/images/paymob.png +0 -0
  114. package/src1-10/assets/images/paypal.png +0 -0
  115. package/src1-10/assets/images/shoppingcart.png +0 -0
  116. package/src1-10/assets/images/usflag.png +0 -0
  117. package/src1-10/assets/images/visa.png +0 -0
  118. package/src1-10/assets/images/whatsapp.png +0 -0
  119. package/src1-10/button.jsx +40 -0
  120. package/src1-10/index.jsx +179 -0
  121. package/src1-10/styles/Home.module.css +129 -0
  122. package/src1-10/styles/cards/Categorcycard_fullimage.module.css +10 -0
  123. package/src1-10/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  124. package/src1-10/styles/cards/Categorycard_withshapes.module.css +189 -0
  125. package/src1-10/styles/cards/Productcard6.module.css +9 -0
  126. package/src1-10/styles/cards/Productcard_with_circularbg.module.css +137 -0
  127. package/src1-10/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  128. package/src1-10/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  129. package/src1-10/styles/cards/categorycard.module.css +102 -0
  130. package/src1-10/styles/cards/categorycard3.module.css +51 -0
  131. package/src1-10/styles/cards/categorycardwithtext.module.css +40 -0
  132. package/src1-10/styles/cards/productcard_animatedbuttons.module.css +104 -0
  133. package/src1-10/styles/cards/productcard_with_textonhover.module.css +12 -0
  134. package/src1-10/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  135. package/src1-10/styles/general/bootstrap.css +4415 -0
  136. package/src1-10/styles/general/dropdown.css +199 -0
  137. package/src1-10/styles/general/editorbardropdown.module.css +94 -0
  138. package/src1-10/styles/general/filter.module.css +108 -0
  139. package/src1-10/styles/general/form.module.css +273 -0
  140. package/src1-10/styles/general/general.module.css +861 -0
  141. package/src1-10/styles/general/image-gallery.css +481 -0
  142. package/src1-10/styles/general/react-accessible-accordion.module.css +52 -0
  143. package/src1-10/styles/general/react-phone-input-2.module.css +927 -0
  144. package/src1-10/styles/general/scrollbtn.module.css +22 -0
  145. package/src1-10/styles/general/slick.module.css +166 -0
  146. package/src1-10/styles/general/tabs.module.css +110 -0
  147. package/src1-10/styles/general/workplaceeditor.module.css +328 -0
  148. package/src1-10/styles/globals.css +26 -0
  149. package/src1-10/styles/headers/Allinoneheader.module.css +91 -0
  150. package/src1-10/styles/headers/Header7.module.css +50 -0
  151. package/src1-10/styles/headers/Header_threesectionslogocentered.module.css +97 -0
  152. package/src1-10/styles/headers/Sideheader.module.css +108 -0
  153. package/src1-10/styles/headers/classicheaderstyles.module.css +16 -0
  154. package/src1-10/styles/headers/dropdown.css +0 -0
  155. package/src1-10/styles/headers/header4.module.css +175 -0
  156. package/src1-10/styles/headers/header5.module.css +30 -0
  157. package/src1-10/styles/headers/header6.module.css +117 -0
  158. package/src1-10/styles/headers/header_contactinfo.module.css +78 -0
  159. package/src1-10/styles/headers/headerresturant.module.css +89 -0
  160. package/src1-10/styles/headers/headerstyles.module.css +24 -0
  161. package/src1-10/styles/headers/modernheader.module.css +78 -0
  162. package/src1-10/styles/headers/subheader.module.css +114 -0
  163. package/src1-10/styles/sections/Backgroundimage1.module.css +17 -0
  164. package/src1-10/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  165. package/src1-10/styles/sections/Section_with_rightbgcont.module.css +49 -0
  166. package/src1-10/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  167. package/src1-10/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  168. package/src1-10/styles/staticpages/accordion.module.css +9 -0
  169. package/src1-10/styles/staticpages/cart.module.css +108 -0
  170. package/src1-10/styles/staticpages/dropdown.css +196 -0
  171. package/src1-10/styles/staticpages/filter.module.css +139 -0
  172. package/src1-10/styles/staticpages/login.module.css +146 -0
  173. package/src1-10/styles/staticpages/productinfo.module.css +54 -0
  174. package/src1-10/styles/staticpages/shop.module.css +191 -0
  175. package/src1-10/styles/staticpages/signup.module.css +206 -0
  176. package/src1-10/styles/staticpages/staticroutersidenav.module.css +129 -0
  177. package/src1-10/styles/staticpages/viewcart.module.css +129 -0
  178. package/src1-10/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,1090 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
3
+ import { FetchingContext } from '../../../../../../../Contexts/FetchingContext';
4
+ import { WebsiteDesignWorkPlaceContext } from '../../../../../../../Contexts/WebsiteDesignWorkPlaceContext';
5
+ import { TemplateRoutingContext } from '../../../../../../../Contexts/TemplateRoutingContext';
6
+ import generalstyles from '../../../../../../../styles/general/general.module.css';
7
+ import cartstyles from '../../../../../../../styles/staticpages/viewcart.module.css';
8
+ import { BrowserRouter as Router, useHistory } from 'react-router-dom';
9
+ import TextareaAutosize from 'react-textarea-autosize';
10
+ // import CircularProgress from 'react-cssfx-loading/lib/CircularProgress';
11
+ import { useQuery, useQueryClient, useMutation } from 'react-query';
12
+ import { NotificationManager } from 'react-notifications';
13
+ import { css } from 'glamor';
14
+ import { Page_Template_Fetch_API } from '../../../../../../../components/API/WebsiteDesign_API';
15
+ import Staticpagesrouter from '../Staticpagesrouter/Staticpagesrouter';
16
+ import { ProductsCardsSectionContext_Provider } from '../../../../../../../Contexts/ProductsCardsSectionContext';
17
+ import { useParams } from 'react-router';
18
+ import { IKImage } from 'imagekitio-react';
19
+ import shoppingcart from '../../Generalfiles/images/shoppingcart.png';
20
+
21
+ const Viewcart = (props) => {
22
+ const queryClient = useQueryClient();
23
+ let history = useHistory();
24
+ const { lang, langdetect } = useContext(LanguageContext);
25
+ const {
26
+ fetchcustomercartQueryContext,
27
+ AddtoCartMutationContext,
28
+ deletecartitemContext,
29
+ ApplyPromoCodeMutationContext,
30
+ fetchAuthorizationQueryContext,
31
+ ChangeCartItemQuantityContext,
32
+ navigationstyle,
33
+ } = useContext(FetchingContext);
34
+ const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
35
+ const {
36
+ fetch_inst_tabex_websitetemplatesQueryContext,
37
+ pageindexcontext,
38
+ ProjectOpenrcTypeContext,
39
+ TemplateIdContext,
40
+ INSTAPIKEYCONTEXT,
41
+ StatePagePropertiesContext,
42
+ TabexSectionsComponentsContext,
43
+ } = useContext(WebsiteDesignWorkPlaceContext);
44
+ const { collectionidparams } = useParams();
45
+ const [sectionproperties, setsectionproperties] = useState('');
46
+ const [CurrentPageId, setCurrentPageId] = useState('');
47
+ const [imagesarray, setimagesarray] = useState([]);
48
+
49
+ const PageTemplateFetcherQuery = useQuery(
50
+ [ProjectOpenrcTypeContext == 'workplace' ? 'FetchPages_API' + TemplateIdContext + CurrentPageId : 'FetchPages_API' + INSTAPIKEYCONTEXT + CurrentPageId],
51
+ () =>
52
+ Page_Template_Fetch_API(
53
+ ProjectOpenrcTypeContext == 'workplace'
54
+ ? { templateid: TemplateIdContext, pageid: CurrentPageId }
55
+ : { INSTAPIKEYCONTEXT: INSTAPIKEYCONTEXT, srctypefrom: 'subdomain', pageid: CurrentPageId },
56
+ ),
57
+ {
58
+ keepPreviousData: true,
59
+ staleTime: Infinity,
60
+ enabled: CurrentPageId.length != 0 ? true : false,
61
+ },
62
+ );
63
+ useEffect(() => {
64
+ var cartindex = fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.findIndex((x) => x.staticpageid == '6218bccb84d2b');
65
+ if (cartindex >= 0) {
66
+ setCurrentPageId(fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[cartindex].pageid);
67
+ }
68
+ }, [fetch_inst_tabex_websitetemplatesQueryContext.dataUpdatedAt]);
69
+ useEffect(() => {
70
+ if (PageTemplateFetcherQuery.isSuccess) {
71
+ var secpropobj = {};
72
+ PageTemplateFetcherQuery.data.data.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
73
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
74
+ });
75
+ setsectionproperties({ ...secpropobj });
76
+ }
77
+ }, [PageTemplateFetcherQuery.dataUpdatedAt, PageTemplateFetcherQuery.isSuccess]);
78
+ useEffect(() => {
79
+ if (Object.keys(StatePagePropertiesContext).length != 0) {
80
+ var secpropobj = {};
81
+ StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
82
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
83
+ });
84
+
85
+ setsectionproperties({ ...secpropobj });
86
+ }
87
+ }, [StatePagePropertiesContext]);
88
+ useEffect(() => {
89
+ if (sectionproperties.length != 0) {
90
+ if (sectionproperties.bgsection_imagearrayofobjs != null) {
91
+ var bgsection_imagearrayofobjsparsed = JSON.parse(sectionproperties.bgsection_imagearrayofobjs);
92
+ if (Array.isArray(bgsection_imagearrayofobjsparsed)) {
93
+ setimagesarray([...bgsection_imagearrayofobjsparsed]);
94
+ }
95
+ }
96
+ }
97
+ }, [sectionproperties]);
98
+ const Summary = () => {
99
+ return (
100
+ <div className={'row m-0 w-100 mt-md-3'}>
101
+ <div className="col-lg-12 p-0 mb-4">
102
+ <div
103
+ className={' p-2 pl-3 pr-3 '}
104
+ style={{
105
+ background: sectionproperties.summary_sectionbgcolor,
106
+ borderRadius: sectionproperties.summary_sectionborderradius + 'px',
107
+ borderColor: sectionproperties.summary_sectionbordercolor,
108
+ }}
109
+ >
110
+ <div className="col-lg-12 p-0 mb-1">
111
+ <div className="row m-0 w-100">
112
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0 d-flex justify-content-start">
113
+ <p className={`${viewcart_cssstyles.summarysectionstyles}` + ' m-0 p-0 '}>{lang.subtotal}</p>
114
+ </div>
115
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
116
+ <p className={`${viewcart_cssstyles.summarysectionstyles}` + ' m-0 p-0 '}>
117
+ {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext.data.data.customercart.totalprice}
118
+ {langdetect == 'en' ? '' : 'ج.م'}
119
+ </p>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ {fetchcustomercartQueryContext.data.data.customercart.couponexists && (
124
+ <div className="col-lg-12 p-0 mb-1">
125
+ <div className="row m-0 w-100">
126
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0 d-flex justify-content-start">
127
+ <p className={`${viewcart_cssstyles.summarysectionstyles}` + ' text-danger m-0 p-0 '}>{lang.discount}</p>
128
+ </div>
129
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
130
+ <p className={`${viewcart_cssstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger '}>
131
+ {fetchcustomercartQueryContext.data.data.customercart.couponexists && (
132
+ <span>
133
+ - {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext.data.data.customercart.discountprice} {langdetect == 'en' ? '' : 'ج.م'}
134
+ </span>
135
+ )}
136
+ {!fetchcustomercartQueryContext.data.data.customercart.couponexists && <span>0</span>}
137
+ </p>
138
+ </div>
139
+ </div>
140
+ </div>
141
+ )}
142
+ <div className="col-lg-12 p-0">
143
+ <hr className="mt-0 mb-1" />
144
+ </div>
145
+ <div className="col-lg-12 p-0">
146
+ <div className="row m-0 w-100">
147
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0 d-flex justify-content-start">
148
+ <p className={`${viewcart_cssstyles.totalstyless}` + ' p-0 m-0 '}>{lang.total}</p>
149
+ </div>
150
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
151
+ <div className="row m-0 w-100">
152
+ <div className="col-lg-12 p-0 d-flex justify-content-end ">
153
+ <p className={`${viewcart_cssstyles.totalstyless}` + ' p-0 m-0 '}>
154
+ {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext.data.data.customercart.totalpriceafterdiscount_noshipping}{' '}
155
+ {langdetect == 'en' ? '' : 'ج.م'}
156
+ </p>
157
+ </div>
158
+ <div className="col-lg-12 p-0 d-flex justify-content-end ">
159
+ <p className={'font-13 text-light text-capitalize p-0 m-0 '}>{lang.excludingdelivery}</p>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ <div
166
+ className="col-lg-12 d-flex align-items-center justify-content-center mb-3 mt-3"
167
+ onClick={() => {
168
+ // if (fetchAuthorizationQueryContext.data.data.loggedin == true) {
169
+ routingcountext(StaticPagesLinksContext.Checkout);
170
+ // } else {
171
+ // NotificationManager.warning('', 'Please Login To Checkout');
172
+ // routingcountext(StaticPagesLinksContext.Login);
173
+ // }
174
+ }}
175
+ >
176
+ <button className={` ${viewcart_cssstyles.checkoutbtnstyles}`}>{lang.checkout}</button>
177
+ </div>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ );
182
+ };
183
+ const viewcart_cssstyles = {
184
+ sectiontitlespan: css({
185
+ ':after': {
186
+ width: sectionproperties.sectitle_lineafterwidth + '%',
187
+ backgroundColor: sectionproperties.linebgcolor,
188
+ },
189
+ }),
190
+ sectiontitlespan2: css({
191
+ ':after': {
192
+ width: sectionproperties.sectitle_lineafterwidth + 'px',
193
+ height: '100%',
194
+ backgroundColor: sectionproperties.linebgcolor,
195
+ },
196
+ }),
197
+ pill: css({
198
+ width: sectionproperties.pillwidth + 'px',
199
+ height: sectionproperties.pillheight + 'px',
200
+ height: sectionproperties.pillheight + 'px',
201
+ backgroundColor: sectionproperties.pillbgcolor,
202
+ color: sectionproperties.pillcolor,
203
+ textTransform: sectionproperties.pilltextTransform,
204
+ fontSize: sectionproperties.pillfontSize + 'px',
205
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
206
+ }),
207
+ checkoutbtnstyles: css({
208
+ background: sectionproperties.checkoutBtnbgColortranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColor,
209
+ width: sectionproperties.checkoutBtnWidth + 'px',
210
+ height: sectionproperties.checkoutBtnHeight + 'px',
211
+ borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
212
+ color: sectionproperties.checkoutBtnTextcolor,
213
+ textTransform: sectionproperties.checkoutBtnTexttransform,
214
+ fontWeight: sectionproperties.checkoutBtnTextfontweight,
215
+ fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
216
+ boxShadow: sectionproperties.checkoutBtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.checkoutBtn_shadowcolor : '',
217
+ transition: '.3s',
218
+ ':hover': {
219
+ background: sectionproperties.checkoutBtnbgColoronhover,
220
+ color: sectionproperties.checkoutBtnTextcoloronhover,
221
+ },
222
+ }),
223
+ productNameStyles: css({
224
+ color: sectionproperties.prodNameColor,
225
+ fontSize: sectionproperties.prodNameFontSize + 'px',
226
+ textTransform: sectionproperties.prodNameTextTranform,
227
+ fontWeight: sectionproperties.prodNameFontWeight,
228
+ }),
229
+ productPricestyles: css({
230
+ color: sectionproperties.prodPriceColor,
231
+ fontSize: sectionproperties.prodpriceFontSize + 'px',
232
+ fontWeight: sectionproperties.prodPriceFontWeight,
233
+ }),
234
+ summarysectionstyles: css({
235
+ fontSize: sectionproperties.summary_fontsize + 'px',
236
+ color: sectionproperties.summary_textcolor,
237
+ fontWeight: sectionproperties.summary_textfontweight,
238
+ textTransform: sectionproperties.summary_texttransform,
239
+ }),
240
+ applybtnstyles: css({
241
+ width: sectionproperties.applybtn_width + 'px',
242
+ height: sectionproperties.applybtn_height + 'px',
243
+ borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
244
+ textTransform: sectionproperties.applybtn_texttransform,
245
+ fontSize: sectionproperties.applybtn_fontsize + 'px',
246
+ color: sectionproperties.applybtn_textColor,
247
+ fontWeight: sectionproperties.applybtn_Textfontweight,
248
+ background: sectionproperties.applybtn_bgColor,
249
+ border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
250
+ transition: '.3s',
251
+ ':hover': {
252
+ background: sectionproperties.applybtn_bgColoronhover,
253
+ color: sectionproperties.applybtn_Textcoloronhover,
254
+ },
255
+ }),
256
+ Salepricestyless: css({
257
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
258
+ fontWeight: sectionproperties.prodsalePriceFontWeight,
259
+ color: sectionproperties.prodsalePriceColor,
260
+ show: sectionproperties.prodsalePriceshow,
261
+ transition: '.3s',
262
+ }),
263
+ totalstyless: css({
264
+ fontSize: sectionproperties.total_fontsize + 'px',
265
+ fontWeight: sectionproperties.total_fontweight,
266
+ color: sectionproperties.total_color,
267
+ textTransform: sectionproperties.total_texttransform,
268
+ }),
269
+ trash_btn: css({
270
+ width: sectionproperties.trashbtn_Width + 'px',
271
+ height: sectionproperties.trashbtn_Height + 'px',
272
+ background: sectionproperties.trashbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.trashbtn_bgColor,
273
+ color: sectionproperties.trashbtn_Textcolor,
274
+ borderRadius: sectionproperties.trashbtn_borderBottomLeftRadius + 'px',
275
+ boxShadow: sectionproperties.trashbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.trashbtn_shadowcolor : '',
276
+ transition: '.3s',
277
+ opacity: sectionproperties.trashbtn_opacity,
278
+ border: sectionproperties.trashbtn_borderwidth + 'px solid ' + sectionproperties.trashbtn_bordercolor,
279
+ fontSize: sectionproperties.trashbtn_Textfontsize + 'px',
280
+ lineHeight: sectionproperties.trashbtn_Textfontsize + 'px',
281
+ // trashbtn_fontSize
282
+ ':hover': {
283
+ background: sectionproperties.trashbtn_bgColoronhover,
284
+ color: sectionproperties.trashbtn_Textcoloronhover,
285
+ opacity: sectionproperties.trashbtn_opacityonhover,
286
+ },
287
+ }),
288
+ imagecont: css({
289
+ width: sectionproperties.prodimage_width + 'px',
290
+ height: sectionproperties.prodimage_height + 'px',
291
+ border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
292
+ backgroundColor: sectionproperties.prodimage_bgcolor,
293
+ borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
294
+ borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
295
+ borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
296
+ borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
297
+ display: 'flex',
298
+ alignItems: 'center',
299
+ justifyContent: 'center',
300
+ backgroundRepeat: 'no-repeat',
301
+ backgroundSize: 'cover',
302
+ backgroundPosition: 'center',
303
+ position: 'relative',
304
+ }),
305
+ quantitybtn: css({
306
+ width: sectionproperties.quantitybtn_width + 'px',
307
+ height: sectionproperties.quantitybtn_height + 'px',
308
+ borderRadius: sectionproperties.quantitybtn_borderradius + 'px',
309
+ background: sectionproperties.quantitybtn_bgcolor,
310
+ fontWeight: sectionproperties.quantitybtn_textfontweight,
311
+ color: sectionproperties.quantitybtn_textcolor,
312
+ fontSize: sectionproperties.quantitybtn_textfontsize + 'px',
313
+ border: sectionproperties.quantitybtnborderwidth + 'px solid ' + sectionproperties.quantitybtnbordercolor,
314
+ display: 'flex',
315
+ flexDirection: 'row',
316
+ overflow: 'hidden',
317
+ alignItems: 'center',
318
+ justifyContent: 'center',
319
+ margin: 0,
320
+ position: 'relative',
321
+ }),
322
+ quantitybtn_text: css({
323
+ margin: 'auto',
324
+ }),
325
+ add_quantitybtn_icon_container: css({
326
+ position: 'relative',
327
+ width: sectionproperties.add_quantitybtn_width + 'px',
328
+ height: sectionproperties.add_quantitybtn_height + 'px',
329
+ background: sectionproperties.add_quantitybtn_bgcolor,
330
+ display: 'flex',
331
+ alignItems: 'center',
332
+ justifyContent: 'center',
333
+ borderRadius: sectionproperties.add_quantitybtn_borderradius + 'px',
334
+ fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
335
+ color: sectionproperties.add_quantitybtn_textcolor,
336
+ transition: '.3s',
337
+ ':hover': {
338
+ color: sectionproperties.add_quantitybtn_textcoloronhover,
339
+ background: sectionproperties.add_quantitybtn_bgcoloronhover,
340
+ },
341
+ }),
342
+ minus_quantitybtn_icon_container: css({
343
+ position: 'relative',
344
+ width: sectionproperties.remove_quantitybtn_width + 'px',
345
+ height: sectionproperties.remove_quantitybtn_height + 'px',
346
+ background: sectionproperties.remove_quantitybtn_bgcolor,
347
+ display: 'flex',
348
+ alignItems: 'center',
349
+ justifyContent: 'center',
350
+ borderRadius: sectionproperties.remove_quantitybtn_borderradius + 'px',
351
+ fontSize: sectionproperties.remove_quantitybtn_textfontsize + '25px',
352
+ color: sectionproperties.remove_quantitybtn_textcolor,
353
+ transition: '.3s',
354
+ ':hover': {
355
+ color: sectionproperties.remove_quantitybtn_textcoloronhover,
356
+ background: sectionproperties.remove_quantitybtn_bgcoloronhover,
357
+ },
358
+ }),
359
+ tableimagecont: css({
360
+ width: '70px',
361
+ height: '60px',
362
+ border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
363
+ backgroundColor: sectionproperties.prodimage_bgcolor,
364
+ borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
365
+ borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
366
+ borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
367
+ borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
368
+ display: 'flex',
369
+ alignItems: 'center',
370
+ justifyContent: 'center',
371
+ position: 'relative',
372
+ }),
373
+ input_label_name: css({
374
+ color: sectionproperties.form_labelcolor,
375
+ textTransform: sectionproperties.form_labeltexttransform,
376
+ fontWeight: sectionproperties.form_labelfontweight,
377
+ fontSize: sectionproperties.form_labelfontsize + 'px',
378
+ }),
379
+ };
380
+ const [bgimagesarray, setbgimagesarray] = useState([]);
381
+ useEffect(() => {
382
+ if (sectionproperties.length != 0) {
383
+ if (sectionproperties.arrayofobjectimagesonly != null) {
384
+ var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
385
+ if (Array.isArray(arrayofobjectimagesonlyparsed)) {
386
+ setbgimagesarray([...arrayofobjectimagesonlyparsed]);
387
+ }
388
+ }
389
+ }
390
+ }, [sectionproperties]);
391
+ return (
392
+ <div className={'row m-0 w-100 d-flex justify-content-center'}>
393
+ {sectionproperties.showbgimage == 'Show' && (
394
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
395
+ <div
396
+ style={{
397
+ width: sectionproperties.image_width + 'vw',
398
+ height: sectionproperties.image_height + 'vh',
399
+ marginBottom: sectionproperties.image_mb + 'px',
400
+ position: 'relative',
401
+ }}
402
+ >
403
+ <IKImage
404
+ path={
405
+ bgimagesarray.length != 0
406
+ ? langdetect == 'en'
407
+ ? '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image
408
+ : '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image_ar
409
+ : ''
410
+ }
411
+ style={{
412
+ height: '100%',
413
+ width: '100%',
414
+ // objectFit: 'cover',
415
+ margin: 0,
416
+ padding: 0,
417
+ background: sectionproperties.image_bgcolor,
418
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
419
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
420
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
421
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
422
+ zIndex: -1,
423
+ // transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
424
+ }}
425
+ />
426
+ <div
427
+ className={' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center '}
428
+ style={{
429
+ position: 'absolute',
430
+ top: 0,
431
+ right: 0,
432
+ bottom: 0,
433
+ left: 0,
434
+ }}
435
+ >
436
+ <p
437
+ className={' m-0 p-0 '}
438
+ style={{
439
+ fontSize: sectionproperties.imagetextfontsize + 'px',
440
+ color: sectionproperties.imagetextcolor,
441
+ textTransform: sectionproperties.imagetexttextTransform,
442
+ fontWeight: sectionproperties.imagetextfontWeight,
443
+ }}
444
+ >
445
+ {lang.mycart}
446
+ </p>
447
+ </div>
448
+ </div>
449
+ </div>
450
+ )}
451
+ <div className="col-lg-12 p-0">
452
+ <div
453
+ className={'row ml-0 mr-0 d-flex justify-content-center w-100 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2'}
454
+ style={{
455
+ marginTop: sectionproperties.marginTop + 'px',
456
+ marginBottom: sectionproperties.marginBottom + 'px',
457
+ paddingLeft: sectionproperties.paddingLeft + 'px',
458
+ paddingRight: sectionproperties.paddingRight + 'px',
459
+ paddingTop: sectionproperties.paddingTop + 'px',
460
+ paddingBottom: sectionproperties.paddingBottom + 'px',
461
+ background: sectionproperties.backgroundColor,
462
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
463
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
464
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
465
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
466
+ borderColor: sectionproperties.sectioncardbordercolor,
467
+ border: sectionproperties.sectioncardborderwidth + 'px solid',
468
+ }}
469
+ >
470
+ <div className={navigationstyle == 'Side Navigation' ? (langdetect == 'en' ? 'col-lg-3 pl-0 mb-md-3 p-md-0' : 'col-lg-3 pr-0 mb-md-3 p-md-0') : 'col-lg-12 p-0'}>
471
+ <Staticpagesrouter
472
+ currentpageprops={'Viewcart'}
473
+ pillpropertiesprops={{
474
+ minWidth: sectionproperties.pillwidth + 'px',
475
+ height: sectionproperties.pillheight + 'px',
476
+ backgroundColor: sectionproperties.pillbgcolor,
477
+ color: sectionproperties.pillcolor,
478
+ textTransform: sectionproperties.pillcolor,
479
+ fontWeight: sectionproperties.pillfontWeight,
480
+ fontSize: sectionproperties.pillfontSize + 'px',
481
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
482
+ }}
483
+ />
484
+ </div>
485
+ {navigationstyle == 'Side Navigation' && (
486
+ <div className={'col-lg-9 d-flex p-0'}>
487
+ <div className="row ml-0 mr-0 w-100">
488
+ {sectionproperties.sectiontitlestyle == 'Line Under Text' && (
489
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0">
490
+ <div className={`${generalstyles.sectiontitlecont} `}>
491
+ <div
492
+ className={' col-lg-12 d-flex align-items-center p-0'}
493
+ style={{
494
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
495
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
496
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
497
+ marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
498
+ marginRight: sectionproperties.sectionTitleMarginRight + 'px',
499
+ }}
500
+ >
501
+ <span
502
+ className={`${viewcart_cssstyles.sectiontitlespan}`}
503
+ style={{
504
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
505
+ color: sectionproperties.sectionTitleColor,
506
+
507
+ textTransform: sectionproperties.sectionTitleTextTransform,
508
+ fontWeight: sectionproperties.sectionTitleFontWeight,
509
+ }}
510
+ >
511
+ {langdetect == 'en' ? 'My Cart' : 'حقيبة التسوق'}:
512
+ </span>
513
+ <span className={` ${viewcart_cssstyles.pill}` + ' ml-1 mr-1 d-flex align-items-center justify-content-center '}>
514
+ {fetchcustomercartQueryContext.data.data.customercart != undefined && fetchcustomercartQueryContext.data.data.customercart != null
515
+ ? fetchcustomercartQueryContext.data.data.customercart.cartitems.length
516
+ : ''}
517
+ </span>
518
+ </div>
519
+ </div>
520
+ </div>
521
+ )}
522
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && (
523
+ <div
524
+ className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0"
525
+ style={{
526
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
527
+ }}
528
+ >
529
+ <div
530
+ className={`${generalstyles.sectiontitlecont2}`}
531
+ style={{
532
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
533
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
534
+ marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
535
+ marginRight: sectionproperties.sectionTitleMarginRight + 'px',
536
+ }}
537
+ >
538
+ <span
539
+ className={`${viewcart_cssstyles.sectiontitlespan2}` + ' pl-3 '}
540
+ style={{
541
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
542
+ color: sectionproperties.sectionTitleColor,
543
+ textTransform: sectionproperties.sectionTitleTextTransform,
544
+ fontWeight: sectionproperties.sectionTitleFontWeight,
545
+ }}
546
+ >
547
+ My
548
+ <br />
549
+ Cart:
550
+ </span>
551
+ <span className={` ${viewcart_cssstyles.pill}` + ' ml-1 mr-1 pl-2 pr-2 d-flex align-items-center justify-content-center mt-auto mb-2 '}>
552
+ {fetchcustomercartQueryContext.data.data.customercart != undefined && fetchcustomercartQueryContext.data.data.customercart != null
553
+ ? fetchcustomercartQueryContext.data.data.customercart.cartitems.length
554
+ : ''}{' '}
555
+ </span>
556
+ </div>
557
+ </div>
558
+ )}
559
+ <div className={'col-lg-12 d-flex p-0 w-100'}>
560
+ <div
561
+ className="row ml-0 mr-0 w-100"
562
+ style={{
563
+ background: sectionproperties.backgroundColor,
564
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
565
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
566
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
567
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
568
+ paddingTop: sectionproperties.paddingTop + 'px',
569
+ paddingBottom: sectionproperties.paddingBottom + 'px',
570
+ marginBottom: sectionproperties.marginBottom + 'px',
571
+ marginTop: sectionproperties.marginTop + 'px',
572
+ boxShadow:
573
+ sectionproperties.sectioncardshadow == 'Show'
574
+ ? '0 0.46875rem 2.1875rem rgba(4, 9, 20, 0.03), 0 0.9375rem 1.40625rem rgba(4, 9, 20, 0.03), 0 0.25rem 0.53125rem rgba(4, 9, 20, 0.05), 0 0.125rem 0.1875rem rgba(4, 9, 20, 0.03)'
575
+ : 'none',
576
+ borderColor: sectionproperties.usserinfo_sectionbordercolor,
577
+ }}
578
+ >
579
+ <div className={langdetect == 'en' ? ' col-lg-6 co-md-12 pl-0 p-md-0 ' : ' col-lg-6 co-md-12 pr-0 p-md-0 '}>
580
+ <div className="row m-0 w-100">
581
+ {fetchcustomercartQueryContext.data.data.customercart.cartitems == 0 && (
582
+ <div className="row m-0 w-100 d-flex align-items-center justify-content-center" style={{ height: '40vh' }}>
583
+ <div className="col-lg-12 d-flex align-items-center justify-content-center text-light flex-column">
584
+ <img src={shoppingcart} style={{ maxWidth: '200px', maxHeight: '200px' }} />
585
+ <p className="font-weight-500" style={{ fontSize: '15px' }}>
586
+ {lang.emptyshoppingcart}
587
+ </p>
588
+ </div>
589
+ </div>
590
+ )}
591
+ {fetchcustomercartQueryContext.data.data.customercart.cartitems.map((item, index) => {
592
+ return (
593
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 mb-3">
594
+ <div className={generalstyles.card + ' pt-2 pb-2 '}>
595
+ <div className="row m-0 w-100 d-flex">
596
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0">
597
+ <div className="row m-0 w-100">
598
+ <div className="col-lg-2 col-md-2 p-0">
599
+ <div className={`${viewcart_cssstyles.imagecont} ${cartstyles.cart_slider_imagecont}`}>
600
+ <IKImage
601
+ path={
602
+ item.productinfo.hasvariants == 0
603
+ ? item.productinfo.productmainimage
604
+ : item.productinfo.variantinfo.variantimageurl
605
+ }
606
+ style={{
607
+ width: '100%',
608
+ height: '100%',
609
+ objectFit: 'cover',
610
+ }}
611
+ loading="lazy"
612
+ />
613
+ </div>
614
+ </div>
615
+ <div className="col-lg-7 col-md-8">
616
+ <div className="row m-0 w-100">
617
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start">
618
+ <p className={`${viewcart_cssstyles.productNameStyles}` + ' m-0 p-0 wordbreak d-flex justify-content-start '}>
619
+ {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
620
+ </p>
621
+ </div>
622
+ {item.productinfo.hasvariants == 1 &&
623
+ item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
624
+ return (
625
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
626
+ <p
627
+ className={
628
+ 'text-capitalize text-dark m-0 p-0 font-weight-400 font-13 m-0 p-0 wordbreak d-flex align-items-center justify-content-start '
629
+ }
630
+ >
631
+ {variantitem.optionname}: {variantitem.optionvalue}
632
+ </p>
633
+ </div>
634
+ );
635
+ })}
636
+ </div>
637
+ </div>
638
+ <div className="col-lg-3 col-md-2 p-0 ">
639
+ <div className="row m-0 w-100 h-100">
640
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto">
641
+ {item.productinfo.hasvariants == 0 && (
642
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
643
+ {item.productinfo.hassale == 0 && (
644
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
645
+ <p
646
+ className={
647
+ langdetect == 'en'
648
+ ? `${viewcart_cssstyles.productPricestyles}` +
649
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
650
+ : `${viewcart_cssstyles.productPricestyles}` +
651
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
652
+ }
653
+ >
654
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice}{' '}
655
+ {langdetect == 'en' ? '' : 'ج.م'}
656
+ </p>
657
+ </div>
658
+ )}
659
+ {item.productinfo.hassale == 1 && (
660
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
661
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
662
+ <p
663
+ className={
664
+ langdetect == 'en'
665
+ ? `${viewcart_cssstyles.productPricestyles}` +
666
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
667
+ : `${viewcart_cssstyles.productPricestyles}` +
668
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
669
+ }
670
+ >
671
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultsaleprice}
672
+ {langdetect == 'en' ? '' : 'ج.م'}
673
+ </p>
674
+ </div>
675
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
676
+ <p
677
+ className={
678
+ langdetect == 'en'
679
+ ? `${viewcart_cssstyles.Salepricestyless}` +
680
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
681
+ : `${viewcart_cssstyles.Salepricestyless}` +
682
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
683
+ }
684
+ >
685
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice}{' '}
686
+ {langdetect == 'en' ? '' : 'ج.م'}
687
+ </p>
688
+ </div>
689
+ </div>
690
+ )}
691
+ </div>
692
+ )}
693
+ {item.productinfo.hasvariants == 1 && (
694
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
695
+ {item.productinfo.variantinfo.hassale == 0 && (
696
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
697
+ <p
698
+ className={
699
+ langdetect == 'en'
700
+ ? `${viewcart_cssstyles.productPricestyles}` +
701
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
702
+ : `${viewcart_cssstyles.productPricestyles}` +
703
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
704
+ }
705
+ >
706
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice}{' '}
707
+ {langdetect == 'en' ? '' : 'ج.م'}
708
+ </p>
709
+ </div>
710
+ )}
711
+ {item.productinfo.variantinfo.hassale == 1 && (
712
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
713
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
714
+ <p
715
+ className={
716
+ langdetect == 'en'
717
+ ? `${viewcart_cssstyles.productPricestyles}` +
718
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
719
+ : `${viewcart_cssstyles.productPricestyles}` +
720
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
721
+ }
722
+ >
723
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantsaleprice}
724
+ {langdetect == 'en' ? '' : 'ج.م'}
725
+ </p>
726
+ </div>
727
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
728
+ <p
729
+ className={
730
+ langdetect == 'en'
731
+ ? `${viewcart_cssstyles.Salepricestyless}` +
732
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
733
+ : `${viewcart_cssstyles.Salepricestyless}` +
734
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
735
+ }
736
+ >
737
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice}{' '}
738
+ {langdetect == 'en' ? '' : 'ج.م'}
739
+ </p>
740
+ </div>
741
+ </div>
742
+ )}
743
+ </div>
744
+ )}
745
+ </div>
746
+
747
+ {/* <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mt-auto">
748
+ <p className={`${viewcart_cssstyles.productPricestyles}` + ' m-0 p-0 mt-auto h-100 '}>
749
+ {langdetect=='en'? 'EGP':'ج.م'} {item.productinfo.cartitemtotalprice}
750
+ </p>
751
+ </div> */}
752
+ </div>
753
+ </div>
754
+ <div className="col-lg-12 col-md-12 p-0 mt-auto d-flex align-items-center justify-content-center">
755
+ <div className="row m-0 w-100 mt-2">
756
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex align-items-center justify-content-start p-0">
757
+ <button
758
+ className={
759
+ ` ${viewcart_cssstyles.trash_btn}` + ' d-flex align-items-center justify-content-center text-uppercase '
760
+ }
761
+ onClick={() => {
762
+ deletecartitemContext(item);
763
+ }}
764
+ >
765
+ {langdetect == 'en' ? 'REMOVE' : 'حذف'}
766
+ </button>
767
+ </div>
768
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex align-items-center justify-content-end p-0">
769
+ {AddtoCartMutationContext.isLoading && <CircularProgress color="black" width="25px" height="25px" />}
770
+ {!AddtoCartMutationContext.isLoading && (
771
+ <button
772
+ className={
773
+ ` ${viewcart_cssstyles.quantitybtn}` + ' p-0 d-flex align-items-center justify-content-center '
774
+ }
775
+ >
776
+ <span
777
+ className={`${viewcart_cssstyles.add_quantitybtn_icon_container}` + ' m-1 '}
778
+ onClick={() => {
779
+ ChangeCartItemQuantityContext(item, parseInt(parseInt(item.quantity) + 1));
780
+ }}
781
+ >
782
+ <i
783
+ className="fa fa-chevron-up"
784
+ style={{
785
+ fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
786
+ }}
787
+ ></i>
788
+ </span>
789
+
790
+ <span className={`${viewcart_cssstyles.quantitybtn_text}`}>{item.quantity}</span>
791
+ <span
792
+ className={`${viewcart_cssstyles.minus_quantitybtn_icon_container}` + ' m-1 '}
793
+ style={{ transform: ' rotate(-180deg)' }}
794
+ onClick={() => {
795
+ ChangeCartItemQuantityContext(item, parseInt(parseInt(item.quantity) - 1));
796
+ }}
797
+ >
798
+ <i
799
+ className="fa fa-chevron-up"
800
+ style={{
801
+ fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px',
802
+ }}
803
+ ></i>
804
+ </span>
805
+ </button>
806
+ )}
807
+ </div>
808
+ </div>
809
+ </div>
810
+ </div>
811
+ </div>
812
+ </div>
813
+ </div>
814
+ </div>
815
+ );
816
+ })}
817
+ </div>
818
+ </div>
819
+ <div className={langdetect == 'en' ? ' col-lg-6 co-md-12 pr-0 p-sm-0 ' : ' col-lg-6 co-md-12 pl-0 p-sm-0 '}>{Summary()}</div>
820
+ </div>
821
+ </div>
822
+ </div>
823
+ </div>
824
+ )}
825
+ {navigationstyle == 'Upper Navigation' && (
826
+ <div className={'col-lg-12 d-flex w-100 p-0'}>
827
+ <div className="row m-0 w-100">
828
+ <div className={langdetect == 'en' ? 'col-lg-9 pr-0' : 'col-lg-9 pl-0'}>
829
+ <div className={' row m-0 w-100 p-sm-3 '} style={{ background: 'white', padding: '20px', minHeight: '70vh' }}>
830
+ <div className={' col-lg-12 table_responsive p-0 '}>
831
+ <table className={'table table_thbg'}>
832
+ <thead className="" style={{ background: '#eee' }}>
833
+ <th
834
+ className={
835
+ langdetect == 'en'
836
+ ? 'text-left font-weight-500 font-14 text-light mw-150 mw-md-300'
837
+ : 'text-right font-weight-500 font-14 text-light mw-150 mw-md-300'
838
+ }
839
+ >
840
+ {lang.productname}
841
+ </th>
842
+ <th className="text-center font-weight-500 font-14 text-uppercase text-light" style={{ minWidth: '200px' }}>
843
+ {lang.price}
844
+ </th>
845
+ <th className="text-capitalize text-center font-weight-500 font-14 text-uppercase text-light">{lang.quantity}</th>
846
+ <th className="text-capitalize text-center font-weight-500 font-14 text-uppercase text-light" style={{ minWidth: '100px' }}>
847
+ {lang.total}
848
+ </th>
849
+ <th className="text-capitalize text-center font-weight-500 font-14 text-uppercase text-light">{lang.remove}</th>
850
+ </thead>
851
+ <tbody>
852
+ {fetchcustomercartQueryContext.data.data.customercart.cartitems.map((item, index) => {
853
+ return (
854
+ <tr className="border-none">
855
+ <td className="mw-150 mw-md-300">
856
+ <div className="row m-0 w-100 d-flex">
857
+ <div className={`${viewcart_cssstyles.tableimagecont}`}>
858
+ <IKImage
859
+ path={
860
+ item.productinfo.hasvariants == 0 ? item.productinfo.productmainimage : item.productinfo.variantinfo.variantimageurl
861
+ }
862
+ style={{
863
+ width: '100%',
864
+ height: '100%',
865
+ objectFit: 'cover',
866
+ }}
867
+ loading="lazy"
868
+ />
869
+ </div>
870
+ <div className="pl-2 pr-2">
871
+ <p className={`${viewcart_cssstyles.productNameStyles}` + ' m-0 p-0 wordbreak d-flex justify-content-start '}>
872
+ {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
873
+ </p>
874
+ {item.productinfo.hasvariants == 1 &&
875
+ item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
876
+ return (
877
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
878
+ <p
879
+ className={
880
+ 'text-capitalize text-dark m-0 p-0 font-weight-400 font-13 m-0 p-0 wordbreak d-flex align-items-center justify-content-start '
881
+ }
882
+ >
883
+ {variantitem.optionname}: {variantitem.optionvalue}
884
+ </p>
885
+ </div>
886
+ );
887
+ })}
888
+ </div>
889
+ </div>
890
+ </td>
891
+ <td style={{ minWidth: '200px' }}>
892
+ {item.productinfo.hasvariants == 0 && (
893
+ <div className="row m-0 w-100 d-flex flex-column justify-content-center">
894
+ {item.productinfo.hassale == 0 && (
895
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
896
+ <p
897
+ className={
898
+ `${viewcart_cssstyles.productPricestyles}` +
899
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-center '
900
+ }
901
+ >
902
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
903
+ </p>
904
+ </div>
905
+ )}
906
+ {item.productinfo.hassale == 1 && (
907
+ <div className="row m-0 w-100 d-flex flex-column justify-content-center">
908
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
909
+ <p
910
+ className={
911
+ `${viewcart_cssstyles.productPricestyles}` +
912
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-center '
913
+ }
914
+ >
915
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultsaleprice}
916
+ {langdetect == 'en' ? '' : 'ج.م'}
917
+ </p>
918
+ </div>
919
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
920
+ <p
921
+ className={
922
+ `${viewcart_cssstyles.Salepricestyless}` +
923
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-center '
924
+ }
925
+ >
926
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
927
+ </p>
928
+ </div>
929
+ </div>
930
+ )}
931
+ </div>
932
+ )}
933
+ {item.productinfo.hasvariants == 1 && (
934
+ <div className="row m-0 w-100 d-flex flex-column justify-content-center">
935
+ {item.productinfo.variantinfo.hassale == 0 && (
936
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
937
+ <p
938
+ className={
939
+ `${viewcart_cssstyles.productPricestyles}` +
940
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-center '
941
+ }
942
+ >
943
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice} {langdetect == 'en' ? '' : 'ج.م'}
944
+ </p>
945
+ </div>
946
+ )}
947
+ {item.productinfo.variantinfo.hassale == 1 && (
948
+ <div className="row m-0 w-100 d-flex flex-column justify-content-center">
949
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
950
+ <p
951
+ className={
952
+ `${viewcart_cssstyles.productPricestyles}` +
953
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-center '
954
+ }
955
+ >
956
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantsaleprice}
957
+ {langdetect == 'en' ? '' : 'ج.م'}
958
+ </p>
959
+ </div>
960
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
961
+ <p
962
+ className={
963
+ `${viewcart_cssstyles.Salepricestyless}` +
964
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-center '
965
+ }
966
+ >
967
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice}{' '}
968
+ {langdetect == 'en' ? '' : 'ج.م'}
969
+ </p>
970
+ </div>
971
+ </div>
972
+ )}
973
+ </div>
974
+ )}
975
+ </td>
976
+ <td className="text-center">
977
+ <div className="row m-0 w-100 d-flex align-items-center justify-content-center">
978
+ {AddtoCartMutationContext.isLoading && <CircularProgress color="black" width="25px" height="25px" />}
979
+ {!AddtoCartMutationContext.isLoading && (
980
+ <button className={` ${viewcart_cssstyles.quantitybtn}` + ' p-0 d-flex align-items-center justify-content-center '}>
981
+ <span
982
+ className={`${viewcart_cssstyles.minus_quantitybtn_icon_container}` + ' m-1 '}
983
+ onClick={() => {
984
+ ChangeCartItemQuantityContext(item, parseInt(parseInt(item.quantity) - 1));
985
+ }}
986
+ >
987
+ <i
988
+ className="fa fa-chevron-down"
989
+ style={{
990
+ fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px',
991
+ }}
992
+ ></i>
993
+ </span>
994
+ <span
995
+ className={`${viewcart_cssstyles.quantitybtn_text}` + ' d-flex align-items-center justify-content-center '}
996
+ style={{
997
+ background: sectionproperties.quantbtntextbgcolor,
998
+ width: sectionproperties.quantitybtntextwidth + 'px',
999
+ height: sectionproperties.quantitybtntextheight + 'px',
1000
+ borderRadius: sectionproperties.addquantitytextborderraduis + 'px',
1001
+ }}
1002
+ >
1003
+ {item.quantity}
1004
+ </span>
1005
+ <span
1006
+ className={`${viewcart_cssstyles.add_quantitybtn_icon_container}` + ' m-1 '}
1007
+ onClick={() => {
1008
+ ChangeCartItemQuantityContext(item, parseInt(parseInt(item.quantity) + 1));
1009
+ }}
1010
+ >
1011
+ <i
1012
+ className="fa fa-chevron-up"
1013
+ style={{
1014
+ fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
1015
+ }}
1016
+ ></i>
1017
+ </span>
1018
+ </button>
1019
+ )}
1020
+ </div>
1021
+ </td>
1022
+ <td className="text-center" style={{ minWidth: '100px' }}>
1023
+ <p className={`${viewcart_cssstyles.productPricestyles}` + ' m-0 p-0 '}>
1024
+ {langdetect == 'en' ? 'EGP' : 'ج.م'} {item.productinfo.cartitemtotalprice}
1025
+ </p>
1026
+ </td>
1027
+ <td className="text-center">
1028
+ <button
1029
+ className={` ${viewcart_cssstyles.trash_btn}` + ' d-flex align-items-center justify-content-center text-uppercase m-auto '}
1030
+ onClick={() => {
1031
+ deletecartitemContext(item);
1032
+ }}
1033
+ >
1034
+ {lang.remove}
1035
+ </button>
1036
+ </td>
1037
+ </tr>
1038
+ );
1039
+ })}
1040
+ </tbody>
1041
+ </table>
1042
+ </div>
1043
+ {fetchcustomercartQueryContext.data.data.customercart.cartitems.length == 0 && (
1044
+ <div className="row m-0 w-100 d-flex align-items-center justify-content-center h-100 pt-5 pb-5" style={{ height: '50vh' }}>
1045
+ <div className={' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '}>
1046
+ <img src={shoppingcart} style={{ maxWidth: '250px', maxHeight: '250px' }} />
1047
+ <p className="m-0 p-0 wordbreak" style={{ fontSize: '15px' }}>
1048
+ {lang.emptyshoppingcart}
1049
+ </p>
1050
+ </div>
1051
+ </div>
1052
+ )}
1053
+ </div>
1054
+ </div>
1055
+ <div className={langdetect == 'en' ? ' col-lg-3 pr-0 ' : ' col-lg-3 pl-0 '}>{Summary()}</div>
1056
+ </div>
1057
+ </div>
1058
+ )}
1059
+ </div>
1060
+ <div className="col-lg-12 d-flex align-items-center justify-content-center p-0">
1061
+ {pageindexcontext.length != 0 && Object.keys(StatePagePropertiesContext).length != 0 && (
1062
+ <div className={generalstyles.app_container + ' w-100 '} style={{ position: 'relative' }}>
1063
+ {StatePagePropertiesContext.pageobj.sections.map((item, index) => {
1064
+ if (item.tabexsectioninfo != null && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined && item.componenttype == 'section') {
1065
+ var sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
1066
+ return (
1067
+ <div className="row w-100 ml-0 mr-0 d-flex justify-content-center p-0">
1068
+ {item.tabexsectioninfo.sectiontype == 'Cards' && (
1069
+ <ProductsCardsSectionContext_Provider>
1070
+ {React.createElement(sectioncomp, {
1071
+ sectionidprops: item.sectionid,
1072
+ sectionindexprops: index,
1073
+ srcfromprops: 'GeneralProductsComponent',
1074
+ collectionidprops: collectionidparams,
1075
+ })}
1076
+ </ProductsCardsSectionContext_Provider>
1077
+ )}
1078
+ {item.tabexsectioninfo.sectiontype != 'Cards' && React.createElement(sectioncomp, { sectionidprops: item.sectionid, sectionindexprops: index })}
1079
+ </div>
1080
+ );
1081
+ }
1082
+ })}
1083
+ </div>
1084
+ )}
1085
+ </div>
1086
+ </div>
1087
+ </div>
1088
+ );
1089
+ };
1090
+ export default Viewcart;