Support » Plugin: WC - APG Weight Shipping » Highest slipping class rate does not use total cart weight

  • Resolved janv01

    (@janv01)


    Hi,

    When using option highest shipping class rate, the calculation is done on the weight of the highest shipping class and not on the total cart weight.
    It should use the total cart weight.

    Jan

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Art Project Group

    (@artprojectgroup)

    Use the debug option to see what happens with your rates.

    Kind regards.

    Thread Starter janv01

    (@janv01)

    This is what happens (the log):
    Weigth is above 5: shipping should be 25 in stead of 19.50.

    Peso total: 5.15
    Volumen: 0
    Largo: 0
    Ancho: 0
    Alto: 0
    Medidas: Array
    (
        [0] => Array
            (
                [largo] => 
                [ancho] => 
                [alto] => 
                [cantidad] => 5
            )
    
        [1] => Array
            (
                [largo] => 
                [ancho] => 
                [alto] => 
                [cantidad] => 49
            )
    
    )
    
    Clases: Array
    (
        [todas] => 5.15
        [briefpost] => 0.25
        [pakketpost] => 4.9
    )
    Tarifas: Array
    (
        [briefpost] => Array
            (
                [0] => Array
                    (
                        [peso] => 0.000
                        [importe] => 4.65
                    )
    
                [1] => Array
                    (
                        [peso] => 0.251
                        [importe] => 7.75
                    )
    
                [2] => Array
                    (
                        [peso] => 1.9
                        [importe] => 9.30
                    )
    
            )
    
        [pakketpost] => Array
            (
                [0] => Array
                    (
                        [peso] => 1.9
                        [importe] => 13
                    )
    
                [1] => Array
                    (
                        [peso] => 4.9
                        [importe] => 19.50
                    )
    
                [2] => Array
                    (
                        [peso] => 9.9
                        [importe] => 25
                    )
    
            )
    
    )
    Plugin Author Art Project Group

    (@artprojectgroup)

    The debug information is for you. We can’t know which is your configuration, cart, products weight, quantity, shipping classes…

    Kind regards.

    Thread Starter janv01

    (@janv01)

    Ok, but I think the plugin reacts different than I thought.
    What I would expect is that the shipping costs are calculated based on the total cart weight.
    But the plugin calculates it based on the weight of the highest shipping class and not based on the total weight.

    How should it work according to you?

    Thread Starter janv01

    (@janv01)

    These are my settings:
    Apply shipping rate per… Total weight
    Highest shipping class rate: Selected

    Plugin Author Art Project Group

    (@artprojectgroup)

    The answer depends on your configuration 🙁

    It can work based of total cart weight, without shipping classes, and based on the weight of the highest shipping class, when you use more than one shipping class in the rates.

    Please read the documentation.

    Kind regards.

    Thread Starter janv01

    (@janv01)

    Okay, well Spanish is a very beautiful language, but I am not able to understand it.
    But, what I understand is that in my case (more than one shipping class) the calculation is done based on the weight of the highest shipping class. That is indeed how the results are.
    Nevertheless it would be very nice to select highest shipping class rate and still calculate it based on the overall cart weight.

    Can you consider this proposal?

    Thread Starter janv01

    (@janv01)

    So what I would like to have is one extra option in the configuration:

    Apply shipping rate per… Total Overall Weight (sum of all classes).

    I think this option would be a very nice addition to the plugin, a must-have.
    And great if you could implement this option!

    Plugin Author Art Project Group

    (@artprojectgroup)

    Now you can get the sum of all classes. It’s no necessary, just unselect highest shipping class rate.

    Kind regards.

    Thread Starter janv01

    (@janv01)

    When I unselect Highest shipping class the shipping costs are set to the sum of all classes, but what I need is that the weight where the shipping costs are based upon, needs to be total weight, but the shipping costs need to be set to the highest class and not all classes.
    So when I have these rules:
    1.9|4.60|briefpost
    9.9|6.75|pakketpost
    20|13|pakketpost
    And both briefpost and pakketpost are in the cart and total weight is less than 9.9, then the price must be 6.75 and not 4.60+6.75.
    The weight where the calculation is based upon must be total weight of all products.
    So when briefpost product(s) have weight 1 and pakketpost products have weight 5, then total weight is 6. This is below 9.9 and then price is 6.75.
    But when weight of briefpost product(s) is 6 then total weight is 11, and then shipping costs should be 13 and not 4.60+6.75+13.

    This cannot be achieved by unselecting Highest shipping class.
    Selecting it gives much better results, but the weight of the lowest class is not calculated in the total weight.

    Plugin Author Art Project Group

    (@artprojectgroup)

    Tested and no issues detected:

    Peso total: 4
    Volumen: 0
    Largo: 0
    Ancho: 0
    Alto: 0
    Medidas: Array
    (
        [0] => Array
            (
                [largo] => 0
                [ancho] => 0
                [alto] => 0
                [cantidad] => 1
            )
    
        [1] => Array
            (
                [largo] => 0
                [ancho] => 0
                [alto] => 0
                [cantidad] => 1
            )
    
    )
    
    Clases: Array
    (
        [todas] => 4
        [briefpost] => 2
        [pakketpost] => 2
    )
    Tarifas: Array
    (
        [briefpost] => Array
            (
                [0] => Array
                    (
                        [peso] => 1.9
                        [importe] => 4.60
                    )
    
            )
    
        [pakketpost] => Array
            (
                [0] => Array
                    (
                        [peso] => 9.9
                        [importe] => 6.75
                    )
    
                [1] => Array
                    (
                        [peso] => 20
                        [importe] => 13
                    )
    
            )
    
    )

    Result: 11,35 € (4,60 + 6,75).

    Works fine when you select “Overweight/over dimensions” option.

    Please check your configuration.

    Kind regards.

    Thread Starter janv01

    (@janv01)

    Hi, I need only the shipping price that belongs to the highest class and not the sum of the class prices.
    And must be based on total weight of the cart (so all products weights).
    Selecting Overweight/over dimensions makes no difference.
    Is it possible that I mail my situation with my complete configuration and website address?

    Regards

    Plugin Author Art Project Group

    (@artprojectgroup)

    If you select “Highest shipping class rate” option, you get 6,75 € because the plugin get the total weight of that shipping class, 2 kg in my example, not total cart weight, 4 kg in my example.

    The plugin works like this, if you need a new functionality please contact us by email to get a quote to add it in the next update.

    Kind regards.

    Thread Starter janv01

    (@janv01)

    Okay thanks, I will sent a mail with my request. So that this feature can be implemented in a future update.

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.