Hello,
I'm trying to create an order page using the API. I'm able to call get_products and receive a successful response but for some reason it's not sending the correct prices for various configoptions.
[configoption] => Array
(
[0] => stdClass Object
(
[id] => [b]46[/b]
[name] => Player Slots
[type] => 1
[options] => stdClass Object
(
[option] => Array
(
[0] => stdClass Object
(
[id] => 284
[name] => Player Slots
[recurring] => 0
[pricing] => stdClass Object
(
[uSD] => stdClass Object
(
[msetupfee] => 0.00
[qsetupfee] => 0.00
[ssetupfee] => 0.00
[asetupfee] => 0.00
[bsetupfee] => 0.00
[tsetupfee] => 0.00
[monthly] => 8.00
[quarterly] => 22.80
[semiannually] => 44.64
[annually] => 86.40
[biennially] => 0.00
[triennially] => 0.00
)
)
)
[1] => stdClass Object
(
[id] => [b]285[/b]
[name] => 8
[recurring] => 0
[pricing] => stdClass Object
(
[uSD] => stdClass Object
(
[msetupfee] => 0.00
[qsetupfee] => 0.00
[ssetupfee] => 0.00
[asetupfee] => 0.00
[bsetupfee] => 0.00
[tsetupfee] => 0.00
[monthly] => 8.00
[quarterly] => 22.80
[semiannually] => 44.64
[annually] => 86.40
[biennially] => 0.00
[triennially] => 0.00
)
)
)
Now, all of the 'options' for "Player Slots" comes back with the same prices.
A quick look in the table tblpricing
select * from tblpricing WHERE relid = [b]46[/b]
--
SELECT * from `tblpricing` WHERE relid = [b]285[/b]
Returns
Which is the correct prices. however.. seems like the ID 46 is taking over on the API getproducts.
So my question is.. How can I get the correct price for configoptions using the API?
Thanks!