diff --git a/lang/nl.json b/lang/nl.json index a0a3b99e0..71e668e79 100644 --- a/lang/nl.json +++ b/lang/nl.json @@ -10,13 +10,16 @@ "Apply": "Toepassen", "Apply coupon code": "Kortingscode toepassen", "Billing address": "Factuuradres", + "Business": "Zakelijk", "Cart": "Winkelwagen", "Categories": "Categorieën", "Category": "Categorie", "Check the spelling of your search term": "De spelling van je zoekterm te controleren", "Checkout": "Afrekenen", "City": "Stad", + "Clear the search query": "De zoekopdracht wissen", "Close": "Sluiten", + "Continue shopping": "Verder winkelen", "Company": "Bedrijf", "Compatible file extensions to upload": "Compatibele bestandsextensies om te uploaden", "Continue": "Verder gaan", @@ -30,20 +33,25 @@ "Fax": "Fax", "Filters": "Filters", "First": "Eerste", + "First Page": "Eerste pagina", "Firstname": "Voornaam", "Forgot your password?": "Wachtwoord vergeten?", "Go to home": "Naar de homepagina", "Have you tried:": "Heb je gedacht aan:", + "Here are some suggestions:": "Hier zijn enkele suggesties:", "Home": "Homepagina", "Housenumber": "Huisnummer", "Increase": "Verhogen", "Items per page": "Producten per pagina", "Last": "Laatste", + "Last Page": "Laatste pagina", "Lastname": "Achternaam", "Less options": "Minder opties", "Loading": "Aan het laden", "Login": "Inloggen", + "Login to view your shopping cart": "Login om je winkelwagen te bekijken", "Logout": "Uitloggen", + "Main menu": "Hoofdmenu", "Make your search term less specific": "Je zoekterm minder specifiek maken", "Maximum image height": "Maximale hoogte", "Maximum image width": "Maximale breedte", @@ -52,12 +60,17 @@ "My billing and shipping address are the same": "Mijn factuur- en verzendadres zijn hetzelfde", "New address": "Nieuw adres", "Next": "Volgende", + "Next Page": "Volgende pagina", "No": "Nee", + "No products found.": "Geen producten gevonden.", "No results found for :searchterm": "Geen resultaten voor :searchterm", + "No selection": "Geen selectie", "Order placed succesfully": "Bestelling succesvol geplaatst", + "Order type": "Type bestelling", "Orders": "Bestellingen", "Out of stock": "Niet op voorraad", "page": "pagina", + "Page": "Pagina", "Password": "Wachtwoord", "Payment": "Betalen", "Payment method": "Betaalmethode", @@ -69,7 +82,12 @@ "Postcode": "Postcode", "Prefix": "Aanhef", "Prev": "Vorige", + "Previous Page": "Vorige pagina", + "Previous Searches": "Vorige zoekopdrachten", + "Price from": "Prijs vanaf", + "Price to": "Prijs tot", "Privacy Policy": "Privacybeleid", + "Private": "Particulier", "products": "producten", "Products": "Producten", "Quantity": "Hoeveelheid", @@ -81,8 +99,10 @@ "Reset filters": "Filters resetten", "Search": "Zoeken", "Search for": "Zoeken naar", - "No selection": "Geen selectie", + "Search within the results": "Zoeken binnen resultaten", + "Searching...": "Zoeken...", "Select": "Selecteer", + "Selected filters": "Geselecteerde filters", "Shipping": "Verzending", "Shipping & billing address": "Verzend- en factuuradres", "Shipping address": "Verzendadres", @@ -92,27 +112,25 @@ "Sign up for our newsletter to stay up to date.": "Meld je aan voor onze nieuwsbrief om op de hoogte te blijven.", "Sorry! No image": "Sorry! Geen afbeelding", "Sorry! This product is currently out of stock.": "Sorry! Dit product is momenteel niet op voorraad.", - "No products found.": "Geen producten gevonden.", - "There are currently no products in this category.": "Er zijn momenteel geen producten in deze categorie.", - "Here are some suggestions:": "Hier zijn enkele suggesties:", - "Suggestions": "Suggesties", + "Sort options": "Sorteer opties", "Specifications": "Specificaties", "Street": "Straat", "Subscribe": "Inschrijven", "Subtotal": "Subtotaal", "Success": "Succes", "Suffix": "Achtervoegsel", + "Suggestions": "Suggesties", "Tax": "Btw", "Tax ID": "Btw-id", "Telephone": "Telefoonnummer", "Thank you for subscribing!": "Bedankt voor het inschrijven!", + "There are currently no products in this category.": "Er zijn momenteel geen producten in deze categorie.", "This product is out of stock, remove it to continue your order.": "Dit product is niet op voorraad, verwijder het om verder te gaan met je bestelling.", "This product will be backordered": "Dit product zal worden nageleverd", "This website uses cookies": "Deze website maakt gebruik van cookies", "Total": "Totaal", "Update": "Update", "Use other search terms": "Andere zoektermen te gebruiken", - "Previous Searches": "Vorige zoekopdrachten", "View all products": "Bekijk alle producten", "Want product news and updates?": "Wil je productnieuws en updates?", "We care about the protection of your data. Read our": "Wij geven om de bescherming van uw gegevens. Lees onze", @@ -124,21 +142,5 @@ "Yes": "Ja", "You don't have anything in your cart.": "Je hebt geen producten in je winkelwagen.", "You have filtered for:": "Je hebt gefilterd op:", - "Your order is currently:": "Je bestelling is op dit moment:", - "Search within the results": "Zoeken binnen resultaten", - "Selected filters": "Geselecteerde filters", - "First Page": "Eerste pagina", - "Previous Page": "Vorige pagina", - "Page": "Pagina", - "Next Page": "Volgende pagina", - "Last Page": "Laatste pagina", - "Clear the search query": "De zoekopdracht wissen", - "Sort options": "Sorteer opties", - "Searching...": "Zoeken...", - "Order type": "Type bestelling", - "Private": "Particulier", - "Business": "Zakelijk", - "Main menu": "Hoofdmenu", - "Price from": "Prijs vanaf", - "Price to": "Prijs tot" + "Your order is currently:": "Je bestelling is op dit moment:" } diff --git a/resources/svg/empty-cart.svg b/resources/svg/empty-cart.svg new file mode 100644 index 000000000..3fe91ebbc --- /dev/null +++ b/resources/svg/empty-cart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/views/cart/empty.blade.php b/resources/views/cart/empty.blade.php new file mode 100644 index 000000000..00477958c --- /dev/null +++ b/resources/views/cart/empty.blade.php @@ -0,0 +1,16 @@ +
+ +
+
+ @lang('You don\'t have anything in your cart.') +
+ + @lang('Login to view your shopping cart') + + + @lang('Continue shopping') + +
+
+ +@include('rapidez::listing.partials.popular-products') diff --git a/resources/views/cart/overview.blade.php b/resources/views/cart/overview.blade.php index 16d3a8c06..c0a004b5b 100644 --- a/resources/views/cart/overview.blade.php +++ b/resources/views/cart/overview.blade.php @@ -37,7 +37,9 @@ /> -
@lang('You don\'t have anything in your cart.')
-
@lang('Loading')...
+
+ @include('rapidez::cart.empty') +
+
@lang('Loading')...
@endsection diff --git a/tests/playwright/cart.spec.js b/tests/playwright/cart.spec.js index 7b7391caa..50c6f1690 100644 --- a/tests/playwright/cart.spec.js +++ b/tests/playwright/cart.spec.js @@ -32,6 +32,11 @@ test('remove product', BasePage.tags, async ({ page }) => { await expect(page.getByTestId('cart-item')).toHaveCount(0) }) +test('empty cart', BasePage.tags, async ({ page }) => { + await page.goto('/cart') + await new BasePage(page).screenshot('fullpage-footer') +}) + test('wcag', BasePage.tags, async ({ page }, testInfo) => { const product = await new ProductPage(page).addToCart(process.env.PRODUCT_URL_SIMPLE) await new CartPage(page).gotoCart() diff --git a/tests/playwright/cart.spec.js-snapshots/empty-cart-1-Mobile-Chrome-linux.png b/tests/playwright/cart.spec.js-snapshots/empty-cart-1-Mobile-Chrome-linux.png new file mode 100644 index 000000000..708aae3d4 --- /dev/null +++ b/tests/playwright/cart.spec.js-snapshots/empty-cart-1-Mobile-Chrome-linux.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c056dac162034caa1d116abb9425ebb7ea587148493fed0a8a1e754bac68f87 +size 87482 diff --git a/tests/playwright/cart.spec.js-snapshots/empty-cart-1-Mobile-Safari-linux.png b/tests/playwright/cart.spec.js-snapshots/empty-cart-1-Mobile-Safari-linux.png new file mode 100644 index 000000000..9de03cf82 --- /dev/null +++ b/tests/playwright/cart.spec.js-snapshots/empty-cart-1-Mobile-Safari-linux.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14e2707cb39a5bb9ccb785b7bc027050493cd5aa3b3f502c4716835b4159e3b9 +size 94936 diff --git a/tests/playwright/cart.spec.js-snapshots/empty-cart-1-chromium-linux.png b/tests/playwright/cart.spec.js-snapshots/empty-cart-1-chromium-linux.png new file mode 100644 index 000000000..a58725864 --- /dev/null +++ b/tests/playwright/cart.spec.js-snapshots/empty-cart-1-chromium-linux.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f2b40934c70324ab0e1ce245a8295343e03a0483f1072ea9eb78dfbac613a36 +size 94035 diff --git a/tests/playwright/cart.spec.js-snapshots/empty-cart-1-firefox-linux.png b/tests/playwright/cart.spec.js-snapshots/empty-cart-1-firefox-linux.png new file mode 100644 index 000000000..35ec2fa50 --- /dev/null +++ b/tests/playwright/cart.spec.js-snapshots/empty-cart-1-firefox-linux.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2602aa04cc540cb258ac6e3eab5317dcdfc5e6367a0066dc46af3a410f06659 +size 126398 diff --git a/tests/playwright/cart.spec.js-snapshots/empty-cart-1-webkit-linux.png b/tests/playwright/cart.spec.js-snapshots/empty-cart-1-webkit-linux.png new file mode 100644 index 000000000..7e9643168 --- /dev/null +++ b/tests/playwright/cart.spec.js-snapshots/empty-cart-1-webkit-linux.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:758c810f3009fa466d907a48724d3f4d068059137bc45f0ea2b3f369ae317eb1 +size 107921