Jump to content

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

What Is The Function Of The Getsimplerates() In An Iservice ?

 
  • ugo
  • Newbie
  • Trial users
  • Join Date: 02-Feb 21
  • 13 posts

Posted 10 March 2021 - 08:58 PM #1

When building a custom shipping service I was under the impression that a request is made in the getSimpleRates() function and it would then pass the response from said request to the processResponse and processError functions. However after much debugging it seems the response actually comes from the getRequestData() function.

 

So I am looking for some clarity as to what the getSimpleRates() function does. I have taken a look at some of the shipping examples and they didnt really help me.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21984 posts

Posted 11 March 2021 - 04:20 AM #2

getSimpleRates function is used to make a request to shipping service API

 

getRequestData function is used to prepare data for such request (url, data. headers, etc)


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)