• Resolved aceone999

    (@aceone999)


    
    100|0|flyer
    500|4|flyer
    1000|6|flyer
    1500|6|flyer
    2000|8|flyer
    2500|10|flyer
    3500|12|flyer
    4000|14|flyer
    4500|16|flyer
    5000|18|flyer
    5500|20|flyer
    6500|22|flyer
    7000|24|flyer
    7500|26|flyer
    8500|28|flyer
    9000|30|flyer
    9500|32|flyer
    10000|34|flyer
    1|0
    80|2
    485|3|0x0x19
    485|9|0x0x2000
    1900|9
    4800|11
    9700|12
    19500|17
    29000|24

    With this setup I get wrong fees.

    1x Product with height 15, weight 284, not in shipping class flyer.

    With this in cart get a shipping fee of 7,- I don’t know where the 7 is coming from.
    If I add this product two times, it shows 15,-
    If I remove the fees related to the shipping class flyer every thing seems normal.
    With flyer fees in settings.

    Peso total: 284
    Volumen: 0
    Largo: 0
    Ancho: 0
    Alto: 15
    Medidas: Array
    (
        [0] => Array
            (
                [largo] => 
                [ancho] => 
                [alto] => 15
                [cantidad] => 1
            )
    
    )
    
    Clases: Array
    (
        [todas] => 284
        [michaels-verlag] => 284
    )
    Tarifas: Array
    (
        [todas] => Array
            (
                [0] => Array
                    (
                        [peso] => 100
                        [importe] => 0
                    )
    
                [1] => Array
                    (
                        [peso] => 500
                        [importe] => 4
                    )
    
                [2] => Array
                    (
                        [peso] => 1000
                        [importe] => 6
                    )
    
                [3] => Array
                    (
                        [peso] => 1500
                        [importe] => 6
                    )
    
                [4] => Array
                    (
                        [peso] => 2000
                        [importe] => 8
                    )
    
                [5] => Array
                    (
                        [peso] => 2500
                        [importe] => 10
                    )
    
                [6] => Array
                    (
                        [peso] => 3500
                        [importe] => 12
                    )
    
                [7] => Array
                    (
                        [peso] => 4000
                        [importe] => 14
                    )
    
                [8] => Array
                    (
                        [peso] => 4500
                        [importe] => 16
                    )
    
                [9] => Array
                    (
                        [peso] => 5000
                        [importe] => 18
                    )
    
                [10] => Array
                    (
                        [peso] => 5500
                        [importe] => 20
                    )
    
                [11] => Array
                    (
                        [peso] => 6500
                        [importe] => 22
                    )
    
                [12] => Array
                    (
                        [peso] => 7000
                        [importe] => 24
                    )
    
                [13] => Array
                    (
                        [peso] => 7500
                        [importe] => 26
                    )
    
                [14] => Array
                    (
                        [peso] => 8500
                        [importe] => 28
                    )
    
                [15] => Array
                    (
                        [peso] => 9000
                        [importe] => 30
                    )
    
                [16] => Array
                    (
                        [peso] => 9500
                        [importe] => 32
                    )
    
                [17] => Array
                    (
                        [peso] => 10000
                        [importe] => 34
                    )
    
            )
    
        [sin-clase] => Array
            (
                [0] => Array
                    (
                        [peso] => 1
                        [importe] => 0
                    )
    
                [1] => Array
                    (
                        [peso] => 80
                        [importe] => 2
                    )
    
                [2] => Array
                    (
                        [medidas] => 0x0x19
                        [peso] => 485
                        [importe] => 3
                    )
    
                [3] => Array
                    (
                        [medidas] => 0x0x2000
                        [peso] => 485
                        [importe] => 9
                    )
    
                [4] => Array
                    (
                        [peso] => 1900
                        [importe] => 9
                    )
    
                [5] => Array
                    (
                        [peso] => 4800
                        [importe] => 11
                    )
    
                [6] => Array
                    (
                        [peso] => 9700
                        [importe] => 12
                    )
    
                [7] => Array
                    (
                        [peso] => 19500
                        [importe] => 17
                    )
    
                [8] => Array
                    (
                        [peso] => 29000
                        [importe] => 24
                    )
    
            )
    
    )

    Without flyer fees in settings.

    1|0
    80|2
    485|3|0x0x19
    485|9|0x0x2000
    1900|9
    4800|11
    9700|12
    19500|17
    29000|24
    Peso total: 284
    Volumen: 0
    Largo: 0
    Ancho: 0
    Alto: 15
    Medidas: Array
    (
        [0] => Array
            (
                [largo] => 
                [ancho] => 
                [alto] => 15
                [cantidad] => 1
            )
    
    )
    
    Clases: Array
    (
        [todas] => 284
        [michaels-verlag] => 284
    )
    Tarifas: Array
    (
        [sin-clase] => Array
            (
                [0] => Array
                    (
                        [peso] => 1
                        [importe] => 0
                    )
    
                [1] => Array
                    (
                        [peso] => 80
                        [importe] => 2
                    )
    
                [2] => Array
                    (
                        [medidas] => 0x0x19
                        [peso] => 485
                        [importe] => 3
                    )
    
                [3] => Array
                    (
                        [medidas] => 0x0x2000
                        [peso] => 485
                        [importe] => 9
                    )
    
                [4] => Array
                    (
                        [peso] => 1900
                        [importe] => 9
                    )
    
                [5] => Array
                    (
                        [peso] => 4800
                        [importe] => 11
                    )
    
                [6] => Array
                    (
                        [peso] => 9700
                        [importe] => 12
                    )
    
                [7] => Array
                    (
                        [peso] => 19500
                        [importe] => 17
                    )
    
                [8] => Array
                    (
                        [peso] => 29000
                        [importe] => 24
                    )
    
            )
    
    )
    
    • This topic was modified 5 years ago by aceone999.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Art Project Group

    (@artprojectgroup)

    Please change this. In file apg-shipping.php, line 519:
    if ( $clases[ 'todas' ] > 0 ) {
    with this:
    if ( isset( $clases[ 'sin-clase' ] ) && $clases[ 'todas' ] > 0 ) {

    We’ll update the fix as soon as you confirm this answer.

    Kind regards.

    Thread Starter aceone999

    (@aceone999)

    Well looks normal now. Thx.

    Plugin Author Art Project Group

    (@artprojectgroup)

    We’ll update the plugin as soon as possible.

    Thanks.

    Plugin Author Art Project Group

    (@artprojectgroup)

    Updated.

    Kind regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Wrong fee with shipping classes’ is closed to new replies.