order.Prevalip.com LAYOUT:: Apply Promo Code: [_______________] -> hits PHP. app.post('/php/apply-promo-code') if !user, applies $promoCodeCookie, redir to /log-in if $user && !$user->promo_code_id, redir to /user/apply-promo-code/{code} if $user && $user->promo_code_id, ERROR - you cannot switch your promo code ever. / Hello. /create-account @if($promoCodeCookie) dump($promoCodeCookie) @endif [Continue with Google] [Continue with Facebook] or [First name] [Last name] [Email] [Password] [[Create account]] Returning customer? Sign in /user/apply-promo-code/{code} || !!!!!!!! you are always stuck here if $promoCodeCookie <- Cancel and Go Back ->>> removes $promoCodeCookie dump(code); [Apply Promo Code] [Cancel] ->>> removes $promoCodeCookie |->>> /api/customerStore/applyPromoCode --> checkout flow /log-in @if($promoCodeCookie) dump($promoCodeCookie) @endif [Continue with Google] [Continue with Facebook] or [Email] [Password] [[Sign in]] New customer? Create account Forgot your password? /confirm-email-address /forgot-password RESET YOUR PASSWORD We will send you an email to reset your password. [Email] Submit Cancel /reset-password RESET ACCOUNT PASSWORD Enter a new password for {{email}} [Password] [Confirm password] [[Reset Password]] SESSION REQUIRED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! /my-account @if(FLASH_COOKIE('Success')) You have updated your order successfully. @endif ITEMS & SHIPPING DATES: dump($user); [[MAKE CHANGES]] -> /cart HREF SHIPPING ADDRESS: Name: // Address: // [[MAKE CHANGES]] -> /checkout/shipping-address HREF PAYMENT METHOD: Payment Method: // [[MAKE CHANGES]] -> /checkout/payment HREF /cart How many units would you like? {{upcomingFillNumberOfUnits}} 2 {{upcomingFillContentPrice}} $27.50 When would you like it shipped? {{upcomingFillDate}} 1-17-2023 Shipping method: {{upcomingFillShippingMethod}} EXPEDITED {{upcomingFillShippingPrice}} -> $18.00 Would you like refills to be sent to you automatically? You can cancel any time. [YES / NO] @if(YES) When would you like your first refill to be shipped? {{fill2Date}} 2-15 How many units would like for refills: {{fill2NumberOfUnits}} // usually same as {{upcomingFillNumberOfUnits}} 2 {{fill2ContentPrice}} $55.00 Refill shipping method: {{fill2ShippingMethod}} STANDARD {{fill2ShippingPrice}} - $0.00 How often would you like refills? (_) Every {{refillFrequencyNumberOfDays}} days. - [[30]] (_) The {{refillFrequencyNumberOfDayOfMonth}} of every moth. (_) The first {{refillFrequencyFirstDayOfWeekOfMonth}} of every month. Shipment schedule: {{fill1Date}} {{fill2Date}} {{fill3Date}} {{fill4Date}} {{fill5Date}} {{fill6Date}} You can cancel refills anytime by logging in or calling us at (800) 750-4540. Limit my refills right now: [off / on] @if(YES) Limit my number of refills to: {{limitedNumberOfFills}} [Proceed to Checkout] -> app.post('submit-cart') -> /api/customerStore/updateFillSettings -> REDIR TO /checkout/shipping-address /checkout/shipping-address:: BREADCRUMBS:: Cart > !Shipping Address! > Payment Method Name: Address: [Proceed to Payment] -> app.post('submit-checkout-shipping-address') -> hit Java twice -> REDIR TO /checkout/payment dump($user); // THIS IS EVENTUALLY GOING TO BE A SEXY VIEW OF FILL SETTINGS /checkout/payment-method BREADCRUMBS:: Cart > !Shipping Address! > Payment Method Payment Method: [Submit] -> app.post('submit-checkout-payment-method') -> flashCookie('SUCCESS') -> REDIR TO /my-account dump($user); // THIS IS EVENTUALLY GOING TO BE A SEXY VIEW OF FILL SETTINGS /log-in-settings selfChangePassword() disableStandardLogin() requestEmailChange() confirmEmailChange() enableLoginWithGoogle() enableLoginWithFacebook() disconnectGoogle() disconnectFacebook() /order-history