tabexseriescomponents 0.0.80 → 0.0.82

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 (180) hide show
  1. package/dist/index.cjs.js +41 -13
  2. package/dist/index.esm.js +41 -13
  3. package/dist/index.umd.js +41 -13
  4. package/package.json +1 -1
  5. package/componentssrc.rar +0 -0
  6. package/srcOLD/Contexts/LanguageContext.jsx +0 -347
  7. package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +0 -28
  8. package/srcOLD/StylesJS/Customstyles.js +0 -235
  9. package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -214
  10. package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -258
  11. package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -206
  12. package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -176
  13. package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -207
  14. package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -162
  15. package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -193
  16. package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -158
  17. package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -286
  18. package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -558
  19. package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -486
  20. package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -300
  21. package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -288
  22. package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -307
  23. package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -295
  24. package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -325
  25. package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -290
  26. package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -303
  27. package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -466
  28. package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -282
  29. package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -298
  30. package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -139
  31. package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -135
  32. package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -304
  33. package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -291
  34. package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +0 -418
  35. package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +0 -382
  36. package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +0 -308
  37. package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +0 -438
  38. package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +0 -495
  39. package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +0 -295
  40. package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +0 -373
  41. package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -238
  42. package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  43. package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
  44. package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  45. package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  46. package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  47. package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  48. package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  49. package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  50. package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  51. package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  52. package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  53. package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
  54. package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  55. package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +0 -724
  56. package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -687
  57. package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +0 -632
  58. package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +0 -669
  59. package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
  60. package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -754
  61. package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -798
  62. package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -686
  63. package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -938
  64. package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -706
  65. package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -821
  66. package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
  67. package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +0 -251
  68. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
  69. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -278
  70. package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -138
  71. package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -160
  72. package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
  73. package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
  74. package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -861
  75. package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +0 -496
  76. package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -888
  77. package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
  78. package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +0 -552
  79. package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -281
  80. package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -166
  81. package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -152
  82. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
  83. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -146
  84. package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -209
  85. package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -145
  86. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -252
  87. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -175
  88. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -154
  89. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -201
  90. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
  91. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -270
  92. package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
  93. package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -275
  94. package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -459
  95. package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +0 -146
  96. package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
  97. package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
  98. package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
  99. package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  100. package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +0 -299
  101. package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
  102. package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1285
  103. package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +0 -358
  104. package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1506
  105. package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -225
  106. package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -788
  107. package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +0 -157
  108. package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -295
  109. package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -1090
  110. package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -629
  111. package/srcOLD/assets/images/cod.png +0 -0
  112. package/srcOLD/assets/images/egyptflag.png +0 -0
  113. package/srcOLD/assets/images/fawry.png +0 -0
  114. package/srcOLD/assets/images/payment.png +0 -0
  115. package/srcOLD/assets/images/paymob.png +0 -0
  116. package/srcOLD/assets/images/paypal.png +0 -0
  117. package/srcOLD/assets/images/shoppingcart.png +0 -0
  118. package/srcOLD/assets/images/usflag.png +0 -0
  119. package/srcOLD/assets/images/visa.png +0 -0
  120. package/srcOLD/assets/images/whatsapp.png +0 -0
  121. package/srcOLD/button.jsx +0 -40
  122. package/srcOLD/index.jsx +0 -175
  123. package/srcOLD/styles/Home.module.css +0 -129
  124. package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +0 -10
  125. package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  126. package/srcOLD/styles/cards/Categorycard_withshapes.module.css +0 -189
  127. package/srcOLD/styles/cards/Productcard6.module.css +0 -9
  128. package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +0 -137
  129. package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  130. package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  131. package/srcOLD/styles/cards/categorycard.module.css +0 -102
  132. package/srcOLD/styles/cards/categorycard3.module.css +0 -51
  133. package/srcOLD/styles/cards/categorycardwithtext.module.css +0 -40
  134. package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +0 -104
  135. package/srcOLD/styles/cards/productcard_with_textonhover.module.css +0 -12
  136. package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  137. package/srcOLD/styles/general/bootstrap.css +0 -4420
  138. package/srcOLD/styles/general/dropdown.css +0 -199
  139. package/srcOLD/styles/general/editorbardropdown.module.css +0 -94
  140. package/srcOLD/styles/general/filter.module.css +0 -108
  141. package/srcOLD/styles/general/form.module.css +0 -273
  142. package/srcOLD/styles/general/general.module.css +0 -709
  143. package/srcOLD/styles/general/image-gallery.css +0 -481
  144. package/srcOLD/styles/general/react-accessible-accordion.module.css +0 -52
  145. package/srcOLD/styles/general/react-phone-input-2.module.css +0 -927
  146. package/srcOLD/styles/general/scrollbtn.module.css +0 -22
  147. package/srcOLD/styles/general/slick.module.css +0 -166
  148. package/srcOLD/styles/general/tabs.module.css +0 -110
  149. package/srcOLD/styles/general/workplaceeditor.module.css +0 -328
  150. package/srcOLD/styles/globals.css +0 -26
  151. package/srcOLD/styles/headers/Allinoneheader.module.css +0 -91
  152. package/srcOLD/styles/headers/Header7.module.css +0 -50
  153. package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +0 -97
  154. package/srcOLD/styles/headers/Sideheader.module.css +0 -108
  155. package/srcOLD/styles/headers/classicheaderstyles.module.css +0 -16
  156. package/srcOLD/styles/headers/dropdown.css +0 -0
  157. package/srcOLD/styles/headers/header4.module.css +0 -175
  158. package/srcOLD/styles/headers/header5.module.css +0 -30
  159. package/srcOLD/styles/headers/header6.module.css +0 -117
  160. package/srcOLD/styles/headers/header_contactinfo.module.css +0 -78
  161. package/srcOLD/styles/headers/headerresturant.module.css +0 -89
  162. package/srcOLD/styles/headers/headerstyles.module.css +0 -24
  163. package/srcOLD/styles/headers/modernheader.module.css +0 -78
  164. package/srcOLD/styles/headers/subheader.module.css +0 -114
  165. package/srcOLD/styles/sections/Backgroundimage1.module.css +0 -17
  166. package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  167. package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +0 -49
  168. package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  169. package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  170. package/srcOLD/styles/staticpages/accordion.module.css +0 -9
  171. package/srcOLD/styles/staticpages/cart.module.css +0 -108
  172. package/srcOLD/styles/staticpages/dropdown.css +0 -196
  173. package/srcOLD/styles/staticpages/filter.module.css +0 -139
  174. package/srcOLD/styles/staticpages/login.module.css +0 -146
  175. package/srcOLD/styles/staticpages/productinfo.module.css +0 -54
  176. package/srcOLD/styles/staticpages/shop.module.css +0 -191
  177. package/srcOLD/styles/staticpages/signup.module.css +0 -206
  178. package/srcOLD/styles/staticpages/staticroutersidenav.module.css +0 -129
  179. package/srcOLD/styles/staticpages/viewcart.module.css +0 -129
  180. package/srcOLD/styles/staticpages/wishlist.module.css +0 -29
@@ -1,1285 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- import generalstyles from '../../../styles/general/general.module.css';
3
- // import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
4
- // import { FetchingContext } from '../../../../../../../Contexts/FetchingContext';
5
- // import { WebsiteDesignWorkPlaceContext } from '../../../../../../../Contexts/WebsiteDesignWorkPlaceContext';
6
- // import { TemplateRoutingContext } from '../../../../../../../Contexts/TemplateRoutingContext';
7
- import { Modal } from 'react-bootstrap';
8
- // import Pagepreloader from '../Pagepreloader/Pagepreloader';
9
- import { css } from 'glamor';
10
- import { IoLocationSharp } from 'react-icons/io5';
11
- import shoppingcart from '../../../assets/images/shoppingcart.png';
12
- import { IKImage } from 'imagekitio-react';
13
- import { HiOutlineChevronRight, HiOutlineChevronLeft } from 'react-icons/hi';
14
- import { GoGlobe } from 'react-icons/go';
15
- import { BsGlobe2 } from 'react-icons/bs';
16
- import onlinepayment from '../../../assets/images/payment.png';
17
- import cod from '../../../assets/images/cod.png';
18
- import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
19
- import Staticpagesrouter from '../Staticpagesrouter/Staticpagesrouter.jsx';
20
- const Ordershistory = (props) => {
21
- // const { lang, langdetect } = useContext(LanguageContext);
22
- // const { routingcountext } = useContext(TemplateRoutingContext);
23
- // const { FetchQueriesEngineContext, setFetchQueriesEngineContext, fetchorderhistoryQueryContext, fetchAuthorizationQueryContext, navigationstyle } = useContext(FetchingContext);
24
- // const {
25
- // fetch_inst_tabex_websitetemplatesQueryContext,
26
- // pageindexcontext,
27
- // StatePagePropertiesContext,
28
- // TabexSectionsComponentsContext,
29
- // } = useContext(WebsiteDesignWorkPlaceContext)
30
- const lang = props.actions.lang;
31
- const langdetect = props.actions.langdetect;
32
- const routingcountext = props.actions.routingcountext;
33
- const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
34
- const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
35
- const fetchorderhistoryQueryContext = props.actions.fetchorderhistoryQueryContext;
36
- const navigationstyle = props.actions.navigationstyle;
37
- const pageindexcontext = props.actions.pageindexcontext;
38
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
39
- const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
40
- const templatepropcontext = props.actions.templatepropcontext;
41
- const authdetailsContext = props.actions.authdetailsContext;
42
- const actions = props.actions;
43
- const [CurrentPageId, setCurrentPageId] = useState('');
44
- const [openorderitemsmodalshow, setopenorderitemsmodalshow] = useState(false);
45
- const [orderindex, setorderindex] = useState('');
46
- useEffect(() => {
47
- if (authdetailsContext?.loggedin == true) {
48
- var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
49
- tempFetchQueriesEngineContext.orderhistory = true;
50
- setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
51
- } else {
52
- routingcountext('');
53
- }
54
- }, []);
55
- const [sectionproperties, setsectionproperties] = useState('');
56
- useEffect(() => {
57
- var cartindex = templatepropcontext.pagesnprop.findIndex((x) => x.staticpageid == '6218bccb81d1c');
58
- if (cartindex >= 0) {
59
- setCurrentPageId(templatepropcontext.pagesnprop[cartindex].pageid);
60
- }
61
- }, []);
62
- useEffect(() => {
63
- // if (Object.keys(StatePagePropertiesContext).length != 0) {
64
- var secpropobj = {};
65
- props?.actions?.StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
66
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
67
- });
68
-
69
- setsectionproperties({ ...secpropobj });
70
- // }
71
- }, [props?.actions?.StatePagePropertiesContext]);
72
- const orderhistory_cssstyles = {
73
- sectiontitlespan: css({
74
- ':after': {
75
- width: sectionproperties.sectitle_lineafterwidth + '%',
76
- backgroundColor: sectionproperties.linebgcolor,
77
- },
78
- }),
79
- sectiontitlespan2: css({
80
- ':after': {
81
- width: sectionproperties.sectitle_lineafterwidth + 'px',
82
- height: '100%',
83
- backgroundColor: sectionproperties.linebgcolor,
84
- },
85
- }),
86
- pill: css({
87
- minWidth: sectionproperties.pillwidth + 'px',
88
- height: sectionproperties.pillheight + 'px',
89
- backgroundColor: sectionproperties.pillbgcolor,
90
- color: sectionproperties.pillcolor,
91
- textTransform: sectionproperties.pilltextTransform,
92
- fontWeight: sectionproperties.pillfontWeight,
93
- fontSize: sectionproperties.pillfontSize + 'px',
94
- lineHeight: sectionproperties.pillfontSize + 'px',
95
- borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
96
- }),
97
- vieworderbtn: css({
98
- color: sectionproperties.generalbtn_textColor,
99
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
100
- textTransform: sectionproperties.generalbtn_texttransform,
101
- width: sectionproperties.generalbtn_width + 'px',
102
- height: sectionproperties.generalbtn_height + 'px',
103
- background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
104
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
105
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
106
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
107
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
108
- fontWeight: sectionproperties.generalbtn_fontweight,
109
- boxShadow: sectionproperties.generalbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.generalbtn_shadowcolor : '',
110
- opacity: sectionproperties.generalbtn_opacity,
111
- border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
112
- transition: '.3s',
113
- ':hover': {
114
- background: sectionproperties.generalbtn_bgColoronhover,
115
- color: sectionproperties.generalbtn_textColoronhover,
116
- opacity: sectionproperties.generalbtn_opacityonhover,
117
- },
118
- }),
119
- tableimagecont: css({
120
- width: '70px',
121
- height: '60px',
122
- border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
123
- backgroundColor: sectionproperties.prodimage_bgcolor,
124
- borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
125
- borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
126
- borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
127
- borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
128
- display: 'flex',
129
- alignItems: 'center',
130
- justifyContent: 'center',
131
- position: 'relative',
132
- }),
133
- productNameStyles: css({
134
- color: sectionproperties.prodNameColor,
135
- fontSize: sectionproperties.prodNameFontSize + 'px',
136
- textTransform: sectionproperties.prodNameTextTranform,
137
- fontWeight: sectionproperties.prodNameFontWeight,
138
- }),
139
- productPricestyles: css({
140
- color: sectionproperties.prodPriceColor,
141
- fontSize: sectionproperties.prodpriceFontSize + 'px',
142
- fontWeight: sectionproperties.prodPriceFontWeight,
143
- }),
144
- imagecont: css({
145
- width: sectionproperties.prodimage_width + 'px',
146
- height: sectionproperties.prodimage_height + 'px',
147
- border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
148
- backgroundColor: sectionproperties.prodimage_bgcolor,
149
- borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
150
- borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
151
- borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
152
- borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
153
- display: 'flex',
154
- alignItems: 'center',
155
- justifyContent: 'center',
156
- backgroundRepeat: 'no-repeat',
157
- backgroundSize: 'cover',
158
- backgroundPosition: 'center',
159
- position: 'relative',
160
- }),
161
- innersectiontitlestyles: css({
162
- color: sectionproperties.innersection_titlecolor,
163
- fontSize: sectionproperties.innersection_titlefontsize + 'px',
164
- fontWeight: sectionproperties.innersection_titlefontweight,
165
- textTransform: sectionproperties.innersection_titletextTransform,
166
- }),
167
- userinfotextstyles: css({
168
- color: sectionproperties.userinfo_color,
169
- fontWeight: sectionproperties.userinfo_fontweight,
170
- fontSize: sectionproperties.userinfo_fontsize + 'px',
171
- }),
172
- userinfotexticonstyles: css({
173
- fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
174
- color: sectionproperties.userinfotext_iconcolor,
175
- }),
176
- summarysectionstyles: css({
177
- fontSize: sectionproperties.summary_fontsize + 'px',
178
- color: sectionproperties.summary_textcolor,
179
- fontWeight: sectionproperties.summary_textfontweight,
180
- textTransform: sectionproperties.summary_texttransform,
181
- }),
182
- iconcontainer: css({
183
- color: sectionproperties.generalbtn_textColor,
184
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
185
- textTransform: sectionproperties.generalbtn_texttransform,
186
- width: sectionproperties.generalbtn_width + 'px',
187
- height: sectionproperties.generalbtn_height + 'px',
188
- background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
189
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
190
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
191
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
192
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
193
- fontWeight: sectionproperties.generalbtn_fontweight,
194
- boxShadow: sectionproperties.generalbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.generalbtn_shadowcolor : '',
195
- opacity: sectionproperties.generalbtn_opacity,
196
- border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
197
- transition: '.3s',
198
- cursor: 'pointer',
199
- ':hover': {
200
- background: sectionproperties.generalbtn_bgColoronhover,
201
- color: sectionproperties.generalbtn_textColoronhover,
202
- opacity: sectionproperties.generalbtn_opacityonhover,
203
- },
204
- }),
205
- };
206
- const [bgimagesarray, setbgimagesarray] = useState([]);
207
- useEffect(() => {
208
- if (sectionproperties.length != 0) {
209
- if (sectionproperties.arrayofobjectimagesonly != null) {
210
- var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
211
- if (Array.isArray(arrayofobjectimagesonlyparsed)) {
212
- setbgimagesarray([...arrayofobjectimagesonlyparsed]);
213
- }
214
- }
215
- }
216
- }, [sectionproperties]);
217
- return (
218
- <div className="row m-0 w-100">
219
- {sectionproperties.showbgimage == 'Show' && (
220
- <div className="col-lg-12 p-0 d-flex justify-content-center">
221
- <div
222
- style={{
223
- width: sectionproperties.image_width + 'vw',
224
- height: sectionproperties.image_height + 'vh',
225
- marginBottom: sectionproperties.image_mb + 'px',
226
- position: 'relative',
227
- }}
228
- >
229
- <IKImage
230
- urlEndpoint={IKurlEndpoint}
231
- publicKey={IKpublicKey}
232
- path={
233
- bgimagesarray.length != 0
234
- ? langdetect == 'en'
235
- ? '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image
236
- : '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image_ar
237
- : ''
238
- }
239
- style={{
240
- height: '100%',
241
- width: '100%',
242
- // objectFit: 'cover',
243
- margin: 0,
244
- padding: 0,
245
- background: sectionproperties.image_bgcolor,
246
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
247
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
248
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
249
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
250
- zIndex: -1,
251
- // transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
252
- }}
253
- />
254
- <div
255
- className={' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center '}
256
- style={{
257
- position: 'absolute',
258
- top: 0,
259
- right: 0,
260
- bottom: 0,
261
- left: 0,
262
- }}
263
- >
264
- <p
265
- className={' m-0 p-0 '}
266
- style={{
267
- fontSize: sectionproperties.imagetextfontsize + 'px',
268
- color: sectionproperties.imagetextcolor,
269
- textTransform: sectionproperties.imagetexttextTransform,
270
- fontWeight: sectionproperties.imagetextfontWeight,
271
- }}
272
- >
273
- {lang.previousorders}
274
- </p>
275
- </div>
276
- </div>
277
- </div>
278
- )}
279
- {fetchorderhistoryQueryContext.isFetching && <div className={'row ml-0 mr-0 mt-2 w-100 pb-3 mb-3'}>{/* <Pagepreloader /> */}</div>}
280
- <div className="col-lg-12 p-0">
281
- {!fetchorderhistoryQueryContext.isFetching && fetchorderhistoryQueryContext.isSuccess && (
282
- <div
283
- 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'}
284
- style={{
285
- marginTop: sectionproperties.marginTop + 'px',
286
- marginBottom: sectionproperties.marginBottom + 'px',
287
- paddingLeft: sectionproperties.paddingLeft + 'px',
288
- paddingRight: sectionproperties.paddingRight + 'px',
289
- paddingTop: sectionproperties.paddingTop + 'px',
290
- paddingBottom: sectionproperties.paddingBottom + 'px',
291
- background: sectionproperties.backgroundColor,
292
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
293
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
294
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
295
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
296
- borderColor: sectionproperties.sectioncardbordercolor,
297
- border: sectionproperties.sectioncardborderwidth + 'px solid',
298
- }}
299
- >
300
- <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'}>
301
- <Staticpagesrouter currentpageprops={'previousorders'} actions={actions} />
302
- </div>
303
- <div className={navigationstyle == 'Side Navigation' ? 'col-lg-9 p-0' : 'col-lg-12 p-0'}>
304
- <div className={'row ml-0 mr-0'}>
305
- {navigationstyle == 'Side Navigation' && (
306
- <div className="row m-0 w-100">
307
- {sectionproperties.sectiontitlestyle == 'Line Under Text' && (
308
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0">
309
- <div className={`${generalstyles.sectiontitlecont} `}>
310
- <div
311
- className={' col-lg-12 d-flex align-items-center p-0'}
312
- style={{
313
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
314
- marginTop: sectionproperties.sectionTitleMarginTop + 'px',
315
- marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
316
- marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
317
- marginRight: sectionproperties.sectionTitleMarginRight + 'px',
318
- }}
319
- >
320
- <span
321
- className={`${orderhistory_cssstyles.sectiontitlespan}`}
322
- style={{
323
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
324
- color: sectionproperties.sectionTitleColor,
325
-
326
- textTransform: sectionproperties.sectionTitleTextTransform,
327
- fontWeight: sectionproperties.sectionTitleFontWeight,
328
- }}
329
- >
330
- {langdetect == 'en' ? 'Previous Orders' : 'الطلبات السابقة'}:
331
- </span>
332
- <span className={` ${orderhistory_cssstyles.pill}` + ' ml-1 mr-1 d-flex align-items-center justify-content-center '}>
333
- {fetchorderhistoryQueryContext.data.data.ordershistory.length}
334
- </span>
335
- </div>
336
- </div>
337
- </div>
338
- )}
339
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && (
340
- <div
341
- className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0"
342
- style={{
343
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
344
- }}
345
- >
346
- <div
347
- className={`${generalstyles.sectiontitlecont2}`}
348
- style={{
349
- marginTop: sectionproperties.sectionTitleMarginTop + 'px',
350
- marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
351
- marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
352
- marginRight: sectionproperties.sectionTitleMarginRight + 'px',
353
- }}
354
- >
355
- <span
356
- className={`${orderhistory_cssstyles.sectiontitlespan2}` + ' pl-3 '}
357
- style={{
358
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
359
- color: sectionproperties.sectionTitleColor,
360
- textTransform: sectionproperties.sectionTitleTextTransform,
361
- fontWeight: sectionproperties.sectionTitleFontWeight,
362
- }}
363
- >
364
- Orders
365
- <br /> History:
366
- </span>
367
- <span className={` ${orderhistory_cssstyles.pill}` + ' ml-1 mr-1 pl-2 pr-2 d-flex align-items-center justify-content-center mt-auto mb-2 '}>
368
- {fetchorderhistoryQueryContext.data.data.ordershistory.length}
369
- </span>
370
- </div>
371
- </div>
372
- )}
373
- </div>
374
- )}
375
- <div className="row m-0 w-100">
376
- {orderindex.length == 0 && (
377
- <div className="row m-0 w-100">
378
- {sectionproperties.pagedesign == 'Design 1 (Cards)' && (
379
- <div className="row m-0 w-100">
380
- {fetchorderhistoryQueryContext.data.data.ordershistory.map((item, index) => {
381
- return (
382
- <div
383
- className={
384
- navigationstyle == 'Side Navigation'
385
- ? ' col-lg-6 col-md-12 col-sm-12 mb-4 pl-md-2 pr-md-2 pr-0 '
386
- : ' col-lg-4 col-md-6 col-sm-12 mb-4 pl-md-2 pr-md-2 pr-0 '
387
- }
388
- >
389
- <div
390
- className={`${generalstyles.card}` + ' noshadow '}
391
- onClick={() => {
392
- setorderindex(index);
393
- setopenorderitemsmodalshow(true);
394
- }}
395
- >
396
- <div className="row m-0 w-100">
397
- <div className="col-lg-6 col-md-6 col-sm-6 p-0">
398
- <div className="row m-0 w-100 d-flex align-items-center">
399
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center">
400
- <p
401
- className={' m-0 p-0 '}
402
- style={{
403
- color: sectionproperties.generaltext_fontColor,
404
- fontSize: sectionproperties.generaltext_fontSize + 'px',
405
- fontWeight: sectionproperties.generaltext_fontWeight,
406
- textTransform: sectionproperties.generaltext_textTransform,
407
- }}
408
- >
409
- {lang.orderid}:{' '}
410
- <span
411
- style={{
412
- color: sectionproperties.text_secondarycolor,
413
- }}
414
- >
415
- {item.orderid}
416
- </span>
417
- </p>
418
- </div>
419
- </div>
420
- </div>
421
- <div className="col-lg-6 col-md-6 col-sm-6 p-0 d-flex justify-content-end">
422
- <button
423
- className={`${orderhistory_cssstyles.vieworderbtn}`}
424
- onClick={() => {
425
- setorderindex(index);
426
- setopenorderitemsmodalshow(true);
427
- }}
428
- >
429
- {langdetect == 'en' ? 'View Order' : 'عرض الطلب'}
430
- </button>
431
- </div>
432
- <div className="col-lg-12 p-0 d-flex align-items-center justify-content-start">
433
- <p
434
- className={' m-0 p-0 d-flex justify-content-start module line-clamp '}
435
- style={{
436
- color: sectionproperties.generaltext_fontColor,
437
- fontSize: sectionproperties.generaltext_fontSize + 'px',
438
- fontWeight: sectionproperties.generaltext_fontWeight,
439
- textTransform: sectionproperties.generaltext_textTransform,
440
- }}
441
- >
442
- {lang.numberofproducts}:{' '}
443
- <span
444
- className="ml-1 mr-1"
445
- style={{
446
- color: sectionproperties.text_secondarycolor,
447
- }}
448
- >
449
- {item.orderitems.length}
450
- </span>
451
- </p>
452
- </div>
453
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex mt-2">
454
- <span
455
- className={`${generalstyles.pill} ` + ' pl-2 pr-2 '}
456
- style={{ backgroundColor: item.instorderstatus != null ? item.instorderstatus.statuscolor : 'orange' }}
457
- >
458
- {item.instorderstatus != null ? item.instorderstatus.orderstatusname_en : 'In Progress'}
459
- </span>
460
- </div>
461
-
462
- <div className="col-lg-12 p-0 d-flex align-items-center justify-content-end">
463
- <i
464
- className={langdetect == 'en' ? 'text-light opacity-6 fa fa-clock mr-1 ' : ' text-light opacity-6 fa fa-clock ml-1 '}
465
- ></i>
466
- <p className={'text-light font-weight-500 m-0 p-0 '}>{item.timestamp}</p>
467
- </div>
468
- </div>
469
- </div>
470
- </div>
471
- );
472
- })}
473
- {fetchorderhistoryQueryContext.data.data.ordershistory.length == 0 && (
474
- <div className="row m-0 w-100 d-flex align-items-center justify-content-center h-100 pt-5 pb-5" style={{ height: '35vh' }}>
475
- <div className={generalstyles.card + ' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '}>
476
- <img src={shoppingcart} style={{ maxWidth: '250px', maxHeight: '250px' }} />
477
- <p className="font-weight-500" style={{ fontSize: '20px' }}>
478
- {langdetect == 'en' ? 'No Previous Orders' : 'لا توجد طلبات سابقة'}
479
- </p>
480
- </div>
481
- </div>
482
- )}
483
- </div>
484
- )}
485
- {sectionproperties.pagedesign == 'Design 2 (Table)' && (
486
- <div className="w-100" style={{ background: 'white', padding: '20px' }}>
487
- <div className={`${generalstyles.table_responsive}` + ' col-lg-12 '}>
488
- <table className={`${generalstyles.table} ${generalstyles.table_thbg}`}>
489
- <thead className="" style={{ background: '#eee' }}>
490
- <th
491
- className={'font-weight-500 font-14 text-uppercase text-light mw-150 mw-md-300'}
492
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
493
- >
494
- {lang.orderid}
495
- </th>
496
- <th className="text-center font-weight-500 font-14 text-uppercase text-light" style={{ minWidth: '200px' }}>
497
- {lang.status}
498
- </th>
499
- <th className="text-capitalize text-center font-weight-500 font-14 text-uppercase text-light" style={{ minWidth: '200px' }}>
500
- {lang.numberofproducts}
501
- </th>
502
- <th className="text-capitalize text-center font-weight-500 font-14 text-uppercase text-light">{lang.showmore}</th>
503
- </thead>
504
- <tbody>
505
- {fetchorderhistoryQueryContext.data.data.ordershistory.map((item, index) => {
506
- return (
507
- <tr>
508
- <td className="mw-150 mw-md-300" style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}>
509
- {item.orderid}
510
- </td>
511
- <td className="text-center" style={{ minWidth: '200px' }}>
512
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex mt-2 justify-content-center">
513
- <span
514
- className={`${generalstyles.pill} ` + ' pl-2 pr-2 '}
515
- style={{ backgroundColor: item.instorderstatus != null ? item.instorderstatus.statuscolor : 'orange' }}
516
- >
517
- {item.instorderstatus != null ? item.instorderstatus.orderstatusname_en : lang.inprogress}
518
- </span>
519
- </div>
520
- </td>
521
- <td className="text-center" style={{ minWidth: '200px' }}>
522
- <span
523
- className="ml-1 mr-1"
524
- style={{
525
- color: sectionproperties.text_secondarycolor,
526
- }}
527
- >
528
- {item.orderitems.length}
529
- </span>
530
- </td>
531
- <td className="text-center cursor-pointer">
532
- <i
533
- className="h-100 d-flex align-items-center justify-content-center"
534
- onClick={() => {
535
- setorderindex(index);
536
- // setopenorderitemsmodalshow(true);
537
- }}
538
- >
539
- {langdetect == 'en' ? <HiOutlineChevronRight /> : <HiOutlineChevronLeft />}
540
- </i>
541
- </td>
542
- </tr>
543
- );
544
- })}
545
- </tbody>
546
- </table>
547
- </div>
548
- {fetchorderhistoryQueryContext.data.data.ordershistory.length == 0 && (
549
- <div className="row m-0 w-100 d-flex align-items-center justify-content-center h-100" style={{ height: '35vh' }}>
550
- <div className={' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '}>
551
- <img src={shoppingcart} style={{ maxWidth: '250px', maxHeight: '250px' }} />
552
- <p className="font-weight-500" style={{ fontSize: '15px' }}>
553
- {langdetect == 'en' ? 'No Previous Orders' : 'لا توجد طلبات سابقة'}
554
- </p>
555
- </div>
556
- </div>
557
- )}
558
- </div>
559
- )}
560
- </div>
561
- )}
562
- {orderindex.length != 0 && (
563
- <div className={'row ml-0 mr-0 w-100 pb-3 mb-3'}>
564
- <div className="col-lg-12 p-0 mb-3 d-flex align-items-center">
565
- <div
566
- onClick={() => {
567
- setorderindex('');
568
- }}
569
- className={`${orderhistory_cssstyles.iconcontainer}`}
570
- >
571
- <i className="h-100 d-flex align-items-center justify-content-center">
572
- {langdetect == 'en' ? <HiOutlineChevronLeft /> : <HiOutlineChevronRight />}
573
- </i>
574
- </div>
575
- <p
576
- className="m-0 p-0 ml-2 mr-2 wordbreak"
577
- style={{
578
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
579
- color: sectionproperties.sectionTitleColor,
580
- textTransform: sectionproperties.sectionTitleTextTransform,
581
- fontWeight: sectionproperties.sectionTitleFontWeight,
582
- }}
583
- >
584
- {lang.orderid}:{' '}
585
- <span
586
- style={{
587
- color: sectionproperties.sectiontitlesecondarycolor,
588
- direction: 'ltr',
589
- }}
590
- >
591
- #{fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderid}
592
- </span>
593
- </p>
594
- </div>
595
-
596
- <div className={langdetect == 'en' ? 'col-lg-9 pl-0 p-md-0 mb-md-3' : 'col-lg-9 pr-0 p-md-0 mb-md-3'}>
597
- <div className="row m-0 w-100">
598
- <div className="col-lg-12 p-0">
599
- <div className={`${generalstyles.card}` + ' w-100 pl-3 pr-3 '}>
600
- <div className="col-lg-12 p-0">
601
- <div className="row m-0 w-100">
602
- <div className="col-lg-9 col-md-9 col-sm-9 p-0 d-flex align-items-center justify-content-start">
603
- <p
604
- className={orderhistory_cssstyles.innersectiontitlestyles + ' m-0 p-0 wordbreak '}
605
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
606
- >
607
- {lang.orderdetails}
608
- </p>
609
- </div>
610
-
611
- <div className="col-lg-3 col-md-3 col-sm-3 p-0 d-flex align-items-center justify-content-end">
612
- <p style={{ width: '.9vh', height: '.9vh', borderRadius: '50%', backgroundColor: 'orange' }} className="m-0 p-0"></p>
613
- <p
614
- className="m-0 p-0 fontfamilymedium wordbreak d-flex ml-1 mr-1"
615
- style={{
616
- textAlign: langdetect == 'en' ? 'left' : 'right',
617
- color: 'orange',
618
- }}
619
- >
620
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus != null
621
- ? fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_en
622
- : lang.inprogress}
623
- </p>
624
- </div>
625
- <div className="col-lg-12 p-0">
626
- <hr className="mt-2 mb-3" />
627
- </div>
628
- </div>
629
- <div className="row m-0 w-100">
630
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitems.map((item, index) => {
631
- var variantoptions = [];
632
- if (item.isvariant == 1) {
633
- var decodevariantoptions = JSON.parse(item.variantoptions);
634
- variantoptions = decodevariantoptions;
635
- }
636
- return (
637
- <div className={' col-lg-12 col-md-12 d-flex p-0'}>
638
- <div className="row m-0 w-100">
639
- <div className={' col-lg-12 col-md-12 d-flex cursor-pointer p-0'}>
640
- <div className={`${orderhistory_cssstyles.tableimagecont}`}>
641
- <IKImage
642
- path={item.mainproductimage}
643
- style={{
644
- width: '100%',
645
- height: '100%',
646
- objectFit: 'cover',
647
- }}
648
- loading="lazy"
649
- />
650
- </div>
651
- <div className=" pl-2 pr-2 " style={{ flex: 1 }}>
652
- <div className="row m-0 w-100 d-flex align-items-start">
653
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-start">
654
- <p className={orderhistory_cssstyles.productNameStyles + ' p-0 m-0 wordbreak '}>
655
- {item.productname}
656
- </p>
657
- </div>
658
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center">
659
- <p className={orderhistory_cssstyles.productPricestyles + ' m-0 p-0 wordbreak '}>
660
- {langdetect == 'en' ? 'EGP' : ''} {item.finalprice} x {item.quantity}{' '}
661
- {langdetect == 'en' ? '' : 'ج.م'}
662
- </p>
663
- </div>
664
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center">
665
- {item.isvariant == 1 && (
666
- <div className="row m-0 w-100">
667
- {variantoptions.map((variantoptionitem, varitanoptionindex) => {
668
- return (
669
- <p
670
- className={
671
- orderhistory_cssstyles.pill +
672
- ' m-0 p-0 mr-1 font-13 fontfamilymedium wordbreak allcentered'
673
- }
674
- >
675
- <span
676
- className={' mr-1 ml-1 mb-2 pl-1 pr-1 '}
677
- style={{
678
- Width: sectionproperties.pillwidth + 'px',
679
- }}
680
- >
681
- <span> {variantoptionitem.valuename} </span>
682
- </span>
683
- <p> </p>
684
- </p>
685
- );
686
- })}
687
- </div>
688
- )}
689
- </div>
690
- </div>
691
- </div>
692
- </div>
693
- <div className="col-lg-12 p-0">
694
- <hr className="mt- mb-3" />
695
- </div>
696
- </div>
697
- </div>
698
- );
699
- })}
700
- </div>
701
- </div>
702
- </div>
703
- </div>
704
- </div>
705
- </div>
706
- <div className={langdetect == 'en' ? 'col-lg-3 pr-0 p-md-0' : 'col-lg-3 pl-0 p-md-0'}>
707
- <div
708
- className="row m-0 w-100 mb-3"
709
- style={{
710
- background: sectionproperties.userinfo_sectionbgcolor,
711
- borderRadius: sectionproperties.userinfo_borderradius + 'px',
712
- marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
713
- marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
714
- border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor,
715
- }}
716
- >
717
- <div className="col-lg-12 pl-3 pr-3 pt-2">
718
- <p
719
- className={orderhistory_cssstyles.innersectiontitlestyles + ' m-0 p-0 wordbreak '}
720
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
721
- >
722
- {lang.shippingaddress}
723
- </p>
724
- </div>
725
- <div className="col-lg-12 p-0">
726
- <hr className="mt-2 mb-2" />
727
- </div>
728
- <div className="row m-0 w-100 pl-3 pr-3 pb-2">
729
- <div className="col-lg-12 d-flex fontfamilymedium text-focus mb-2">
730
- <i className="h-100 d-flex align-items-center justify-content-center opacity-6">
731
- <GoGlobe className={`${orderhistory_cssstyles.userinfotexticonstyles}`} />
732
- </i>
733
- <p className={orderhistory_cssstyles.userinfotextstyles + ' m-0 p-0 text-capitalize ml-2 mr-2 '}>
734
- {lang.country}:{' '}
735
- <span
736
- style={{
737
- color: sectionproperties.userinfotextsecondarycolor,
738
- fontWeight: sectionproperties.userinfo_fontweight,
739
- fontSize: sectionproperties.userinfo_fontsize + 'px',
740
- }}
741
- >
742
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].country}
743
- </span>
744
- </p>
745
- </div>
746
- <div className="col-lg-12 d-flex fontfamilymedium text-focus mb-2">
747
- <i className="h-100 d-flex align-items-center justify-content-center">
748
- <BsGlobe2 className={`${orderhistory_cssstyles.userinfotexticonstyles}`} />
749
- </i>
750
- <p className={orderhistory_cssstyles.userinfotextstyles + ' m-0 p-0 text-capitalize ml-2 mr-2 '}>
751
- {lang.stategov}:{' '}
752
- <span className={orderhistory_cssstyles.userinfotextstyles} style={{ color: sectionproperties.userinfotextsecondarycolor }}>
753
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].state}
754
- </span>
755
- </p>
756
- </div>
757
- <div className="col-lg-12 d-flex fontfamilymedium text-focus mb-2">
758
- <i className="h-100 d-flex align-items-center justify-content-center">
759
- <BsGlobe2 className={`${orderhistory_cssstyles.userinfotexticonstyles}`} />
760
- </i>
761
- <p className={orderhistory_cssstyles.userinfotextstyles + ' m-0 p-0 text-capitalize ml-2 mr-2 '}>
762
- {lang.shippingfees}:{' '}
763
- <span style={{ color: sectionproperties.userinfotextsecondarycolor }}>
764
- {langdetect == 'en' ? 'EGP' : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].zoneprice}{' '}
765
- {langdetect == 'en' ? '' : 'ج.م'}
766
- </span>
767
- </p>
768
- </div>
769
- <div className="col-lg-12 d-flex fontfamilymedium text-focus">
770
- <i className="h-100 d-flex align-items-center justify-content-center">
771
- <IoLocationSharp className={`${orderhistory_cssstyles.userinfotexticonstyles}`} />
772
- </i>
773
- <p className={orderhistory_cssstyles.userinfotextstyles + ' m-0 p-0 text-capitalize ml-2 mr-2 '}>
774
- {lang.address}:{' '}
775
- <span style={{ color: sectionproperties.userinfotextsecondarycolor }}>
776
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].address}
777
- </span>
778
- </p>
779
- </div>
780
- </div>
781
- </div>
782
- <div
783
- className="row m-0 w-100 mb-3"
784
- style={{
785
- background: sectionproperties.summary_sectionbgcolor,
786
- borderRadius: sectionproperties.summary_sectionborderradius + 'px',
787
- border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
788
- }}
789
- >
790
- <div className="col-lg-12 pl-3 pr-3 pt-2">
791
- <p
792
- className={orderhistory_cssstyles.innersectiontitlestyles + ' m-0 p-0 wordbreak '}
793
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
794
- >
795
- {lang.orderinvoice}
796
- </p>
797
- </div>
798
- <div className="col-lg-12 p-0">
799
- <hr className="mt-2 mb-2" />
800
- </div>
801
- <div className="row m-0 w-100 pl-3 pr-3 pb-2">
802
- <div className="row m-0 w-100 mb-2">
803
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex p-0">
804
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center '}>{lang.subtotal}</p>
805
- </div>
806
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
807
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 text-capitalize '}>
808
- {langdetect == 'en' ? 'EGP' : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice}{' '}
809
- {langdetect == 'en' ? '' : 'ج.م'}
810
- </p>
811
- </div>
812
- </div>
813
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && (
814
- <div className="row m-0 w-100 mb-2">
815
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex p-0">
816
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center '}>{lang.promocodediscount}</p>
817
- </div>
818
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
819
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 '}>
820
- {langdetect == 'en' ? 'EGP' : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].discountprice}{' '}
821
- {langdetect == 'en' ? '' : 'ج.م'}
822
- </p>
823
- </div>
824
- </div>
825
- )}
826
- <div className="row m-0 w-100 mb-2">
827
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex p-0">
828
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center '}>{lang.shippingfees}</p>
829
- </div>
830
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
831
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 '}>
832
- {langdetect == 'en' ? 'EGP' : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].zoneprice}{' '}
833
- {langdetect == 'en' ? '' : 'ج.م'}
834
- </p>
835
- </div>
836
- </div>
837
- <div className="col-lg-12 p-0">
838
- <hr className="mt-2 mb-2" />
839
- </div>
840
- <div className="row m-0 w-100 mb-2">
841
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex p-0">
842
- <p
843
- className="m-0 p-0"
844
- style={{
845
- fontSize: sectionproperties.total_fontsize + 'px',
846
- fontWeight: sectionproperties.total_fontweight,
847
- textTransform: sectionproperties.total_texttransform,
848
- color: sectionproperties.total_color,
849
- }}
850
- >
851
- {lang.total}
852
- </p>
853
- </div>
854
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
855
- <p
856
- className="m-0 p-0"
857
- style={{
858
- fontSize: sectionproperties.total_fontsize + 'px',
859
- fontWeight: sectionproperties.total_fontweight,
860
- textTransform: sectionproperties.total_texttransform,
861
- color: sectionproperties.total_color,
862
- }}
863
- >
864
- {langdetect == 'en' ? 'EGP' : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].totalorderprice}{' '}
865
- {langdetect == 'en' ? '' : 'ج.م'}
866
- </p>
867
- </div>
868
- </div>
869
- </div>
870
- </div>
871
-
872
- <div
873
- className="row m-0 w-100 mb-3"
874
- style={{
875
- background: sectionproperties.payment_sectionbgcolor,
876
- borderRadius: sectionproperties.payment_borderradius + 'px',
877
- border: sectionproperties.payment_borderwidth + 'px solid ' + sectionproperties.payment_sectionbordercolor,
878
- }}
879
- >
880
- <div className="row m-0 w-100">
881
- <div className="col-lg-12 pl-3 pr-3 pt-2">
882
- <p
883
- className={orderhistory_cssstyles.innersectiontitlestyles + ' m-0 p-0 wordbreak '}
884
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
885
- >
886
- {lang.paymentmethod}
887
- </p>
888
- </div>
889
- <div className="col-lg-12 p-0">
890
- <hr className="mt-2 mb-2" />
891
- </div>
892
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].paymentmethod != 'cod' && (
893
- <div className="row m-0 w-100 mb-2 d-flex align-items-center pl-3 pr-3">
894
- <img src={onlinepayment} style={{ maxWidth: '5vh', maxHeight: '4vh' }} />
895
- <p
896
- className="m-0 p-0 ml-2 mr-2"
897
- style={{
898
- fontSize: sectionproperties.paymenttextfontsize + 'px',
899
- color: sectionproperties.paymenttextcolor,
900
- fontWeight: sectionproperties.paymenttextfontweight,
901
- }}
902
- >
903
- {lang.onlinepayment}
904
- </p>
905
- </div>
906
- )}
907
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].paymentmethod == 'cod' && (
908
- <div className="row m-0 w-100 mb-2 d-flex align-items-center pl-3 pr-3">
909
- <img src={cod} style={{ maxWidth: '5vh', maxHeight: '4vh' }} />
910
- <p
911
- className="m-0 p-0 ml-2 mr-2"
912
- style={{
913
- fontSize: sectionproperties.paymenttextfontsize + 'px',
914
- color: sectionproperties.paymenttextcolor,
915
- fontWeight: sectionproperties.paymenttextfontweight,
916
- }}
917
- >
918
- {lang.cod}
919
- </p>
920
- </div>
921
- )}
922
- </div>
923
- </div>
924
- </div>
925
- </div>
926
- )}
927
- </div>
928
- </div>
929
- {/* {orderindex.length != 0 && (
930
- <Modal show={openorderitemsmodalshow} onHide={() => setopenorderitemsmodalshow(false)} centered size="lg">
931
- <Modal.Body>
932
- <div className={'row ml-0 mr-0 mt-2 w-100 pb-3 mb-3'}>
933
- <div className={`${generalstyles.table_responsive}` + ' col-lg-12 '}>
934
- <table className={`${generalstyles.table} ${generalstyles.table_hover} ${generalstyles.table_bordered}`}>
935
- <thead
936
- className=""
937
- style={{
938
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
939
- }}
940
- >
941
- <th className=" text-capitalize text-center ">{langdetect == 'en' ? 'Image' : 'الصورة'}</th>
942
- <th className={langdetect == 'en' ? 'text-capitalize' : 'text-capitalize text-right'}>{langdetect == 'en' ? 'Product Name' : 'إسم المنتج'}</th>
943
- <th className="text-center">{langdetect == 'en' ? 'Price' : 'السعر'}</th>
944
- <th className="text-capitalize text-center">{langdetect == 'en' ? 'َQuantity' : 'الكمية'}</th>
945
- <th className="text-capitalize text-center">{langdetect == 'en' ? 'Total' : 'الإجمالى'}</th>
946
- </thead>
947
- <tbody>
948
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitems.map((item, index) => {
949
- var variantoptions = [];
950
- if (item.isvariant == 1) {
951
- var decodevariantoptions = JSON.parse(item.variantoptions);
952
- variantoptions = decodevariantoptions;
953
- }
954
- return (
955
- <tr
956
- style={{
957
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
958
- }}
959
- >
960
- <td style={{ width: '50px' }}>
961
- <div className={`${generalstyles.image_table}` + ' mb-auto ml-auto mr-auto '}>
962
- <img src={serverbaselink + item.mainproductimage} />
963
- </div>
964
- </td>
965
- <td className={langdetect == 'en' ? 'text-capitalize' : 'text-capitalize text-right'} style={{ maxWidth: '200px' }}>
966
- <div>
967
- {item.productname}
968
- {item.isvariant == 1 && (
969
- <div className="row m-0 w-100">
970
- {variantoptions.map((variantoptionitem, varitanoptionindex) => {
971
- return (
972
- <span className={`${generalstyles.pill} ` + ' mr-1 ml-1 mb-2 pl-2 pr-2 bg-info font-weight-500 '}>
973
- {variantoptionitem.valuename}
974
- </span>
975
- );
976
- })}
977
- </div>
978
- )}
979
- </div>
980
- </td>
981
- <td className="text-center" style={{ maxWidth: '70px' }}>
982
- {item.finalprice} {lang.egp}
983
- </td>
984
- <td className="text-center" style={{ maxWidth: '70px' }}>
985
- {item.quantity}
986
- </td>
987
- <td style={{ maxWidth: '70px' }} className="text-center">
988
- <div className="row m-0 w-100 text-center">
989
- <span className="m-auto">
990
- {item.itemtotalprice} {lang.egp}
991
- </span>
992
- </div>
993
- </td>
994
- </tr>
995
- );
996
- })}
997
- </tbody>
998
- </table>
999
- </div>
1000
- <div className="w-100 row m-0">
1001
- <div className="col-lg-12 mb-3">
1002
- <div className={`${generalstyles.card}`}>
1003
- <div className="w-100 row m-0">
1004
- <div className="col-lg-12 p-0">
1005
- <p
1006
- className="m-0 p-0 font-weight-600 font-15 d-flex align-items-"
1007
- style={{
1008
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1009
- }}
1010
- >
1011
- {langdetect == 'en' ? 'Order Shipping Details' : 'تفاصيل الشحن'}
1012
- </p>
1013
- </div>
1014
- <div className="col-lg-12 p-0">
1015
- <hr className="mt-2 mb-2" />
1016
- </div>
1017
- <div className="col-lg-6 mb-2 d-flex align-items-center">
1018
- <div
1019
- className="d-flex align-items-center justify-content-center"
1020
- style={{ width: '3.5vh', height: '3.5vh', borderRadius: '50%', background: 'white', boxShadow: '0 0 10px #e6e6e6' }}
1021
- >
1022
- <i className="fa fa-globe text-light"></i>
1023
- </div>
1024
- <p className="m-0 p-0 font-weight-500 font-15 text-light ml-1 mr-1">
1025
- {langdetect == 'en' ? 'Country' : 'البلد'}:{' '}
1026
- <span
1027
- className="font-weight-600 wordbreak"
1028
- style={{
1029
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1030
- }}
1031
- >
1032
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].country}
1033
- </span>
1034
- </p>
1035
- </div>
1036
- <div className="col-lg-6 d-flex align-items-center mb-2">
1037
- <div
1038
- className="d-flex align-items-center justify-content-center"
1039
- style={{ width: '3.5vh', height: '3.5vh', borderRadius: '50%', background: 'white', boxShadow: '0 0 10px #e6e6e6' }}
1040
- >
1041
- <i className="fa fa-globe text-light"></i>
1042
- </div>
1043
- <p className="m-0 p-0 font-weight-500 font-15 text-light ml-1 mr-1">
1044
- {langdetect == 'en' ? 'State' : 'المحافظة'}:{' '}
1045
- <span
1046
- className="font-weight-600 wordbreak"
1047
- style={{
1048
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1049
- }}
1050
- >
1051
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].state}
1052
- </span>
1053
- </p>
1054
- </div>
1055
- <div className="col-lg-6 d-flex align-items-center">
1056
- <div
1057
- className="d-flex align-items-center justify-content-center"
1058
- style={{ width: '3.5vh', height: '3.5vh', borderRadius: '50%', background: 'white', boxShadow: '0 0 10px #e6e6e6' }}
1059
- >
1060
- <i className="text-light d-flex align-items-center justify-content-center">
1061
- <FaMoneyBillWaveAlt />
1062
- </i>
1063
- </div>
1064
- <p className="m-0 p-0 font-weight-500 font-15 text-light ml-1 mr-1">
1065
- {langdetect == 'en' ? 'Shipping Fees' : 'مصاريف الشحن'}:{' '}
1066
- <span
1067
- className="font-weight-600 wordbreak"
1068
- style={{
1069
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1070
- }}
1071
- >
1072
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].zoneprice} EGP
1073
- </span>
1074
- </p>
1075
- </div>
1076
- <div className="col-lg-6 d-flex align-items-center">
1077
- <div
1078
- className="d-flex align-items-center justify-content-center"
1079
- style={{ width: '3.5vh', height: '3.5vh', borderRadius: '50%', background: 'white', boxShadow: '0 0 10px #e6e6e6' }}
1080
- >
1081
- <i className="d-flex align-items-center justify-content-center text-light">
1082
- <IoLocationSharp />
1083
- </i>
1084
- </div>
1085
- <p className="m-0 p-0 font-weight-500 font-15 text-light ml-1 mr-1">
1086
- {langdetect == 'en' ? 'Address' : 'العنوان'}:{' '}
1087
- <span
1088
- className="font-weight-600 wordbreak"
1089
- style={{
1090
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1091
- }}
1092
- >
1093
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].address}
1094
- </span>
1095
- </p>
1096
- </div>
1097
- </div>
1098
- </div>
1099
- </div>
1100
- <div className="col-lg-12">
1101
- <div className={`${generalstyles.card}`}>
1102
- <div className="w-100 row m-0">
1103
- <div className="col-lg-12 p-0">
1104
- <p
1105
- className="m-0 p-0 font-weight-600 font-15"
1106
- style={{
1107
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1108
- }}
1109
- >
1110
- {langdetect == 'en' ? 'Order Summary' : 'ملخص الطلب'}
1111
- </p>
1112
- </div>
1113
- <div className="col-lg-12 p-0">
1114
- <hr className="mt-2 mb-2" />
1115
- </div>
1116
- <div className="col-lg-6 mb-2 d-flex align-items-center">
1117
- <div
1118
- className="d-flex align-items-center justify-content-center"
1119
- style={{ width: '3.5vh', height: '3.5vh', borderRadius: '50%', background: 'white', boxShadow: '0 0 10px #e6e6e6' }}
1120
- >
1121
- <i className="fa fa-globe text-light"></i>
1122
- </div>
1123
- <p className="m-0 p-0 font-weight-500 font-15 text-light ml-1 mr-1">
1124
- {langdetect == 'en' ? 'Payment Method' : 'طريقة الدفع'}:{' '}
1125
- <span
1126
- className="font-weight-600 wordbreak"
1127
- style={{
1128
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1129
- }}
1130
- >
1131
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].paymentmethod == 'cod'
1132
- ? langdetect == 'en'
1133
- ? 'Cash On Delivery'
1134
- : 'الدفع عند الإستلام'
1135
- : langdetect == 'en'
1136
- ? 'Online Payment'
1137
- : 'دفع إلكترونى'}
1138
- </span>
1139
- </p>
1140
- </div>
1141
- <div className="col-lg-12 mb-2 d-flex align-items-center">
1142
- <div className="row m-0 w-100 d-flex align-items-center">
1143
- <div className="col-lg-6 p-0 d-flex align-items-center">
1144
- <p
1145
- className="m-0 p-0 font-weight-500 font-15"
1146
- style={{
1147
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1148
- }}
1149
- >
1150
- {langdetect == 'en' ? 'Sub Total' : 'المبلغ الجزئى'}:
1151
- </p>
1152
- </div>
1153
- <div className="col-lg-6 p-0 d-flex align-items-center justify-content-end">
1154
- <p
1155
- className="m-0 p-0 font-weight-500 font-15"
1156
- style={{
1157
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1158
- }}
1159
- >
1160
- {langdetect == 'en' ? 'EGP' : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice}{' '}
1161
- {langdetect == 'en' ? '' : 'ج.م'}
1162
- </p>
1163
- </div>
1164
- </div>
1165
- </div>
1166
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && (
1167
- <div className="col-lg-12 mb-2 d-flex align-items-center">
1168
- <div className="row m-0 w-100 d-flex align-items-center">
1169
- <div className="col-lg-6 p-0 d-flex align-items-center">
1170
- <p className="m-0 p-0 font-weight-500 font-15 text-danger">Promo Code Discount: </p>
1171
- </div>
1172
- <div className="col-lg-6 p-0 d-flex align-items-center justify-content-end">
1173
- <p className="m-0 p-0 font-weight-500 font-15 text-danger">
1174
- {langdetect == 'en' ? 'EGP' : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].discountprice}{' '}
1175
- {langdetect == 'en' ? '' : 'ج.م'}
1176
- </p>
1177
- </div>
1178
- </div>
1179
- </div>
1180
- )}
1181
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && (
1182
- <div className="col-lg-12 mb-2 d-flex align-items-center">
1183
- <div className="row m-0 w-100 d-flex align-items-center">
1184
- <div className="col-lg-6 p-0 d-flex align-items-center">
1185
- <p className="m-0 p-0 font-weight-500 font-15 text-danger">Sub Total After Discount: </p>
1186
- </div>
1187
- <div className="col-lg-6 p-0 d-flex align-items-center justify-content-end">
1188
- <p className="m-0 p-0 font-weight-500 font-15 text-danger">
1189
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].priceafterdiscount} EGP
1190
- </p>
1191
- </div>
1192
- </div>
1193
- </div>
1194
- )}
1195
- <div className="col-lg-12 mb-2 d-flex align-items-center">
1196
- <div className="row m-0 w-100 d-flex align-items-center">
1197
- <div className="col-lg-6 p-0 d-flex align-items-center">
1198
- <p
1199
- className="m-0 p-0 font-weight-500 font-15"
1200
- style={{
1201
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1202
- }}
1203
- >
1204
- {langdetect == 'en' ? 'Shipping Fees' : 'مصاريف الشحن'}:{' '}
1205
- </p>
1206
- </div>
1207
- <div className="col-lg-6 p-0 d-flex align-items-center justify-content-end">
1208
- <p
1209
- className="m-0 p-0 font-weight-500 font-15"
1210
- style={{
1211
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1212
- }}
1213
- >
1214
- {langdetect == 'en' ? 'EGP' : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].zoneprice}{' '}
1215
- {langdetect == 'en' ? '' : 'ج.م'}
1216
- </p>
1217
- </div>
1218
- </div>
1219
- </div>
1220
- <div className="col-lg-12 mb-2 d-flex align-items-center">
1221
- <div className="row m-0 w-100 d-flex align-items-center">
1222
- <div className="col-lg-6 p-0 d-flex align-items-center">
1223
- <p
1224
- className="m-0 p-0 font-weight-500 font-15"
1225
- style={{
1226
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1227
- }}
1228
- >
1229
- {langdetect == 'en' ? 'Total' : 'الإجمالى'}:{' '}
1230
- </p>
1231
- </div>
1232
- <div className="col-lg-6 p-0 d-flex align-items-center justify-content-end">
1233
- <p
1234
- className="m-0 p-0 font-weight-500 font-15"
1235
- style={{
1236
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1237
- }}
1238
- >
1239
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].totalorderprice} EGP{' '}
1240
- </p>
1241
- </div>
1242
- </div>
1243
- </div>
1244
- </div>
1245
- </div>
1246
- </div>
1247
- </div>
1248
- </div>
1249
- </Modal.Body>
1250
- </Modal>
1251
- )} */}
1252
- </div>
1253
- </div>
1254
- )}
1255
- </div>
1256
- {/* <div className="col-lg-12 d-flex align-items-center justify-content-center p-0 ">
1257
- {pageindexcontext.length != 0 && Object.keys(StatePagePropertiesContext).length != 0 && (
1258
- <div className={generalstyles.app_container + ' w-100 '} style={{ position: 'relative' }}>
1259
- {StatePagePropertiesContext.pageobj.sections.map((item, index) => {
1260
- if (item.tabexsectioninfo != null && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined && item.componenttype == 'section') {
1261
- var sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
1262
- return (
1263
- <div className="row w-100 ml-0 mr-0 d-flex justify-content-center p-0">
1264
- {item.tabexsectioninfo.sectiontype == 'Cards' && (
1265
- <ProductsCardsSectionContext_Provider>
1266
- {React.createElement(sectioncomp, {
1267
- sectionidprops: item.sectionid,
1268
- sectionindexprops: index,
1269
- srcfromprops: 'GeneralProductsComponent',
1270
- collectionidprops: collectionidparams,
1271
- })}
1272
- </ProductsCardsSectionContext_Provider>
1273
- )}
1274
- {item.tabexsectioninfo.sectiontype != 'Cards' && React.createElement(sectioncomp, { sectionidprops: item.sectionid, sectionindexprops: index })}
1275
- </div>
1276
- );
1277
- }
1278
- })}
1279
- </div>
1280
- )}
1281
- </div> */}
1282
- </div>
1283
- );
1284
- };
1285
- export default Ordershistory;