Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 130709

Wrong TOTAL amount in cart

$
0
0

Replies: 0

Hi,
when I add into cart same variation product with different measurement data I will always get wrong total amount on previously added products. See an example.

But in array there will always be correct data. Why were data from array read incorrectly?

Array for example from the picture

Array
(
    [0] => Array
        (
            [pricing_item_meta_data] => Array
                (
                    [_price] => 161.28
                    [_measurement_needed] => 5.76
                    [_measurement_needed_unit] => sq m
                    [_quantity] => 1
                    [length] => 200
                    [width] => 200
                    [height] => 20
                )

            [product_id] => 89
            [variation_id] => 133
            [variation] => Array
                (
                    [attribute_pa_barva] => bela
                )

            [quantity] => 1
            [line_total] => 161.28
            [line_tax] => 0
            [line_subtotal] => 161.28
            [line_subtotal_tax] => 0
            [line_tax_data] => Array
                (
                    [total] => Array
                        (
                        )

                    [subtotal] => Array
                        (
                        )

                )

        )

    [1] => Array
        (
            [pricing_item_meta_data] => Array
                (
                    [_price] => 177.9288
                    [_measurement_needed] => 6.3546
                    [_measurement_needed_unit] => sq m
                    [_quantity] => 1
                    [length] => 215
                    [width] => 186
                    [height] => 26
                )

            [product_id] => 89
            [variation_id] => 133
            [variation] => Array
                (
                    [attribute_pa_barva] => bela
                )

            [quantity] => 1
            [line_total] => 177.9288
            [line_tax] => 0
            [line_subtotal] => 177.9288
            [line_subtotal_tax] => 0
            [line_tax_data] => Array
                (
                    [total] => Array
                        (
                        )

                    [subtotal] => Array
                        (
                        )

                )

        )

)

Viewing all articles
Browse latest Browse all 130709

Trending Articles