DHL Modul v0.5 Shipping Label ok
This commit is contained in:
parent
480fdc65ed
commit
8fdaa0ba1d
122 changed files with 17938 additions and 2239 deletions
|
|
@ -16,37 +16,37 @@ if ($context->type === 'checkout') {
|
|||
// Für Checkout-Domain: Umleitung zur Shop-Domain
|
||||
Route::get('/datenschutz', function () {
|
||||
$domainService = app(\App\Services\DomainService::class);
|
||||
$shopUrl = $domainService->buildUrl('main-shop', '/datenschutz');
|
||||
$shopUrl = $domainService->buildUrl('shop', '/datenschutz');
|
||||
return redirect()->away($shopUrl);
|
||||
})->name('legal.data-protected');
|
||||
|
||||
Route::get('/impressum', function () {
|
||||
$domainService = app(\App\Services\DomainService::class);
|
||||
$shopUrl = $domainService->buildUrl('main-shop', '/impressum');
|
||||
$shopUrl = $domainService->buildUrl('shop', '/impressum');
|
||||
return redirect()->away($shopUrl);
|
||||
})->name('legal.imprint');
|
||||
|
||||
Route::get('/agb', function () {
|
||||
$domainService = app(\App\Services\DomainService::class);
|
||||
$shopUrl = $domainService->buildUrl('main-shop', '/agb');
|
||||
$shopUrl = $domainService->buildUrl('shop', '/agb');
|
||||
return redirect()->away($shopUrl);
|
||||
})->name('legal.agb');
|
||||
|
||||
Route::get('/kontakt', function () {
|
||||
$domainService = app(\App\Services\DomainService::class);
|
||||
$shopUrl = $domainService->buildUrl('main-shop', '/kontakt');
|
||||
$shopUrl = $domainService->buildUrl('shop', '/kontakt');
|
||||
return redirect()->away($shopUrl);
|
||||
})->name('contact.create');
|
||||
|
||||
Route::get('/zahlungsarten', function () {
|
||||
$domainService = app(\App\Services\DomainService::class);
|
||||
$shopUrl = $domainService->buildUrl('main-shop', '/zahlungsarten');
|
||||
$shopUrl = $domainService->buildUrl('shop', '/zahlungsarten');
|
||||
return redirect()->away($shopUrl);
|
||||
})->name('zahlungsarten');
|
||||
|
||||
Route::get('/versandkosten', function () {
|
||||
$domainService = app(\App\Services\DomainService::class);
|
||||
$shopUrl = $domainService->buildUrl('main-shop', '/versandkosten');
|
||||
$shopUrl = $domainService->buildUrl('shop', '/versandkosten');
|
||||
return redirect()->away($shopUrl);
|
||||
})->name('versandkosten');
|
||||
} else {
|
||||
|
|
@ -59,37 +59,10 @@ if ($context->type === 'checkout') {
|
|||
Route::get('/zahlungsarten', 'HomeController@zahlungsarten')->name('zahlungsarten');
|
||||
Route::get('/versandkosten', 'HomeController@versandkosten')->name('versandkosten');
|
||||
}
|
||||
//debug subdomain
|
||||
Route::get('/debug-subdomain', function () {
|
||||
$domainContext = app(\App\Domain\DomainContext::class);
|
||||
$domainService = app(\App\Services\DomainService::class);
|
||||
|
||||
return response()->json([
|
||||
'host' => request()->getHost(),
|
||||
'headers' => [
|
||||
'X-Forwarded-Host' => request()->header('X-Forwarded-Host'),
|
||||
'X-Subdomain' => request()->header('X-Subdomain'),
|
||||
'Host' => request()->header('Host'),
|
||||
],
|
||||
'url' => request()->url(),
|
||||
'full_url' => request()->fullUrl(),
|
||||
'server' => [
|
||||
'HTTP_HOST' => $_SERVER['HTTP_HOST'] ?? 'not set',
|
||||
'SERVER_NAME' => $_SERVER['SERVER_NAME'] ?? 'not set',
|
||||
],
|
||||
'domain_context' => [
|
||||
'type' => $domainContext->type,
|
||||
'host' => $domainContext->host,
|
||||
'subdomain' => $domainContext->subdomain,
|
||||
'cloudflare_subdomain' => $domainContext->cloudflareSubdomain,
|
||||
'effective_subdomain' => $domainContext->getEffectiveSubdomain(),
|
||||
'is_cloudflare' => $domainContext->isCloudflareSubdomain(),
|
||||
'is_user_shop' => $domainContext->isUserShop(),
|
||||
'user_shop_slug' => $domainContext->getUserShopSlug(),
|
||||
],
|
||||
'parsed_domain' => $domainService->parseDomain(request()->getHost(), request()->header('X-Subdomain'))
|
||||
]);
|
||||
});
|
||||
|
||||
// File storage route für alle Domains (Rechnungen, Downloads, etc.)
|
||||
// Auth-Prüfung erfolgt im FileController selbst je nach Kontext
|
||||
Route::get('/storage/file/{id}/{from}/{do?}', 'FileController@show')->name('storage_file');
|
||||
|
||||
// Sprachwechsler
|
||||
Route::post('/change_website_lang', 'Web\SiteController@changeLang')->name('language.change');
|
||||
|
|
@ -199,3 +172,6 @@ if ($context->type !== 'checkout') {
|
|||
}
|
||||
|
||||
|
||||
Route::get('/register/verify/{confirmationCode}', 'HomeController@verify')->name('register_verify');
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue