diff --git a/CHANGELOG.md b/CHANGELOG.md index 477a13a..b9a748f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,33 @@ # Changelog -[Unreleased changes](https://github.com/rapidez/checkout-theme/compare/2.5.2...master) +[Unreleased changes](https://github.com/rapidez/checkout-theme/compare/2.8.0...master) +## [2.8.0](https://github.com/rapidez/checkout-theme/releases/tag/2.8.0) - 2024-10-31 + +### Added + +- Forgot password link at checkout login (#122) + +## [2.7.0](https://github.com/rapidez/checkout-theme/releases/tag/2.7.0) - 2024-10-29 + +### Added + +- Dutch translations (#119) + +## [2.6.0](https://github.com/rapidez/checkout-theme/releases/tag/2.6.0) - 2024-10-22 + +### Added + +- Backorder count to cart (#117) +- VAT change event (#120) + +### Fixed + +- Fix address popup when list is to long | Fix text alignment (#116) + ## [2.5.2](https://github.com/rapidez/checkout-theme/releases/tag/2.5.2) - 2024-09-16 ### Fixed + - Fix the product image because catalog/product is already in the image url (#115) - Make back button work (#112) - Fix cart summary(#113) diff --git a/resources/views/account/partials/register-account-address.blade.php b/resources/views/account/partials/register-account-address.blade.php index e98bf75..c782778 100644 --- a/resources/views/account/partials/register-account-address.blade.php +++ b/resources/views/account/partials/register-account-address.blade.php @@ -29,6 +29,7 @@ name="vat_id" label="Vat ID" v-model="addressVariables.vat_id" + v-on:change="window.app.$emit('vat-change', $event)" :required="Rapidez::config('customer/address/taxvat_show', 0) == 'req'" /> @endif diff --git a/resources/views/cart/partials/product/alert.blade.php b/resources/views/cart/partials/product/alert.blade.php new file mode 100644 index 0000000..59118d9 --- /dev/null +++ b/resources/views/cart/partials/product/alert.blade.php @@ -0,0 +1,14 @@ +
@lang('You already have an account with this e-mail address. Please log in to continue.') + @lang('Forgot your password?')
@if (App::providerIsLoaded('Rapidez\Account\AccountServiceProvider')) diff --git a/resources/views/components/address-form.blade.php b/resources/views/components/address-form.blade.php index c645948..fd13070 100644 --- a/resources/views/components/address-form.blade.php +++ b/resources/views/components/address-form.blade.php @@ -17,6 +17,7 @@ class="sm:col-span-2" name="{{ $type }}_vat_id" label="Tax ID" v-model="{{ $address }}.vat_id" + v-on:change="window.app.$emit('vat-change', $event)" :required="Rapidez::config('customer/address/taxvat_show', 0) == 'req'" /> @endif diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 505f779..93d1303 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -18,44 +18,46 @@ public function boot() $this ->bootViews() ->bootPublishables() - ->bootMacros(); + ->bootMacros() + ->bootTranslations(); } - public function registerConfig() : self + public function registerConfig(): self { - $this->mergeConfigFrom(__DIR__.'/../config/rapidez/checkout-theme.php', 'rapidez.checkout-theme'); + $this->mergeConfigFrom(__DIR__ . '/../config/rapidez/checkout-theme.php', 'rapidez.checkout-theme'); return $this; } - public function bootViews() : self + public function bootViews(): self { - $this->loadViewsFrom(__DIR__.'/../resources/views', 'rapidez-ct'); + $this->loadViewsFrom(__DIR__ . '/../resources/views', 'rapidez-ct'); return $this; } - public function bootPublishables() : self + public function bootPublishables(): self { $this->publishes([ - __DIR__.'/../resources/core-overwrites' => resource_path('views/vendor/rapidez'), + __DIR__ . '/../resources/core-overwrites' => resource_path('views/vendor/rapidez'), ], 'core-overwrites'); $this->publishes([ - __DIR__.'/../resources/views' => resource_path('views/vendor/rapidez-ct'), + __DIR__ . '/../resources/views' => resource_path('views/vendor/rapidez-ct'), ], 'views'); $this->publishes([ - __DIR__.'/../config/rapidez/checkout-theme.php' => config_path('rapidez/checkout-theme.php'), + __DIR__ . '/../config/rapidez/checkout-theme.php' => config_path('rapidez/checkout-theme.php'), ], 'config'); return $this; } - public function bootMacros() : self + + public function bootMacros(): self { ComponentAttributeBag::macro('hasAny', function ($key) { /** @var ComponentAttributeBag $this */ - if (! count($this->attributes)) { + if (!count($this->attributes)) { return false; } @@ -71,4 +73,11 @@ public function bootMacros() : self }); return $this; } + + protected function bootTranslations(): self + { + $this->loadJsonTranslationsFrom(__DIR__ . '/../lang'); + + return $this; + } }