From 849c199fed15716e94b5b6978e9fb8b58aa84e5c Mon Sep 17 00:00:00 2001 From: Jonatan Storlund Date: Sun, 27 Oct 2024 20:48:21 +0200 Subject: [PATCH 1/2] change add to cart behaviour --- .../themes/gds/resources/views/partials/header.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/app/themes/gds/resources/views/partials/header.blade.php b/web/app/themes/gds/resources/views/partials/header.blade.php index ddbf4d60..07d93d43 100644 --- a/web/app/themes/gds/resources/views/partials/header.blade.php +++ b/web/app/themes/gds/resources/views/partials/header.blade.php @@ -82,8 +82,10 @@ class="language-menu__link {{ $item->current_lang ? 'is-active' : '' }}" @if ($is_webshop)
- @block('woocommerce/mini-cart') - @block('woocommerce/customer-account', ['displayStyle' => 'icon_only']) + @blocks + + + @endblocks
@endif From 5a586ba4c67d67e9d2e17591464b184a6c948c65 Mon Sep 17 00:00:00 2001 From: Jonatan Storlund Date: Fri, 1 Nov 2024 08:50:12 +0200 Subject: [PATCH 2/2] add woo-ajax-add-to-cart --- composer.json | 4 +-- composer.lock | 71 ++++++++++++++------------------------------------- 2 files changed, 21 insertions(+), 54 deletions(-) diff --git a/composer.json b/composer.json index f5faaf9f..019b7707 100644 --- a/composer.json +++ b/composer.json @@ -66,7 +66,6 @@ "stoutlogic/acf-builder": "^1.12", "spatie/laravel-google-fonts": "^1.2", "generoi/sage-woocommerce": "^1.1", - "generoi/sage-cachetags": "^1.1", "wpackagist-plugin/safe-svg": "^2.1", "wpackagist-plugin/limit-login-attempts-reloaded": "^2.6.1", "wpackagist-plugin/wp-sanitize-file-name-plus": "^1.0", @@ -80,7 +79,8 @@ "generoi/genero-cmp": "^2.0", "generoi/wp-image-resizer": "^1.0", "spatie/laravel-csp": "^2.10", - "10up/wpcli-vulnerability-scanner": "^1.2" + "10up/wpcli-vulnerability-scanner": "^1.2", + "wpackagist-plugin/woo-ajax-add-to-cart": "^2.4" }, "require-dev": { "brainmaestro/composer-git-hooks": "^3.0.0", diff --git a/composer.lock b/composer.lock index 30eeba94..1b6a88df 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d8f9d8863914c1406f5db0fa0f436ce4", + "content-hash": "3f4807593b80fc1d23c4659bbe68c251", "packages": [ { "name": "10up/wpcli-vulnerability-scanner", @@ -2012,57 +2012,6 @@ }, "time": "2024-05-24T13:40:47+00:00" }, - { - "name": "generoi/sage-cachetags", - "version": "v1.2.0", - "source": { - "type": "git", - "url": "https://github.com/generoi/sage-cachetags.git", - "reference": "076027388c14b4c93b4414d8154af3eb88bcfad8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/generoi/sage-cachetags/zipball/076027388c14b4c93b4414d8154af3eb88bcfad8", - "reference": "076027388c14b4c93b4414d8154af3eb88bcfad8", - "shasum": "" - }, - "require": { - "php": ">=7.4", - "roots/acorn": "*" - }, - "require-dev": { - "squizlabs/php_codesniffer": "~3.0" - }, - "type": "library", - "extra": { - "acorn": { - "providers": [ - "Genero\\Sage\\CacheTags\\CacheTagsServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Genero\\Sage\\CacheTags\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Oskar Schöldström", - "email": "public@oxy.fi" - } - ], - "homepage": "https://github.com/generoi/sage-cachetags", - "support": { - "issues": "https://github.com/generoi/sage-cachetags/issues", - "source": "https://github.com/generoi/sage-cachetags/tree/v1.2.0" - }, - "time": "2024-07-19T14:21:57+00:00" - }, { "name": "generoi/sage-woocommerce", "version": "v1.1.3", @@ -11953,6 +11902,24 @@ "type": "wordpress-plugin", "homepage": "https://wordpress.org/plugins/user-switching/" }, + { + "name": "wpackagist-plugin/woo-ajax-add-to-cart", + "version": "2.4.1", + "source": { + "type": "svn", + "url": "https://plugins.svn.wordpress.org/woo-ajax-add-to-cart/", + "reference": "tags/2.4.1" + }, + "dist": { + "type": "zip", + "url": "https://downloads.wordpress.org/plugin/woo-ajax-add-to-cart.2.4.1.zip" + }, + "require": { + "composer/installers": "^1.0 || ^2.0" + }, + "type": "wordpress-plugin", + "homepage": "https://wordpress.org/plugins/woo-ajax-add-to-cart/" + }, { "name": "wpackagist-plugin/woocommerce", "version": "9.3.3",