| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Update "Shipping Modifications" Tutorial? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Update "Shipping Modifications" Tutorial?
Hey there,
I've developed a few modules in the past for the company that I work for, but this time I'm looking to create a new shipping method for a new carrier that's not offered by default. I was looking at the "Shipping Modifications" tutorial in the developer docs, but it appears to be out of date with X-Cart 5.3. Would it be possible to update this tutorial for X-Cart 5.3 as many of the other tutorials were? It would be a great help. Thanks! |
|||||||
#2
|
|||||||
|
|||||||
Re: Update "Shipping Modifications" Tutorial?
Quote:
Agree !! It would be great if someone can update it! Thanks
__________________
JOHN - v.5.3.X biz, X-payment 3.X |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Update "Shipping Modifications" Tutorial?
As far as I see the most recent version still uses the same \XLite\Model\Shipping\Processor\AProcessor base class for integrating with shipping services, and getRates() method is still the one that returns the list of available shipping methods, however now it has a default implementation that works this way:
- it calls prepareInputData() to translate the order data into the data to be sent to the carrier's server - then it calls performRequest() to perform the request to the carrier's server and returns an array of \XLite\Model\Shipping\Rate - finally, it calls the postProcessRates() to do some extra work over the rates I guess you are to implement these methods in your custom shipping carrier module. However, you are not forced to follow this logic - for example, the existing free AustraliaPost module has its own getRates() method. Anyway, I think the tutorial should work for 5.3 too. What problems did you face when following the tutorial? What didn't work?
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|