Skip to content

Zone Configuration no longer supported #591

@Poepp

Description

@Poepp

Bug Report

Current Behavior
Looks like the Zone-Configuration of former cart versions is no longer working. In my working cart setup I used the following configuration for payments and shipping:

    shippings {
    zones {
            1 {
               preset = 1
               countries = at
               options {
                   1 {
                       title = Versand Österreich
                       extra = by_price
                       extra {
                         1 {
                           value = 0.00
                           extra = 3.70
                         }
                         2 {
                           value = 100.00
                           extra = 0.00
                         }
                       }
                       taxClassId = 1
                       status = open
                   }
                   2 {
                       title = Abholung
                       extra = 0.00
                       taxClassId = 1
                       status = open
                   }
               }
           }
           2 {
               preset = 1
               countries = de,ch,be,fr,it,lu,nl,sk,si
               options {
                   1 {
                       title = Versand International
                       extra = by_price
                       extra {
                         1 {
                          value = 0.00
                           extra = 5.90
                        }
                         2 {
                           value = 100.00
                           extra = 0.00
                         }
                       }
                       taxClassId = 1
                       status = open
                   }
                   2 {
                       title = Abholung
                       extra = 0.00
                       taxClassId = 1
                       status = open
                   }
               }
           }
        }
    }

    payments {
    zones {
            1 {
                preset = 2
                countries = at,de,ch,be,fr,it,lu,nl,sk,si
                options {
                    1 {
                        title = Vorkasse
                        extra = 0.00
                        taxClassId = 1
                        status = open
                    }
                    2 {
                        provider = PAYPAL
                        title = Paypal
                        extra = 0.50
                        taxClassId = 1
                        status = open
                    }
                    3 {
                        provider = PAYPAL_CREDIT_CARD
                        title = Kreditkarte
                        extra = 0.50
                        taxClassId = 1
                        status = open
                     }
                    4 {
                        provider = PAYPAL_CREDIT_CARD
                        title = Lastschrift
                        extra = 0.50
                        taxClassId = 1
                        status = open
                     }
                }
            }
        }
    }

However, with the breaking change of https://docs.typo3.org/p/extcode/cart/9.0/en-us/Changelog/9.0/Breaking-380-TypoScriptCountriesUniformFormat.html#breaking-380-typoscript-for-countries-in-uniform-format the setup above seems no longer working. This makes sense as the rest of the payment and shipping configuration has changed. I was successfully able to get it working using the normal configuration without using zones.

Therefore it would be great to either update the documentation describing how zones can be used with the new configuration for shippings and payments or just remove the zones configuration feature and give a hint that it's no longer available.

Environment

  • TYPO3 version(s): [12.4.22]
  • cart version: [9.0.3]
  • Is your TYPO3 installation set up with Composer (Composer Mode): [no]
  • OS: [Linux]

For reference here the working configuration after adaption to the new structure:

    payments {
        countries {         
            de {
                preset = 1
                options {
                    1 {
                        provider = PAYPAL
                        title = Paypal
                        extra = 0.50
                        taxClassId = 1
                        status = open
                    }
                    2 {
                        provider = PAYPAL_CREDIT_CARD
                        title = Kreditkarte
                        extra = 0.50
                        taxClassId = 1
                        status = open
                     }
                    3 {
                        provider = PAYPAL_CREDIT_CARD
                        title = Lastschrift
                        extra = 0.50
                        taxClassId = 1
                        status = open
                     }
                }
            }
           at < .de
           ch < .de
           be < .de
           fr < .de
           it < .de
           lu < .de
           nl < .de
           sk < .de
           si < .de
        }
    }

    shippings {
       countries {
           at {
               preset = 1
               options {
                   1 {
                       title = Versand Österreich
                       extra = by_price
                       extra {
                         1 {
                           value = 0.00
                           extra = 3.70
                         }
                         2 {
                           value = 100.00
                           extra = 0.00
                         }
                       }
                       taxClassId = 1
                       status = open
                   }
                   2 {
                       title = Abholung
                       extra = 0.00
                       taxClassId = 1
                       status = open
                   }             
                }
             }
           de {
               preset = 1
               options {
                   1 {
                       title = Versand International
                       extra = by_price
                       extra {
                         1 {
                          value = 0.00
                           extra = 5.90
                        }
                         2 {
                           value = 100.00
                           extra = 0.00
                         }
                       }
                       taxClassId = 1
                       status = open
                   }
                   2 {
                       title = Abholung
                       extra = 0.00
                       taxClassId = 1
                       status = open
                   }
               }
           }
           ch < .de
           be < .de
           fr < .de
           it < .de
           lu < .de
           nl < .de
           sk < .de
           si < .de
        }
    }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions