Jump to content

API Bug / erorr with configoptions pricing.


bryanb2

Recommended Posts

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]

2gFjR

 

--

SELECT * from `tblpricing` WHERE relid = [b]285[/b]

Returns

oBJhK

 

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated