|
dbxapp 4.5.3
Technische API-Referenz der dbxapp-Plattform
|
Variablen | |
| $messages = array() | |
| $messages ['page_title'] = 'Checkout' | |
| $messages ['bar_title'] = 'Complete order' | |
| $messages ['page_subtitle'] = 'Review the customer details and test the demo order process.' | |
| $messages ['empty_title'] = 'Your cart is empty' | |
| $messages ['empty_subtitle'] = 'Select items before proceeding to checkout.' | |
| $messages ['empty_message'] = 'Select an item in the catalog and add it to your cart.' | |
| $messages ['login_subtitle'] = 'Sign-in required.' | |
| $messages ['login_message'] = '<strong>Sign-in required.</strong><br>Guest orders are currently disabled. Please sign in before completing the order.' | |
| $messages ['form_info'] = 'Review the customer details, payment method and acceptance of the legal texts.' | |
| $messages ['validation_error'] = 'Please check the highlighted required fields.' | |
| $messages ['no_payment'] = 'No payment method is available.' | |
| $messages ['select_payment'] = 'Select an available payment method.' | |
| $messages ['confirm_legal'] = 'Please accept the legal texts and acknowledge the withdrawal policy.' | |
| $messages ['legal_field_error'] = 'Please accept the legal texts.' | |
| $messages ['withdrawal_field_error'] = 'Please acknowledge the withdrawal policy.' | |
| $messages ['order_error'] = 'The order could not be created.' | |
| $messages ['technical_error'] = 'The order could not be processed due to a technical error.' | |
| $messages ['demo_title'] = 'Demo shop – no actual purchase' | |
| $messages ['demo_message'] = 'This shop is provided solely for demonstration and testing. You can complete the entire order process with test data; only a technical test transaction is processed. No actual purchase, payment or delivery takes place, and no purchase contract is formed.' | |
| $messages ['payment_bank_transfer'] = 'Prepayment / bank transfer' | |
| $messages ['payment_invoice'] = 'Invoice' | |
| $messages ['payment_none_help'] = 'No payment method is currently active or fully configured.' | |
| $messages ['payment_bank_transfer_help'] = 'The order is saved. The customer then transfers the amount using the order number as the payment reference.' | |
| $messages ['payment_invoice_help'] = 'The order is saved and paid later by invoice.' | |
| $messages ['payment_paypal_help'] = 'You will be redirected to PayPal. The payment is updated automatically after approval.' | |
| $messages ['payment_amazon_help'] = 'You will be redirected to Amazon Pay. Sandbox and live mode use the credentials saved in the shop settings.' | |
| $messages ['bank_transfer_default'] = 'Please transfer the invoice amount and include the order number.' | |
| $messages ['invoice_default'] = 'You will receive an invoice. Please pay within the stated period.' | |
| $messages ['paypal_default'] = 'The payment is authorized through PayPal and updated automatically after a successful response.' | |
| $messages ['amazon_default'] = 'The payment is authorized through Amazon Pay and updated automatically after a successful response.' | |
| $messages ['account_owner'] = 'Account holder' | |
| $messages ['purpose'] = 'Payment reference' | |
| $messages ['column_product'] = 'Product' | |
| $messages ['column_quantity'] = 'Quantity' | |
| $messages ['column_price'] = 'Price' | |
| $messages ['column_shipping'] = 'Shipping' | |
| $messages ['column_total'] = 'Total' | |
| $messages ['amount_due'] = 'Amount due' | |
| $messages ['order_saved_title'] = 'Order saved' | |
| $messages ['order_number_text'] = 'Your order number is' | |
| $messages ['payment_method_label'] = 'Payment method' | |
| $messages ['status_label'] = 'Status' | |
| $messages ['order_waiting'] = 'The order is visible in shop administration and is awaiting processing.' | |
| $messages ['total_label'] = 'Total' | |
| $messages ['view_orders'] = 'View orders' | |
| $messages ['continue_shopping'] = 'Continue shopping' | |
| $messages ['thanks_title'] = 'Thank you' | |
| $messages ['saved_snapshot_subtitle'] = 'The order was saved as a snapshot.' | |
| $messages ['payment_note'] = 'Payment information' | |
| $add_field | |
| $cfg = array() | |
| if(function_exists('dbx')) | $cfg_bool |
| $payment_options = array() | |
| if( $cfg_bool( 'payment_bank_transfer_enabled', true)) if($cfg_bool('payment_invoice_enabled', false)) if($cfg_bool( 'payment_paypal_enabled', false) &&trim((string)( $cfg[ 'payment_paypal_client_id'] ?? '')) !=='' &&trim((string)( $cfg[ 'payment_paypal_client_secret'] ?? '')) !=='') if( $cfg_bool('payment_amazon_pay_enabled', false) &&trim((string)($cfg['payment_amazon_pay_merchant_id'] ?? '')) !=='' &&trim((string)($cfg['payment_amazon_pay_store_id'] ?? '')) !=='' &&trim((string)($cfg['payment_amazon_pay_public_key_id'] ?? '')) !=='' &&trim((string)($cfg['payment_amazon_pay_private_key'] ?? '')) !=='') | $option_string = '' |
| $add_field |
| $cfg = array() |
| $messages[ 'account_owner'] = 'Account holder' |
| $messages[ 'amazon_default'] = 'The payment is authorized through Amazon Pay and updated automatically after a successful response.' |
| $messages[ 'amount_due'] = 'Amount due' |
| $messages[ 'bank_transfer_default'] = 'Please transfer the invoice amount and include the order number.' |
| $messages[ 'bar_title'] = 'Complete order' |
| $messages[ 'column_price'] = 'Price' |
| $messages[ 'column_product'] = 'Product' |
| $messages[ 'column_quantity'] = 'Quantity' |
| $messages[ 'column_shipping'] = 'Shipping' |
| $messages[ 'column_total'] = 'Total' |
| $messages[ 'confirm_legal'] = 'Please accept the legal texts and acknowledge the withdrawal policy.' |
| $messages[ 'continue_shopping'] = 'Continue shopping' |
| $messages[ 'demo_message'] = 'This shop is provided solely for demonstration and testing. You can complete the entire order process with test data; only a technical test transaction is processed. No actual purchase, payment or delivery takes place, and no purchase contract is formed.' |
| $messages[ 'demo_title'] = 'Demo shop – no actual purchase' |
| $messages[ 'empty_message'] = 'Select an item in the catalog and add it to your cart.' |
| $messages[ 'empty_subtitle'] = 'Select items before proceeding to checkout.' |
| $messages[ 'empty_title'] = 'Your cart is empty' |
| $messages[ 'form_info'] = 'Review the customer details, payment method and acceptance of the legal texts.' |
| $messages[ 'invoice_default'] = 'You will receive an invoice. Please pay within the stated period.' |
| $messages[ 'legal_field_error'] = 'Please accept the legal texts.' |
| $messages[ 'login_message'] = '<strong>Sign-in required.</strong><br>Guest orders are currently disabled. Please sign in before completing the order.' |
| $messages[ 'login_subtitle'] = 'Sign-in required.' |
| $messages[ 'no_payment'] = 'No payment method is available.' |
| $messages[ 'order_error'] = 'The order could not be created.' |
| $messages[ 'order_number_text'] = 'Your order number is' |
| $messages[ 'order_saved_title'] = 'Order saved' |
| $messages[ 'order_waiting'] = 'The order is visible in shop administration and is awaiting processing.' |
| $messages[ 'page_subtitle'] = 'Review the customer details and test the demo order process.' |
| $messages[ 'page_title'] = 'Checkout' |
| $messages[ 'payment_amazon_help'] = 'You will be redirected to Amazon Pay. Sandbox and live mode use the credentials saved in the shop settings.' |
| $messages[ 'payment_bank_transfer'] = 'Prepayment / bank transfer' |
| $messages[ 'payment_bank_transfer_help'] = 'The order is saved. The customer then transfers the amount using the order number as the payment reference.' |
| $messages[ 'payment_invoice'] = 'Invoice' |
| $messages[ 'payment_invoice_help'] = 'The order is saved and paid later by invoice.' |
| $messages[ 'payment_method_label'] = 'Payment method' |
| $messages[ 'payment_none_help'] = 'No payment method is currently active or fully configured.' |
| $messages[ 'payment_note'] = 'Payment information' |
| $messages[ 'payment_paypal_help'] = 'You will be redirected to PayPal. The payment is updated automatically after approval.' |
| $messages[ 'paypal_default'] = 'The payment is authorized through PayPal and updated automatically after a successful response.' |
| $messages[ 'purpose'] = 'Payment reference' |
| $messages[ 'saved_snapshot_subtitle'] = 'The order was saved as a snapshot.' |
| $messages[ 'select_payment'] = 'Select an available payment method.' |
| $messages[ 'status_label'] = 'Status' |
| $messages[ 'technical_error'] = 'The order could not be processed due to a technical error.' |
| $messages[ 'thanks_title'] = 'Thank you' |
| $messages[ 'total_label'] = 'Total' |
| $messages[ 'validation_error'] = 'Please check the highlighted required fields.' |
| $messages[ 'view_orders'] = 'View orders' |
| $messages[ 'withdrawal_field_error'] = 'Please acknowledge the withdrawal policy.' |
| $messages = array() |
| if($cfg_bool('payment_bank_transfer_enabled', true)) if( $cfg_bool( 'payment_invoice_enabled', false)) if( $cfg_bool('payment_paypal_enabled', false) &&trim((string)($cfg['payment_paypal_client_id'] ?? '')) !=='' &&trim((string)($cfg['payment_paypal_client_secret'] ?? '')) !=='') if ($cfg_bool( 'payment_amazon_pay_enabled', false) &&trim((string)( $cfg[ 'payment_amazon_pay_merchant_id'] ?? '')) !=='' &&trim((string)( $cfg[ 'payment_amazon_pay_store_id'] ?? '')) !=='' &&trim((string)( $cfg[ 'payment_amazon_pay_public_key_id'] ?? '')) !=='' &&trim((string)( $cfg[ 'payment_amazon_pay_private_key'] ?? '')) !=='') $option_string = '' |
| $payment_options = array() |