01-16-2023-ui.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. order.Prevalip.com
  2. LAYOUT::
  3. Apply Promo Code: [_______________] -> hits PHP. app.post('/php/apply-promo-code')
  4. if !user, applies $promoCodeCookie, redir to /log-in
  5. if $user && !$user->promo_code_id, redir to /user/apply-promo-code/{code}
  6. if $user && $user->promo_code_id, ERROR - you cannot switch your promo code ever.
  7. /
  8. Hello.
  9. /create-account
  10. @if($promoCodeCookie)
  11. dump($promoCodeCookie)
  12. @endif
  13. [Continue with Google]
  14. [Continue with Facebook]
  15. or
  16. [First name]
  17. [Last name]
  18. [Email]
  19. [Password]
  20. [[Create account]]
  21. Returning customer? <a>Sign in</a>
  22. /user/apply-promo-code/{code} || !!!!!!!! you are always stuck here if $promoCodeCookie
  23. <- Cancel and Go Back ->>> removes $promoCodeCookie
  24. dump(code);
  25. [Apply Promo Code] [Cancel] ->>> removes $promoCodeCookie
  26. |->>> /api/customerStore/applyPromoCode --> checkout flow
  27. /log-in
  28. @if($promoCodeCookie)
  29. dump($promoCodeCookie)
  30. @endif
  31. [Continue with Google]
  32. [Continue with Facebook]
  33. or
  34. [Email]
  35. [Password]
  36. [[Sign in]]
  37. New customer? <a>Create account</a>
  38. <a>Forgot your password?</a>
  39. /confirm-email-address
  40. /forgot-password
  41. RESET YOUR PASSWORD
  42. We will send you an email to reset your password.
  43. [Email]
  44. <a>Submit</a> <a>Cancel</a>
  45. /reset-password
  46. RESET ACCOUNT PASSWORD
  47. Enter a new password for {{email}}
  48. [Password]
  49. [Confirm password]
  50. [[Reset Password]]
  51. SESSION REQUIRED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  52. /my-account
  53. @if(FLASH_COOKIE('Success'))
  54. You have updated your order successfully.
  55. @endif
  56. ITEMS & SHIPPING DATES:
  57. dump($user);
  58. [[MAKE CHANGES]] -> /cart HREF
  59. SHIPPING ADDRESS:
  60. Name: //
  61. Address: //
  62. [[MAKE CHANGES]] -> /checkout/shipping-address HREF
  63. PAYMENT METHOD:
  64. Payment Method: //
  65. [[MAKE CHANGES]] -> /checkout/payment HREF
  66. /cart
  67. How many units would you like? {{upcomingFillNumberOfUnits}} 2
  68. {{upcomingFillContentPrice}} $27.50
  69. When would you like it shipped? {{upcomingFillDate}} 1-17-2023
  70. Shipping method: {{upcomingFillShippingMethod}} EXPEDITED
  71. {{upcomingFillShippingPrice}} -> $18.00
  72. Would you like refills to be sent to you automatically? You can cancel any time. [YES / NO]
  73. @if(YES)
  74. When would you like your first refill to be shipped? {{fill2Date}} 2-15
  75. How many units would like for refills: {{fill2NumberOfUnits}} // usually same as {{upcomingFillNumberOfUnits}} 2
  76. {{fill2ContentPrice}} $55.00
  77. Refill shipping method: {{fill2ShippingMethod}} STANDARD
  78. {{fill2ShippingPrice}} - $0.00
  79. How often would you like refills?
  80. (_) Every {{refillFrequencyNumberOfDays}} days. - [[30]]
  81. (_) The {{refillFrequencyNumberOfDayOfMonth}} of every moth.
  82. (_) The first {{refillFrequencyFirstDayOfWeekOfMonth}} of every month.
  83. Shipment schedule:
  84. {{fill1Date}}
  85. {{fill2Date}}
  86. {{fill3Date}}
  87. {{fill4Date}}
  88. {{fill5Date}}
  89. {{fill6Date}}
  90. You can cancel refills anytime by logging in or calling us at (800) 750-4540.
  91. Limit my refills right now: [off / on]
  92. @if(YES)
  93. Limit my number of refills to: {{limitedNumberOfFills}}
  94. [Proceed to Checkout] -> app.post('submit-cart') -> /api/customerStore/updateFillSettings -> REDIR TO /checkout/shipping-address
  95. /checkout/shipping-address::
  96. <col-6>
  97. BREADCRUMBS:: Cart > !Shipping Address! > Payment Method
  98. Name:
  99. Address:
  100. [Proceed to Payment] -> app.post('submit-checkout-shipping-address') -> hit Java twice -> REDIR TO /checkout/payment
  101. </col-6>
  102. <col-6>
  103. dump($user); // THIS IS EVENTUALLY GOING TO BE A SEXY VIEW OF FILL SETTINGS
  104. </col-6>
  105. /checkout/payment-method
  106. BREADCRUMBS:: Cart > !Shipping Address! > Payment Method
  107. <col-6>
  108. Payment Method:
  109. [Submit] -> app.post('submit-checkout-payment-method') -> flashCookie('SUCCESS') -> REDIR TO /my-account
  110. </col-6>
  111. <col-6>
  112. dump($user); // THIS IS EVENTUALLY GOING TO BE A SEXY VIEW OF FILL SETTINGS
  113. </col-6>
  114. /log-in-settings
  115. selfChangePassword()
  116. disableStandardLogin()
  117. requestEmailChange()
  118. confirmEmailChange()
  119. enableLoginWithGoogle()
  120. enableLoginWithFacebook()
  121. disconnectGoogle()
  122. disconnectFacebook()
  123. /order-history