ERROR Multiplying Shipping Classes
-
I have created the shipping classes successfully, but I can't use the * [qty] function. however, there is a progressive option "Per Piece - Accumulate total by multiplying the quantity" but this option gives a multiplication error in sending since it does not multiply the number of times of the product by the shipping value of the class. What it does is a miscalculation that doesn't make sense. Any solution? I have seen the code inside foreach ($ progressive as $ value) { $ costs [$ value ['product_id']] = $ value ['item_cost'] * $ item ['quantity']; } In theory it makes sense but it doesn't work and it keeps doing a wrong calculation For instance: Product 1 ($ 3.19) - x- (4) qty (Shipping cost $ 5.00 x piece) Standard Cost $ 3 Total shipping should be = $ 3 + $ 20 = $ 23.00 but for some reason that I do not know the shipping value appears $ 74.85 I have tried it with products of different prices thinking that I was multiplying the value of the product by the shipping cost, but the result is exactly the same any ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘ERROR Multiplying Shipping Classes’ is closed to new replies.