I'm not familiar with Magento API, may be this problem is very easy, but i don't know. Please, help me to fix this!
Store have configurable product, which costs 750 ("base version"), via API iI want to buy configured product, which costs 1500. When I just try to get shoppingCartTotals()shoppingCartTotals()
, iI get right prices (with right tax), but when iI try to get shipping and payment methods - prices changing O_O.
Without shipping and payment methods:
array(3) { [0]=> object(stdClass)#2 (2) { ["title"]=> string(8) "Subtotal" ["amount"]=> float(1500) } [1]=> object(stdClass)#3 (2) { ["title"]=> string(3) "Tax" ["amount"]=> float(300) } [2]=> object(stdClass)#4 (2) { ["title"]=> string(11) "Grand Total" ["amount"]=> float(1500) } }
With shipping and payment methods:
array(2) { ["shoppingCartPaymentMethod"]=> bool(true) ["shoppingCartShippingMethod"]=> bool(true) } array(4) { [0]=> object(stdClass)#2 (2) { ["title"]=> string(8) "Subtotal" ["amount"]=> float(780) } [1]=> object(stdClass)#3 (2) { ["title"]=> string(3) "Tax" ["amount"]=> float(156) } [2]=> object(stdClass)#4 (2) { ["title"]=> string(40) "Shipping & Handling (Fri frakt - Gratis)" ["amount"]=> float(0) } [3]=> object(stdClass)#5 (2) { ["title"]=> string(11) "Grand Total" ["amount"]=> float(780) } }
Without shipping and payment methods:
array(3) {
[0]=>
object(stdClass)#2 (2) {
["title"]=>
string(8) "Subtotal"
["amount"]=>
float(1500)
}
[1]=>
object(stdClass)#3 (2) {
["title"]=>
string(3) "Tax"
["amount"]=>
float(300)
}
[2]=>
object(stdClass)#4 (2) {
["title"]=>
string(11) "Grand Total"
["amount"]=>
float(1500)
}
}
- With shipping and payment methods:
array(2) {
["shoppingCartPaymentMethod"]=>
bool(true)
["shoppingCartShippingMethod"]=>
bool(true)
}
array(4) {
[0]=>
object(stdClass)#2 (2) {
["title"]=>
string(8) "Subtotal"
["amount"]=>
float(780)
}
[1]=>
object(stdClass)#3 (2) {
["title"]=>
string(3) "Tax"
["amount"]=>
float(156)
}
[2]=>
object(stdClass)#4 (2) {
["title"]=>
string(40) "Shipping & Handling (Fri frakt - Gratis)"
["amount"]=>
float(0)
}
[3]=>
object(stdClass)#5 (2) {
["title"]=>
string(11) "Grand Total"
["amount"]=>
float(780)
}
}
What iam I doing wrong?