Skip to main navigation Skip to main content Skip to page footer

Configuration Examples

Basket payment-switch in checkout

This is a basket with three Payment methods and a payment switch during checkout.

Constants

themes.configuration.extension.shop.checkout.onInvoice.active = 1
themes.configuration.extension.shop.checkout.prePayment.active = 1
themes.configuration.extension.shop.checkout.request.active = 0
themes.configuration.extension.shop.checkout.stripe.active = 0
themes.configuration.extension.shop.checkout.payPal.active = 1
themes.configuration.extension.shop.checkout.payPalPlus.active = 0
themes.configuration.extension.shop.checkout.payPalCheckout.active = 0
themes.configuration.extension.shop.checkout.klarna.active = 0
themes.configuration.extension.shop.checkout.paymentSwitchInCheckout = 1
themes.configuration.pages.shop.checkout = 101
themes.configuration.extension.shop.checkout.defaultPayment = prePayment
themes.configuration.extension.shop.checkout.onInvoice.fields {
    available = firstname, lastname, email, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
    required  = firstname, lastname, email, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
}
themes.configuration.extension.shop.checkout.prePayment.fields {
    available = firstname, lastname, email, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
    required  = firstname, lastname, email, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
}
themes.configuration.extension.shop.checkout.payPal.fields {
    available = firstname, lastname, email, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
    required  = firstname, lastname, email, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
}

Setup

plugin.tx_shop.settings.basketOrder.fieldDefinition.disclaimerConfirmed.appendHorizontalRule = 1

Basket frontend-user required

This is a basket with a required frontend-user. If no frontend-user is logged-in, the ordering creates a new frontend-user. In case of a frontend-user is already logged-in, the user will be automatically assigned to the new order.

That means in summary: An order without a frontend-user in the end isn't possible!

Constants

themes.configuration.extension.shop.checkout.onInvoice.active = 1
themes.configuration.extension.shop.checkout.prePayment.active = 0
themes.configuration.extension.shop.checkout.request.active = 0
themes.configuration.extension.shop.checkout.stripe.active = 0
themes.configuration.extension.shop.checkout.payPal.active = 0
themes.configuration.extension.shop.checkout.payPalPlus.active = 0
themes.configuration.extension.shop.checkout.payPalCheckout.active = 0
themes.configuration.extension.shop.checkout.klarna.active = 0
themes.configuration.pages.shop.checkout = 68
themes.configuration.extension.shop.checkout.onInvoice.fields {
    available = firstname, lastname, email, password, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed, createFrontendUser
    required  = firstname, lastname, email, password, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed, createFrontendUser
}

Basket frontend-user optional

This is a basket with an optional frontend-user. If no frontend-user is logged-in, the user can choose creating a frontend-user during checkout or buying as a guest.

themes.configuration.extension.shop.checkout.onInvoice.active = 1
themes.configuration.extension.shop.checkout.prePayment.active = 0
themes.configuration.extension.shop.checkout.request.active = 0
themes.configuration.extension.shop.checkout.stripe.active = 0
themes.configuration.extension.shop.checkout.payPal.active = 0
themes.configuration.extension.shop.checkout.payPalPlus.active = 0
themes.configuration.extension.shop.checkout.payPalCheckout.active = 0
themes.configuration.extension.shop.checkout.klarna.active = 0
themes.configuration.pages.shop.checkout = 98
themes.configuration.extension.shop.checkout.onInvoice.fields {
    available = firstname, lastname, email, password, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed, createFrontendUser
    required  = firstname, lastname, email, password, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
}

Pay attention to the fields. The field createFrontendUser is available but not required. The field password is available and required – but the password field has a special behaviour: It will be only validated if the createFrontendUser checkbox is selected during checkout!

This makes it possible to create a frontend-user during checkout when createFrontendUser is selected or buying as a guest if it's not selected.

Basket request only

Request products only. Minimum order value and a mostly all fields are disabled on this checkout.

themes.configuration.extension.shop.checkout.onInvoice.active = 0
themes.configuration.extension.shop.checkout.prePayment.active = 0
themes.configuration.extension.shop.checkout.klarna.active = 0
themes.configuration.extension.shop.checkout.stripe.active = 0
themes.configuration.extension.shop.checkout.payPal.active = 0
themes.configuration.extension.shop.checkout.payPalPlus.active = 0
themes.configuration.extension.shop.checkout.payPalCheckout.active = 0
themes.configuration.extension.shop.checkout.sepa.active = 0
themes.configuration.extension.shop.checkout.defaultPayment = request
themes.configuration.extension.shop.basket.minimumOrderValue = 0
themes.configuration.pages.shop.checkout = 70
themes.configuration.extension.shop.checkout.request.fields {
    available = firstname, lastname, phone, email, message, privacyProtectionConfirmed
    required =  firstname, lastname,        email,          privacyProtectionConfirmed
}

Basket SEPA only B2C

This basket uses SEPA Direct Debit checkout and is intended for B2C customers.

In this case, the difference between B2B and B2C is that B2C customers can request a refund within eight weeks from the debit date.

themes.configuration.extension.shop.checkout.merchantName = Demo-Shop Inc.
themes.configuration.extension.shop.checkout.onInvoice.active = 0
themes.configuration.extension.shop.checkout.prePayment.active = 0
themes.configuration.extension.shop.checkout.klarna.active = 0
themes.configuration.extension.shop.checkout.stripe.active = 0
themes.configuration.extension.shop.checkout.payPal.active = 0
themes.configuration.extension.shop.checkout.payPalPlus.active = 0
themes.configuration.extension.shop.checkout.payPalCheckout.active = 0
themes.configuration.extension.shop.checkout.sepa.active = 1
themes.configuration.extension.shop.checkout.request.active = 0
themes.configuration.extension.shop.checkout.defaultPayment = request
themes.configuration.extension.shop.basket.minimumOrderValue = 0
themes.configuration.extension.shop.basket.displayType = b2c
themes.configuration.pages.shop.checkout = 104
themes.configuration.extension.shop.checkout.sepa.fields {
  available = firstname, lastname, street, houseNumber, postalCode, city, country, email, accountHolder, iban, bic, bankName, sepaConfirmedB2C, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
  required =  firstname, lastname, street, houseNumber, postalCode, city, country, email, accountHolder, iban, bic, bankName, sepaConfirmedB2C, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
}

Basket SEPA only B2B

This basket uses SEPA Direct Debit checkout and is intended for B2B customers.

In this case, the difference between B2B and B2C is that B2C customers can request a refund within eight weeks from the debit date.

themes.configuration.extension.shop.checkout.merchantName = Demo-Shop Inc.
themes.configuration.extension.shop.checkout.onInvoice.active = 0
themes.configuration.extension.shop.checkout.prePayment.active = 0
themes.configuration.extension.shop.checkout.klarna.active = 0
themes.configuration.extension.shop.checkout.stripe.active = 0
themes.configuration.extension.shop.checkout.payPal.active = 0
themes.configuration.extension.shop.checkout.payPalPlus.active = 0
themes.configuration.extension.shop.checkout.payPalCheckout.active = 0
themes.configuration.extension.shop.checkout.sepa.active = 1
themes.configuration.extension.shop.checkout.request.active = 0
themes.configuration.extension.shop.checkout.defaultPayment = request
themes.configuration.extension.shop.basket.minimumOrderValue = 0
themes.configuration.extension.shop.basket.displayType = b2b
themes.configuration.pages.shop.checkout = 107
themes.configuration.extension.shop.checkout.sepa.fields {
  available = firstname, lastname, street, houseNumber, postalCode, city, country, email, accountHolder, iban, bic, bankName, sepaConfirmedB2B, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
  required =  firstname, lastname, street, houseNumber, postalCode, city, country, email, accountHolder, iban, bic, bankName, sepaConfirmedB2B, privacyProtectionConfirmed, termsConfirmed, disclaimerConfirmed
}
Shopping basket 0 Products

The Demo is build with*

EXT:bootstrap_package for site-package aka theme build on Bootsrap 5.

EXT:modules for user plugins like user-profile, registration, user-addresses, and more.

EXT:shop for the whole shop functionality.

EXT:questions for the FAQ page and FAQs attached in the product detail views.

EXT:glossaries for the glossaries and definitions.

EXT:fluid_fpdf for generating invoices, delivery-notes, product-sheets and more.

EXT:parsedown_extra for rendering the extension documentations from markdown to HTML.

* There are only build-in settings made using site-settings & TypoScript – no templates or other files were changed or overridden!