Jump to content

How to get the client product price price (product price + Addon price + configoptions ) using API ?


shweta

Recommended Posts

I want to display client products total price (product price + Addon price + configoptions). How to get this total from API?

I am using getclientsproducts API for this but it returns -


           [product] => Array
               (
                   [0] => SimpleXMLElement Object
                       (
                           [id] => 565
                           [clientid] => 1792
                           [orderid] => 618
                           [pid] => 47
                           [regdate] => 2014-08-06
                           [name] => Monthly subscription
                           [groupname] => CreateMagazines
                           [firstpaymentamount] => 16.00
                           [recurringamount] => 16.00
                         ...
                           [nextduedate] => 2014-08-06
                           [status] => Active
                           ....
                          [configoptions] => SimpleXMLElement Object
                               (
                                   [configoption] => SimpleXMLElement Object
                                       (
                                           [id] => 2
                                           [option] => 1GB storage
                                           [type] => quantity
                                           [value] => 1
                                       )

                               )

                       )

                   [1] => SimpleXMLElement Object
                       (
                           [id] => 566
                           [clientid] => 1792
                           [orderid] => 619
                           [pid] => 47
                           [regdate] => 2014-08-06
                           [name] => Monthly subscription
                           [groupname] => CreateMagazines
                           [firstpaymentamount] => 0.00
                           [recurringamount] => 0.00
                           [paymentmethod] => tco
                          ..... 

 

[1] element is my Addon and [firstpaymentamount] => 0.00 .

So how can i get the total product price using API or what is the SQL query for getting this?

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