or
26 | 112: 27 | 113 Submit the cart without login 28 | 29 | pages/cart/paiement.tsx: 30 | 70 'title': 'My cart', 31 | 71: 'path': '/cart' 32 | 72 } 33 | -------------------------------------------------------------------------------- /pages/404.tsx: -------------------------------------------------------------------------------- 1 | import { InferGetStaticPropsType } from "next"; 2 | import { getAllTaxons } from "../lib/api/resources/taxon"; 3 | import Layout from "../components/layout/Layout"; 4 | import { useContext, useEffect } from 'react'; 5 | import MessageContext from "../components/MessageContext"; 6 | import { Helmet } from 'react-helmet'; 7 | import PageHeader from '../components/layout/PageHeader'; 8 | import Breadcrumb from "../components/layout/breadcrumb"; 9 | 10 | const Custom404 = ( 11 | { taxons }: InferGetStaticPropsType{getResourceTranslation(product.mainTaxon)?.name}
28 |{getResourceTranslation(product).name}
29 |{formatMoney(product.variants[0].price)}
31 | } 32 | 33 | 34 | 35 | {product.variants.length > 1 36 | ? 37 |Category :
45 | 46 | 47 | { getResourceTranslation(currentTaxon).name } 48 | 49 | > 50 | } 51 | 52 | 53 | > 54 | ) 55 | } 56 | 57 | export default ProductDetails; -------------------------------------------------------------------------------- /lib/api/resources/product.ts: -------------------------------------------------------------------------------- 1 | import { IProduct } from '../../../types/resources/productTypes'; 2 | import { ITaxon } from "../../../types/resources/taxonTypes"; 3 | import { getResource } from "../client"; 4 | import { getLocale } from "../../config/locales"; 5 | 6 | export const getAllProducts = async (): Promise| {cart.shippingAddress ? 'Shipping fee' : 'Shiping fee estimate'} : | 20 |{formatMoney(cart.shippingTotal)} | 21 |
| Montant des taxes : | 25 |{formatMoney(cart.taxTotal)} | 26 |
| Code Promo : | 30 |{formatMoney(cart.orderPromotionTotal)} | 31 |
| Montant de la commande : | 35 |{formatMoney(cart.total)} | 36 |
| Estimation des frais de port : | 45 |0€ | 46 |
| Montant des taxes : | 50 |0€ | 51 |
| Code Promo : | 55 |0€ | 56 |
| Montant de la commande : | 60 |0€ | 61 |
| Product | 15 |Price | 16 |Quantity | 17 |Total | 18 |||
|---|---|---|---|---|---|
28 | {item.productName}29 | |
30 |
31 | { item.hasOwnProperty('total') ?
32 | 33 | {formatMoney(item.total / item.quantity)} 34 | | 35 | : 36 |37 | {formatMoney(item.variant.price / item.quantity)} 38 | | 39 | } 40 | 41 |42 | {item.quantity} 43 | | 44 | 45 | { item.hasOwnProperty('total') ? 46 |47 | {formatMoney(item.total)} 48 | | 49 | : 50 |51 | {formatMoney(item.variant.price)} 52 | | 53 | } 54 |
|
62 | You have no product in your cart 63 | |
64 |
Bonjour {customer.firstName} {customer.lastName} ({customer.email})
56 |Depuis votre compte vous pouvez voir vos informations, voir votre historique de commandes et modifier votre mot de passe.
57 |{message.message}
91 |You have no current order
86 | } 87 | 88 |You don't have an account yet?
80 | 81 | 82 | 83 | 84 | 85 | 86 |You already have an account?
89 | 90 | 91 | 92 | 93 | 94 | 95 || Number | 73 |Date | 74 |Payment State | 75 |Shipping state | 76 |Amount | 77 |
|---|---|---|---|---|
| {order.number} | 82 |{formatDateToLocale(order.createdAt)} | 83 |{formatPaymentState(order.paymentState)} | 84 |{formatShippingState(order.shippingState)} | 85 |{formatMoney(order.total)} | 86 |
You have not order yet
92 | } 93 | 94 | > 95 | 96 | } 97 | 98 |or
112 | 113 | Submit the cart without login 114 | 115 | > 116 | } 117 | 118 |You have no item in your cart
187 | } 188 | 189 |