tabexseriescomponents 0.0.79 → 0.0.81

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 (179) hide show
  1. package/dist/index.cjs.js +1819 -658
  2. package/dist/index.esm.js +1819 -658
  3. package/dist/index.umd.js +1819 -658
  4. package/package.json +1 -1
  5. package/srcOLD/Contexts/LanguageContext.jsx +0 -347
  6. package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +0 -28
  7. package/srcOLD/StylesJS/Customstyles.js +0 -235
  8. package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -214
  9. package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -258
  10. package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -206
  11. package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -176
  12. package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -207
  13. package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -162
  14. package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -193
  15. package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -158
  16. package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -286
  17. package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -558
  18. package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -486
  19. package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -300
  20. package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -288
  21. package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -307
  22. package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -295
  23. package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -325
  24. package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -290
  25. package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -303
  26. package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -466
  27. package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -282
  28. package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -298
  29. package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -139
  30. package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -135
  31. package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -304
  32. package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -291
  33. package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +0 -418
  34. package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +0 -382
  35. package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +0 -308
  36. package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +0 -438
  37. package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +0 -495
  38. package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +0 -295
  39. package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +0 -373
  40. package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -238
  41. package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  42. package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
  43. package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  44. package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  45. package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  46. package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  47. package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  48. package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  49. package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  50. package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  51. package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  52. package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
  53. package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  54. package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +0 -724
  55. package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -687
  56. package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +0 -632
  57. package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +0 -669
  58. package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
  59. package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -754
  60. package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -798
  61. package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -686
  62. package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -938
  63. package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -706
  64. package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -821
  65. package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
  66. package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +0 -251
  67. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
  68. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -278
  69. package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -138
  70. package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -160
  71. package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
  72. package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
  73. package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -861
  74. package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +0 -496
  75. package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -888
  76. package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
  77. package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +0 -552
  78. package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -281
  79. package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -166
  80. package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -152
  81. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
  82. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -146
  83. package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -209
  84. package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -145
  85. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -252
  86. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -175
  87. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -154
  88. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -201
  89. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
  90. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -270
  91. package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
  92. package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -275
  93. package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -459
  94. package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +0 -146
  95. package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
  96. package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
  97. package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
  98. package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  99. package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +0 -299
  100. package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
  101. package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1285
  102. package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +0 -358
  103. package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1506
  104. package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -225
  105. package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -788
  106. package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +0 -157
  107. package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -295
  108. package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -1090
  109. package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -629
  110. package/srcOLD/assets/images/cod.png +0 -0
  111. package/srcOLD/assets/images/egyptflag.png +0 -0
  112. package/srcOLD/assets/images/fawry.png +0 -0
  113. package/srcOLD/assets/images/payment.png +0 -0
  114. package/srcOLD/assets/images/paymob.png +0 -0
  115. package/srcOLD/assets/images/paypal.png +0 -0
  116. package/srcOLD/assets/images/shoppingcart.png +0 -0
  117. package/srcOLD/assets/images/usflag.png +0 -0
  118. package/srcOLD/assets/images/visa.png +0 -0
  119. package/srcOLD/assets/images/whatsapp.png +0 -0
  120. package/srcOLD/button.jsx +0 -40
  121. package/srcOLD/index.jsx +0 -175
  122. package/srcOLD/styles/Home.module.css +0 -129
  123. package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +0 -10
  124. package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  125. package/srcOLD/styles/cards/Categorycard_withshapes.module.css +0 -189
  126. package/srcOLD/styles/cards/Productcard6.module.css +0 -9
  127. package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +0 -137
  128. package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  129. package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  130. package/srcOLD/styles/cards/categorycard.module.css +0 -102
  131. package/srcOLD/styles/cards/categorycard3.module.css +0 -51
  132. package/srcOLD/styles/cards/categorycardwithtext.module.css +0 -40
  133. package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +0 -104
  134. package/srcOLD/styles/cards/productcard_with_textonhover.module.css +0 -12
  135. package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  136. package/srcOLD/styles/general/bootstrap.css +0 -4420
  137. package/srcOLD/styles/general/dropdown.css +0 -199
  138. package/srcOLD/styles/general/editorbardropdown.module.css +0 -94
  139. package/srcOLD/styles/general/filter.module.css +0 -108
  140. package/srcOLD/styles/general/form.module.css +0 -273
  141. package/srcOLD/styles/general/general.module.css +0 -709
  142. package/srcOLD/styles/general/image-gallery.css +0 -481
  143. package/srcOLD/styles/general/react-accessible-accordion.module.css +0 -52
  144. package/srcOLD/styles/general/react-phone-input-2.module.css +0 -927
  145. package/srcOLD/styles/general/scrollbtn.module.css +0 -22
  146. package/srcOLD/styles/general/slick.module.css +0 -166
  147. package/srcOLD/styles/general/tabs.module.css +0 -110
  148. package/srcOLD/styles/general/workplaceeditor.module.css +0 -328
  149. package/srcOLD/styles/globals.css +0 -26
  150. package/srcOLD/styles/headers/Allinoneheader.module.css +0 -91
  151. package/srcOLD/styles/headers/Header7.module.css +0 -50
  152. package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +0 -97
  153. package/srcOLD/styles/headers/Sideheader.module.css +0 -108
  154. package/srcOLD/styles/headers/classicheaderstyles.module.css +0 -16
  155. package/srcOLD/styles/headers/dropdown.css +0 -0
  156. package/srcOLD/styles/headers/header4.module.css +0 -175
  157. package/srcOLD/styles/headers/header5.module.css +0 -30
  158. package/srcOLD/styles/headers/header6.module.css +0 -117
  159. package/srcOLD/styles/headers/header_contactinfo.module.css +0 -78
  160. package/srcOLD/styles/headers/headerresturant.module.css +0 -89
  161. package/srcOLD/styles/headers/headerstyles.module.css +0 -24
  162. package/srcOLD/styles/headers/modernheader.module.css +0 -78
  163. package/srcOLD/styles/headers/subheader.module.css +0 -114
  164. package/srcOLD/styles/sections/Backgroundimage1.module.css +0 -17
  165. package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  166. package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +0 -49
  167. package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  168. package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  169. package/srcOLD/styles/staticpages/accordion.module.css +0 -9
  170. package/srcOLD/styles/staticpages/cart.module.css +0 -108
  171. package/srcOLD/styles/staticpages/dropdown.css +0 -196
  172. package/srcOLD/styles/staticpages/filter.module.css +0 -139
  173. package/srcOLD/styles/staticpages/login.module.css +0 -146
  174. package/srcOLD/styles/staticpages/productinfo.module.css +0 -54
  175. package/srcOLD/styles/staticpages/shop.module.css +0 -191
  176. package/srcOLD/styles/staticpages/signup.module.css +0 -206
  177. package/srcOLD/styles/staticpages/staticroutersidenav.module.css +0 -129
  178. package/srcOLD/styles/staticpages/viewcart.module.css +0 -129
  179. package/srcOLD/styles/staticpages/wishlist.module.css +0 -29
@@ -1,1090 +0,0 @@
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;