Skip to content

Commit

Permalink
[BUGFIX] Use recommended codeblock notation
Browse files Browse the repository at this point in the history
Related: #273
  • Loading branch information
extcode committed Jan 31, 2020
1 parent 4be482d commit 2b7a649
Show file tree
Hide file tree
Showing 15 changed files with 115 additions and 132 deletions.
Expand Up @@ -7,21 +7,19 @@ Um Produkte per AJAX-Request in den Warenkorb zu legen, wird eine Konfiguration

::

ajaxCart = PAGE
ajaxCart {
typeNum = 2278001

config {
disableAllHeaderCode = 1
xhtml_cleaning = 0
admPanel = 0
debug = 0
no_cache = 1
}

10 < tt_content.list.20.cart_cart
}

|
ajaxCart = PAGE
ajaxCart {
typeNum = 2278001

config {
disableAllHeaderCode = 1
xhtml_cleaning = 0
admPanel = 0
debug = 0
no_cache = 1
}

10 < tt_content.list.20.cart_cart
}

Dies ist die mitgelieferte Konfiguration für das Warenkorb-Plugin. Über diesen Seitentyp (2278001) lassen sich Produkte zum Warenkorb hinzufügen.
Expand Up @@ -10,7 +10,7 @@ PageTS:

::

# clearCacheCmd for product folder with page id 35
[globalVar = TSFE:id=35]
TCEMAIN.clearCacheCmd = cacheTag:tx_cart
[end]
# clearCacheCmd for product folder with page id 35
[globalVar = TSFE:id=35]
TCEMAIN.clearCacheCmd = cacheTag:tx_cart
[end]
Expand Up @@ -5,28 +5,28 @@ Checkbox Configuration

::

plugin.tx_cart {
settings {
cart {
acceptTermsAndConditions.pid = {$plugin.tx_cart.settings.cart.acceptTermsAndConditions.pid}
acceptRevocationInstruction.pid = {$plugin.tx_cart.settings.cart.acceptRevocationInstruction.pid}
acceptPrivacyPolicy.pid = {$plugin.tx_cart.settings.cart.acceptPrivacyPolicy.pid}
}

validation {
orderItem {
fields {
acceptTermsAndConditions.validator = Boolean
acceptTermsAndConditions.options.is = true
acceptRevocationInstruction.validator = Boolean
acceptRevocationInstruction.options.is = true
acceptPrivacyPolicy.validator = Boolean
acceptPrivacyPolicy.options.is = true
}
}
}
}
}
plugin.tx_cart {
settings {
cart {
acceptTermsAndConditions.pid = {$plugin.tx_cart.settings.cart.acceptTermsAndConditions.pid}
acceptRevocationInstruction.pid = {$plugin.tx_cart.settings.cart.acceptRevocationInstruction.pid}
acceptPrivacyPolicy.pid = {$plugin.tx_cart.settings.cart.acceptPrivacyPolicy.pid}
}

validation {
orderItem {
fields {
acceptTermsAndConditions.validator = Boolean
acceptTermsAndConditions.options.is = true
acceptRevocationInstruction.validator = Boolean
acceptRevocationInstruction.options.is = true
acceptPrivacyPolicy.validator = Boolean
acceptPrivacyPolicy.options.is = true
}
}
}
}
}

settings.cart.acceptTermsAndConditions.pid
""""""""""""""""""""""""""""""""""""""""""
Expand Down
Expand Up @@ -8,18 +8,18 @@ TypoScript konfigurieren.

::

plugin.tx_cart {
settings {
currencies {
default = 1
1 {
code = EUR
sign = €
translation = 1.00
}
}
}
}
plugin.tx_cart {
settings {
currencies {
default = 1
1 {
code = EUR
sign = €
translation = 1.00
}
}
}
}

settings.currency.default
"""""""""""""""""""""""""
Expand Down
Expand Up @@ -6,8 +6,6 @@ Format Konfiguration
Um die Templates etwas einfacher zu gestalten, können über TypoScript die Formatangaben für die Preisausgabe konfiguriert
werden. Diese TypoScript-Angaben werden dann im <cart:format.currency>-ViewHelper verwendet.



::

plugin.tx_cart {
Expand Down
24 changes: 12 additions & 12 deletions Documentation/AdministratorManual/Configuration/Main/Index.rst
Expand Up @@ -5,19 +5,19 @@ Main Configuration

::

plugin.tx_cart {
settings {
cart {
pid =
isNetCart =
}
order {
pid =
}
plugin.tx_cart {
settings {
cart {
pid =
isNetCart =
}
order {
pid =
}

addToCartByAjax
}
}
addToCartByAjax
}
}

settings.cart.pid
"""""""""""""""""
Expand Down
Expand Up @@ -75,7 +75,7 @@ Zonenkonfiguration
Sollte keine individuelle Landeskonfiguration gefunden werden, kann auch mit Zonen (zones) im TypoScript gearbeitet werden.
Dies erspart jede Menge Konfigurationsarbeit, wenn in viele Länder geliefert werden soll.

.. code-block:: typoscript
::

plugin.tx_cart {
payments {
Expand All @@ -96,8 +96,6 @@ Dies erspart jede Menge Konfigurationsarbeit, wenn in viele Länder geliefert we
}
}

|
.. container:: table-row

Property
Expand Down Expand Up @@ -126,7 +124,7 @@ Bezahlmethoden deaktivieren
Im Moment erlaubt es die Verarbeitung nicht ganz auf die Bezahlmethoden zu verzichten. Eine Bezahlmethoden muss immer angegeben
sein. Wenn es lediglich eine Bezahlmethode gibt, kann der Auswahlblock ausblendet werden.

.. code-block:: typoscript
::

plugin.tx_cart {
settings {
Expand All @@ -138,8 +136,6 @@ sein. Wenn es lediglich eine Bezahlmethode gibt, kann der Auswahlblock ausblende
}
}

|
.. container:: table-row

Property
Expand Down
Expand Up @@ -3,7 +3,7 @@
Main configuration
==================

.. code-block:: typoscript
::

plugin.tx_cart {
settings {
Expand Down
Expand Up @@ -7,27 +7,25 @@ Neben der Erzeugung der PDF-Dokumente für die Bestellbestätigung, die Rechnung

::

plugin.tx_cart {
autoGenerateDocuments {
invoice = 1
delivery = 1
}
plugin.tx_cart {
autoGenerateDocuments {
invoice = 1
delivery = 1
}

mail {
seller {
attachDocuments {
delivery = 1
}
}
buyer {
attachDocuments {
invoice = 1
}
}
}
}

|
mail {
seller {
attachDocuments {
delivery = 1
}
}
buyer {
attachDocuments {
invoice = 1
}
}
}
}

Die obige Konfiguration sorgt mit autoGenerateDocuments dafür, dass die Rechnung und der Lieferschein generiert werden. Die

Expand Down
Expand Up @@ -24,7 +24,7 @@ The description

can be used for both `payment` and `shipping`

.. code-block:: typoscript
::

# ServiceMethod = payment
plugin.tx_cart.payment.countries.de.preset = 1
Expand Down
Expand Up @@ -10,7 +10,7 @@ depend on the amount of products in cart. The cart extension provides a service
default implementation which can handle different kinds of dependencies.
A common condition is the amount of physical products in cart.

.. code-block:: typoscript
::

plugin.tx_cart {
shippings {
Expand Down Expand Up @@ -51,8 +51,6 @@ A common condition is the amount of physical products in cart.
}
}

|
.. container:: table-row

Property
Expand Down Expand Up @@ -90,17 +88,22 @@ A common condition is the amount of physical products in cart.
Description
Defines the extra value.

Extending Service Calculation
-----------------------------

Sometimes the shipping method has some special rules.
In Germany the Post provides the so called "Bücherversand" for books. Some rules
apply to this shipping method.
* The weight is included in the price calculation.
* Certain lengths and widths must not be exceeded.
* Furthermore only books may be sent.

- The weight is included in the price calculation.
- Certain lengths and widths must not be exceeded.
- Furthermore only books may be sent.

Such special rules cannot be mapped using TypoScript configurations. Therefore, a
separate service class can be implemented for a method, which can then return the
calculated price to the shopping cart.

.. code-block:: typoscript
::

plugin.tx_cart {
shippings {
Expand All @@ -120,8 +123,6 @@ calculated price to the shopping cart.
}
}

|
.. container:: table-row

Property
Expand Down
Expand Up @@ -69,7 +69,7 @@ Zonenkonfiguration
Sollte keine individuelle Landeskonfiguration gefunden werden, kann auch mit Zonen (zones) im TypoScript gearbeitet werden.
Dies erspart jede Menge Konfigurationsarbeit, wenn in viele Länder geliefert werden soll.

.. code-block:: typoscript
::

plugin.tx_cart {
shippings {
Expand Down Expand Up @@ -120,7 +120,7 @@ Versandarten deaktivieren
Im Moment erlaubt es die Verarbeitung nicht ganz auf die Versandarten zu verzichten. Eine Versandart muss immer angegeben
sein. Wenn es lediglich eine Versandart gibt, kann der Auswahlblock ausblendet werden.

.. code-block:: typoscript
::

plugin.tx_cart {
settings {
Expand All @@ -132,8 +132,6 @@ sein. Wenn es lediglich eine Versandart gibt, kann der Auswahlblock ausblendet w
}
}

|
.. container:: table-row

Property
Expand Down
Expand Up @@ -3,7 +3,7 @@
Main configuration
==================

.. code-block:: typoscript
::

plugin.tx_cart {
settings {
Expand Down
2 changes: 1 addition & 1 deletion Documentation/AdministratorManual/Installation/Index.rst
Expand Up @@ -20,7 +20,7 @@ Latest version from git
-----------------------
You can get the latest version from git by using the git command:

.. code-block:: bash
::

git clone git@github.com:extcode/cart.git

Expand Down

0 comments on commit 2b7a649

Please sign in to comment.