tabexseriescomponents 0.0.73 → 0.0.75

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