Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Api Call For Final Price Of Product Rate Topic   - - - - -

 
  • pvein
  • Member
  • Members
  • Join Date: 27-Apr 09
  • 97 posts

Posted 24 May 2018 - 08:01 AM #1

is there a way to get the final price of a product (after promotions, discounts etc) using api? 

 

Thanks 



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11001 posts

Posted 24 May 2018 - 05:58 PM #2

I don't believe so.  Catalog promotions are not applied because the API is usually run in Admin mode.  Hence hard to determine conditions like user_id or usergroup that are common in promotions.  Even if you rant it in customer mode, the promotion price would only apply to that user_id.

 

Of course you could extend the api to have it do promotion checks for a particular user before returning the price.  You could also do it outside of the API via an addon controller.  But again, that would be for a specific user (or unregistered user).


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • pvein
  • Member
  • Members
  • Join Date: 27-Apr 09
  • 97 posts

Posted 24 May 2018 - 06:08 PM #3

basically i am intersted only for unregistered users. 

I have started to experiment with an extension to the API but i cannot get the extension to work.

 

If anyone has any ideas or can send me an offer for the development they are welcome. 

 

Basically what i need is an API call to send the product code(or id) and return the final price for an unregistered customer (i.e. the price that i actually sell)



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11001 posts

Posted 24 May 2018 - 06:17 PM #4

Feel free to use the link in my signature to request a quote and provide your complete set of requirements and restrictions.  Do note that this will require you to adjust the 'tweaks' in config.local.php to allow the api to run as a customer and to setup a customer (non-admin) with an API key to be used.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.