| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Creating a shipping module in 5.2.13 | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I'm having difficulties creating a shippin gmodule for X-Cart 5.2.13. It seems the documentation for shipping modifications is outdated and no longer compatible with the latest version: http://kb.x-cart.com/display/XDD/Shipping+modifications 1. Uploaded module from https://dl.dropboxusercontent.com/u/23858825/Tony-ShippingDemo-v5_1_0.tar 2. Redeploy Store 3. Modules displays "The module is not compatible with your X-Cart version". Simple fix, updated Main.php getMajorVersion() to return '5.2' and redeploy. 3. Enable Module and receive the following error: Quote:
4. Resolved this problem by replacing line 7 of MyProcessor.php with the following and rebuilding: PHP Code:
The enable/redeploy now runs smoothly however the module appears to not do anything, the "Store Setup -> Shipping" methods do not include the ShippingDemo or "My Processor" and there are no relative errors in the logs files. Comparing to the other Shipping Modules, it seems that performRequest() replaces getRates() and i have attempted renaming the getRates() with performRequest() but still appears to do nothing. Any advise on how to proceed?
__________________
-- |
|||||||
#2
|
|||||||
|
|||||||
![]() I've been having the same problem. I discovered this method
Code:
in \XLite\View\LitemsList\Model\Shipping\Carriers.php Which shows the fields in the _shipping_methods table need to have certain values. The yaml file for the UPS module has the following Code:
Fiddling around with this has got my carrier to show in the admin area.. but that's as far as I've got so far.
__________________
Core version: 5.5.xx |
|||||||
|
|||
X-Cart forums © 2001-2020
|