cart icon indicating copy to clipboard operation
cart copied to clipboard

Make Shipping methods be available based on cart conditions

Open johfeu opened this issue 1 year ago • 2 comments

Feature Request

Is your feature request related to a problem? Please describe. Use Case: A shop with virtual/downloadable and physical products. Shipping method A with 0,00 is used by default and shipping method B with actual costs should be used as soon as physical products are in the cart.

Describe the solution you'd like this could be achieved using the same Typoscript condition setup as for the extra costs e.g. by_number_of_physical_products

Describe alternatives you've considered Only using conditional costs with amount 0,00 is not an option because it confuses customers

johfeu avatar Jul 03 '24 12:07 johfeu

example config

    shippings {
        countries {
            de {
                preset = 1
                options {
                    1 {
                        title = PDF/E-Mail
                        taxClassId = 1
                        fallBackId = 2
                        status = open
                        free {
                            from = 0
                        }
                        available = by_number_of_physical_products
                        available {
                            0 {
                                value = 0
                                available = 1
                            }
                            2 {
                                value = 1
                                available = 0
                            }
                        }
                    }

                    2 {
                        title = Postversand
                        taxClassId = 1
                        fallBackId = 1
                        status = open
                        extra = by_number_of_physical_products
                        extra {
                            1 {
                                value = 1
                                extra = 5.00
                            }
                            2 {
                                value = 10
                                extra = 20.00
                            }
                            3 {
                                value = 99
                                extra = 99.00
                            }
                        }
                        available = by_number_of_physical_products
                        available {
                            0 {
                                value = 0
                                available = 0
                            }
                            2 {
                                value = 1
                                available = 1
                            }
                        }
                    }
                }
            }

johfeu avatar Jul 03 '24 14:07 johfeu

Interesting! This is a nice feature imo. 👍🏼

rintisch avatar Jul 05 '24 05:07 rintisch