游客结账添加后台配置、优化词条等
This commit is contained in:
parent
79a88bfb63
commit
99c32242cb
|
|
@ -38,6 +38,9 @@
|
|||
</div>
|
||||
|
||||
<div class="tab-pane fade" id="tab-store">
|
||||
<x-admin-form-switch name="guest_checkout" title="{{ __('admin/setting.guest_checkout') }}" value="{{ old('guest_checkout', system_setting('base.guest_checkout', '1')) }}">
|
||||
</x-admin-form-switch>
|
||||
|
||||
<x-admin::form.row title="{{ __('admin/setting.default_address') }}">
|
||||
<div class="d-lg-flex">
|
||||
<div>
|
||||
|
|
@ -87,7 +90,6 @@
|
|||
</x-admin-form-switch>
|
||||
|
||||
<x-admin-form-select title="{{ __('admin/setting.tax_address') }}" name="tax_address" :value="old('tax_address', system_setting('base.tax_address', 'shipping'))" :options="$tax_address">
|
||||
<div class="help-text font-size-12 lh-base">{{ __('admin/setting.tax_address_info') }}</div>
|
||||
</x-admin-form-select>
|
||||
|
||||
<x-admin-form-textarea name="head_code" title="{{ __('admin/setting.head_code') }}" value="{!! old('head_code', system_setting('base.head_code', '')) !!}">
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export default {
|
|||
* @return {*} 返回Promise
|
||||
*/
|
||||
addCart({sku_id, quantity = 1, isBuyNow = false}, event) {
|
||||
if (!isLogin) {
|
||||
if (!config.isLogin && !config.guestCheckout) {
|
||||
this.openLogin()
|
||||
return;
|
||||
}
|
||||
|
|
@ -52,7 +52,7 @@ export default {
|
|||
},
|
||||
|
||||
addWishlist(id, event) {
|
||||
if (!isLogin) {
|
||||
if (!config.isLogin && !config.guestCheckout) {
|
||||
this.openLogin()
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,24 @@ return [
|
|||
'basic_settings' => 'Grundeinstellungen',
|
||||
'store_settings' => 'Store-Einstellungen',
|
||||
'picture_settings' => 'Bildeinstellungen',
|
||||
'use_queue' => 'ob die Warteschlange verwendet werden soll',
|
||||
'mail_settings' => 'Mail-Einstellungen',
|
||||
'mail_engine' => 'Mail-Engine',
|
||||
'smtp_host' => 'host',
|
||||
'smtp_username' => 'Benutzer',
|
||||
'smtp_encryption' => 'Verschlüsselungsmethode',
|
||||
'smtp_encryption_info' => 'SSL oder TLS',
|
||||
'smtp_password' => 'Passwort',
|
||||
'smtp_password_info' => 'SMTP-Passwort festlegen. Für Gmail siehe: https://security.google.com/settings/security/apppasswords',
|
||||
'smtp_port' => 'Anschluss',
|
||||
'smtp_timeout' => 'Zeitüberschreitung',
|
||||
'sendmail_path' => 'Ausführungspfad',
|
||||
'mailgun_domain' => 'Domänenname',
|
||||
'mailgun_secret' => 'Schlüssel',
|
||||
'mailgun_endpoint' => 'port',
|
||||
'mail_log' => 'Beschreibung: Die Log-Engine wird generell zu Testzwecken verwendet! Die E-Mail wird nicht tatsächlich an die Empfängeradresse gesendet, und der E-Mail-Inhalt wird in „/storage/logs/laravel.log“ in Form eines Protokolls gespeichert.',
|
||||
|
||||
'guest_checkout' => 'Besucherkasse',
|
||||
'theme_default' => 'Standardthema',
|
||||
'theme_black' => 'schwarzes Thema',
|
||||
'shipping_address' => 'Lieferadresse',
|
||||
|
|
|
|||
|
|
@ -21,7 +21,24 @@ return [
|
|||
'basic_settings' => 'Basic Settings',
|
||||
'store_settings' => 'Store Settings',
|
||||
'picture_settings' => 'Picture Settings',
|
||||
'use_queue' => 'whether to use the queue',
|
||||
'mail_settings' => 'mail settings',
|
||||
'mail_engine' => 'mail engine',
|
||||
'smtp_host' => 'host',
|
||||
'smtp_username' => 'user',
|
||||
'smtp_encryption' => 'encryption method',
|
||||
'smtp_encryption_info' => 'SSL or TLS',
|
||||
'smtp_password' => 'password',
|
||||
'smtp_password_info' => 'Set SMTP password. For Gmail, please refer to: https://security.google.com/settings/security/apppasswords',
|
||||
'smtp_port' => 'port',
|
||||
'smtp_timeout' => 'timeout',
|
||||
'sendmail_path' => 'execution path',
|
||||
'mailgun_domain' => 'domain name',
|
||||
'mailgun_secret' => 'Key',
|
||||
'mailgun_endpoint' => 'port',
|
||||
'mail_log' => 'Description: The log engine is generally used for testing purposes! The email will not be actually sent to the recipient address, and the email content will be saved in `/storage/logs/laravel.log` in the form of a log',
|
||||
|
||||
'guest_checkout' => 'visitor checkout',
|
||||
'theme_default' => 'Default Theme',
|
||||
'theme_black' => 'Black Theme',
|
||||
'shipping_address' => 'Shipping Address',
|
||||
|
|
|
|||
|
|
@ -21,6 +21,24 @@ return [
|
|||
'basic_settings' => 'configuraciones básicas',
|
||||
'store_settings' => 'configuración de la tienda',
|
||||
'picture_settings' => 'configuraciones de imagen',
|
||||
'use_queue' => 'si usar la cola',
|
||||
'mail_settings' => 'configuraciones de correo',
|
||||
'mail_engine' => 'motor de correo',
|
||||
'smtp_host' => 'anfitrión',
|
||||
'smtp_username' => 'usuario',
|
||||
'smtp_encryption' => 'método de cifrado',
|
||||
'smtp_encryption_info' => 'SSL o TLS',
|
||||
'smtp_password' => 'contraseña',
|
||||
'smtp_password_info' => 'Establecer contraseña SMTP. Para Gmail, consulte: https://security.google.com/settings/security/apppasswords',
|
||||
'smtp_port' => 'puerto',
|
||||
'smtp_timeout' => 'tiempo de espera',
|
||||
'sendmail_path' => 'ruta de ejecución',
|
||||
'mailgun_domain' => 'nombre de dominio',
|
||||
'mailgun_secret' => 'Clave',
|
||||
'mailgun_endpoint' => 'puerto',
|
||||
'mail_log' => 'Descripción: ¡El motor de registro generalmente se usa con fines de prueba! El correo electrónico no se enviará realmente a la dirección del destinatario, y el contenido del correo electrónico se guardará en `/storage/logs/laravel.log`\' en forma de registro',
|
||||
|
||||
'guest_checkout' => 'pago de visitante',
|
||||
|
||||
'theme_default' => 'tema predeterminado',
|
||||
'theme_black' => 'tema negro',
|
||||
|
|
|
|||
|
|
@ -21,7 +21,24 @@ return [
|
|||
'basic_settings' => 'paramètres de base',
|
||||
'store_settings' => 'paramètres du magasin',
|
||||
'picture_settings' => 'paramètres de l\'image',
|
||||
'use_queue' => 'utiliser ou non la file d\'attente',
|
||||
'mail_settings' => 'paramètres de messagerie',
|
||||
'mail_engine' => 'moteur de messagerie',
|
||||
'smtp_host' => 'hôte',
|
||||
'smtp_username' => 'utilisateur',
|
||||
'smtp_encryption' => 'méthode de cryptage',
|
||||
'smtp_encryption_info' => 'SSL ou TLS',
|
||||
'smtp_password' => 'mot de passe',
|
||||
'smtp_password_info' => 'Définir le mot de passe SMTP. Pour Gmail, veuillez vous référer à : https://security.google.com/settings/security/apppasswords',
|
||||
'smtp_port' => 'port',
|
||||
'smtp_timeout' => 'délai d\'expiration',
|
||||
'sendmail_path' => 'chemin d\'exécution',
|
||||
'mailgun_domain' => 'nom de domaine',
|
||||
'mailgun_secret' => 'Clé',
|
||||
'mailgun_endpoint' => 'port',
|
||||
'mail_log' => 'Description: Le moteur de journalisation est généralement utilisé à des fins de test! L\'e-mail ne sera pas réellement envoyé à l\'adresse du destinataire, et le contenu de l\'e-mail sera enregistré dans `/storage/logs/laravel.log`\' sous la forme d\'un journal',
|
||||
|
||||
'guest_checkout' => 'paiement des visiteurs',
|
||||
'theme_default' => 'thème par défaut',
|
||||
'theme_black' => 'thème noir',
|
||||
'shipping_address' => 'adresse de livraison',
|
||||
|
|
|
|||
|
|
@ -21,7 +21,24 @@ return [
|
|||
'basic_settings' => 'impostazioni di base',
|
||||
'store_settings' => 'impostazioni negozio',
|
||||
'picture_settings' => 'impostazioni immagine',
|
||||
'use_queue' => 'se utilizzare la coda',
|
||||
'mail_settings' => 'impostazioni posta',
|
||||
'mail_engine' => 'motore di posta',
|
||||
'smtp_host' => 'host',
|
||||
'smtp_username' => 'utente',
|
||||
'smtp_encryption' => 'metodo di crittografia',
|
||||
'smtp_encryption_info' => 'SSL o TLS',
|
||||
'smtp_password' => 'password',
|
||||
'smtp_password_info' => 'Imposta password SMTP. Per Gmail, fare riferimento a: https://security.google.com/settings/security/apppasswords',
|
||||
'smtp_port' => 'porta',
|
||||
'smtp_timeout' => 'timeout',
|
||||
'sendmail_path' => 'percorso di esecuzione',
|
||||
'mailgun_domain' => 'nome dominio',
|
||||
'mailgun_secret' => 'Chiave',
|
||||
'mailgun_endpoint' => 'porta',
|
||||
'mail_log' => 'Descrizione: Il motore di log è generalmente utilizzato a scopo di test! L\'e-mail non verrà effettivamente inviata all\'indirizzo del destinatario e il contenuto dell\'e-mail verrà salvato in `/storage/logs/laravel.log`\' sotto forma di registro',
|
||||
|
||||
'guest_checkout' => 'checkout visitatore',
|
||||
'theme_default' => 'tema predefinito',
|
||||
'theme_black' => 'tema nero',
|
||||
'shipping_address' => 'indirizzo di spedizione',
|
||||
|
|
|
|||
|
|
@ -21,7 +21,24 @@ return [
|
|||
'basic_settings' => '基本設定',
|
||||
'store_settings' => 'ストア設定',
|
||||
'picture_settings' => '画像設定',
|
||||
'use_queue' => 'キューを使用するかどうか',
|
||||
'mail_settings' => 'メール設定',
|
||||
'mail_engine' => 'メールエンジン',
|
||||
'smtp_host' => 'ホスト',
|
||||
'smtp_username' => 'ユーザー',
|
||||
'smtp_encryption' => '暗号化方式',
|
||||
'smtp_encryption_info' => 'SSL または TLS',
|
||||
'smtp_password' => 'パスワード',
|
||||
'smtp_password_info' => 'SMTP パスワードを設定します。 Gmail については、https://security.google.com/settings/security/apppasswords を参照してください'。
|
||||
'smtp_port' => 'ポート',
|
||||
'smtp_timeout' => 'タイムアウト',
|
||||
'sendmail_path' => '実行パス',
|
||||
'mailgun_domain' => 'ドメイン名',
|
||||
'mailgun_secret' => '鍵',
|
||||
'mailgun_endpoint' => 'ポート',
|
||||
'mail_log' => '説明: ログ エンジンは通常、テスト目的で使用されます! メールは実際に受信者アドレスに送信されるわけではなく、メールの内容は「/storage/logs/laravel.log」にログとして保存されますが、',
|
||||
|
||||
'guest_checkout' => '訪問者チェックアウト',
|
||||
'theme_default' => 'デフォルトのテーマ',
|
||||
'theme_black' => '黒のテーマ',
|
||||
'shipping_address' => '配送先住所',
|
||||
|
|
|
|||
|
|
@ -21,7 +21,24 @@ return [
|
|||
'basic_settings' => 'Базовые настройки',
|
||||
'store_settings' => 'Настройки магазина',
|
||||
'picture_settings' => 'Настройки изображения',
|
||||
'use_queue' => 'использовать ли очередь',
|
||||
'mail_settings' => 'настройки почты',
|
||||
'mail_engine' => 'почтовый движок',
|
||||
'smtp_host' => 'хост',
|
||||
'smtp_username' => 'пользователь',
|
||||
'smtp_encryption' => 'метод шифрования',
|
||||
'smtp_encryption_info' => 'SSL или TLS',
|
||||
'smtp_password' => 'пароль',
|
||||
'smtp_password_info' => 'Установить пароль SMTP. Для Gmail см.: https://security.google.com/settings/security/apppasswords',
|
||||
'smtp_port' => 'порт',
|
||||
'smtp_timeout' => 'время ожидания',
|
||||
'sendmail_path' => 'путь выполнения',
|
||||
'mailgun_domain' => 'имя домена',
|
||||
'mailgun_secret' => 'Ключ',
|
||||
'mailgun_endpoint' => 'порт',
|
||||
'mail_log' => 'Описание: Механизм ведения журнала обычно используется в целях тестирования! На самом деле электронное письмо не будет отправлено на адрес получателя, а содержимое электронного письма будет сохранено в `/storage/logs/laravel.log` в виде журнала',
|
||||
|
||||
'guest_checkout' => 'оформить заказ посетителя',
|
||||
'theme_default' => 'Тема по умолчанию',
|
||||
'theme_black' => 'черная тема',
|
||||
'shipping_address' => 'адресс доставки',
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ return [
|
|||
'mailgun_endpoint' => '端口',
|
||||
'mail_log' => '说明:日志引擎一般用于测试目的!邮件将不会被真实发送至收件地址,邮件内容会以日志形式保存在 `/storage/logs/laravel.log`',
|
||||
|
||||
'guest_checkout' => '游客结账',
|
||||
'theme_default' => '默认主题',
|
||||
'theme_black' => '黑色主题',
|
||||
'shipping_address' => '发货地址',
|
||||
|
|
|
|||
|
|
@ -21,7 +21,24 @@ return [
|
|||
'basic_settings' => '基礎設置',
|
||||
'store_settings' => '商店設置',
|
||||
'picture_settings' => '圖片設置',
|
||||
'use_queue' => '是否使用隊列',
|
||||
'mail_settings' => '郵件設置',
|
||||
'mail_engine' => '郵件引擎',
|
||||
'smtp_host' => '主機',
|
||||
'smtp_username' => '用戶',
|
||||
'smtp_encryption' => '加密方式',
|
||||
'smtp_encryption_info' => 'SSL 或者 TLS',
|
||||
'smtp_password' => '密碼',
|
||||
'smtp_password_info' => '設置 SMTP 密碼。 Gmail 請參考:https://security.google.com/settings/security/apppasswords',
|
||||
'smtp_port' => '端口',
|
||||
'smtp_timeout' => '超時',
|
||||
'sendmail_path' => '執行路徑',
|
||||
'mailgun_domain' => '域名',
|
||||
'mailgun_secret' => '密鑰',
|
||||
'mailgun_endpoint' => '端口',
|
||||
'mail_log' => '說明:日誌引擎一般用於測試目的!郵件將不會被真實發送至收件地址,郵件內容會以日誌形式保存在 `/storage/logs/laravel.log`',
|
||||
|
||||
'guest_checkout' => '遊客結賬',
|
||||
'theme_default' => '默認主題',
|
||||
'theme_black' => '黑色主題',
|
||||
'shipping_address' => '發貨地址',
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@
|
|||
addresses: @json($addresses ?? []),
|
||||
guest_shipping_address: @json($current['guest_shipping_address'] ?? null),
|
||||
guest_payment_address: @json($current['guest_payment_address'] ?? null),
|
||||
isLogin: @json(current_customer(), null),
|
||||
isLogin: config.isLogin,
|
||||
},
|
||||
|
||||
dialogAddress: {
|
||||
|
|
@ -346,7 +346,7 @@
|
|||
const type = form.id ? 'put' : 'post';
|
||||
const url = `/account/addresses${type == 'put' ? '/' + form.id : ''}`;
|
||||
|
||||
if (!isLogin) {
|
||||
if (!this.source.isLogin) {
|
||||
let data = {[this.dialogAddress.type]: form}
|
||||
|
||||
if (this.source.guest_payment_address === null && this.source.guest_shipping_address === null) {
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@
|
|||
<meta name="keywords" content="@yield('keywords', system_setting('base.meta_keyword'))">
|
||||
<meta name="description" content="@yield('description', system_setting('base.meta_description'))">
|
||||
<base href="{{ $shop_base_url }}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('/build/beike/shop/default/css/bootstrap.css') }}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ mix('/build/beike/shop/default/css/bootstrap.css') }}">
|
||||
<script src="{{ asset('vendor/jquery/jquery-3.6.0.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/layer/3.5.1/layer.js') }}"></script>
|
||||
<link rel="shortcut icon" href="{{ image_origin(system_setting('base.favicon')) }}">
|
||||
<script src="{{ asset('vendor/bootstrap/5.1.3/js/bootstrap.min.js') }}"></script>
|
||||
<script src="{{ asset('/build/beike/shop/default/js/app.js') }}"></script>
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('/build/beike/shop/default/css/app.css') }}">
|
||||
<script src="{{ mix('/build/beike/shop/default/js/app.js') }}"></script>
|
||||
<link rel="stylesheet" type="text/css" href="{{ mix('/build/beike/shop/default/css/app.css') }}">
|
||||
@if (system_setting('base.head_code'))
|
||||
{!! system_setting('base.head_code') !!}
|
||||
@endif
|
||||
|
|
@ -33,7 +33,10 @@
|
|||
@endif
|
||||
|
||||
<script>
|
||||
const isLogin = @json(current_customer());
|
||||
const config = {
|
||||
isLogin: !!{{ current_customer()->id ?? 'null' }},
|
||||
guestCheckout: !!{{ system_setting('base.guest_checkout', '1') }}
|
||||
}
|
||||
</script>
|
||||
|
||||
@stack('add-scripts')
|
||||
|
|
|
|||
Loading…
Reference in New Issue