Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v:2.0:shipping [2019/04/26 01:14] – [Custom Shipping Endpoint] marija | v:2.0:shipping [2023/07/12 14:05] (current) – [Custom Shipping Code] adam | ||
---|---|---|---|
Line 32: | Line 32: | ||
Beginning in FoxyCart 2.0, it is possible to dynamically customise the package dimensions sent to the selected carriers. [[v: | Beginning in FoxyCart 2.0, it is possible to dynamically customise the package dimensions sent to the selected carriers. [[v: | ||
- | |||
- | We are planning a rebuild of our shipping functionality for a future version, so please [[http:// | ||
=== Supporting Multiple Packages Per Shipment === | === Supporting Multiple Packages Per Shipment === | ||
Line 69: | Line 67: | ||
** USPS ** | ** USPS ** | ||
- | * **USPS Retail Ground** //(formerly Standard Post)// is generally only available for shipment zones 5-9 within the US. [[https:// | + | * **USPS Retail Ground** //(formerly Standard Post)// is generally only available for shipment zones 5-9 within the US. [[https:// |
Line 153: | Line 151: | ||
</ | </ | ||
- | === Passing custom fields to the custom shipping endpoint === | + | |
+ | |||
+ | === Common Errors === | ||
+ | |||
+ | **" | ||
+ | |||
+ | If you receive this error in your store, that means that either no rates were returned from your custom endpoint, or it didn't return a valid JSON object. | ||
+ | |||
+ | - Firstly ensure that your endpoint is set to return at least one rate or an error for all requests. | ||
+ | - If you are - ensure that only the JSON output is printed on the page. You can't have any other text on the page. | ||
+ | |||
+ | ==== Custom Shipping Code ==== | ||
+ | |||
+ | The [[v: | ||
+ | |||
+ | The code also has access to an object providing information about the current customer' | ||
+ | |||
+ | This feature currently relies on adding javascript code to handle the custom logic - but in the future will also support an interface for setting up custom rates and conditions. | ||
+ | |||
+ | [[v: | ||
+ | |||
+ | ==== Passing custom fields to the custom shipping endpoint | ||
By default - any custom session attributes currently in the customers session will be included in the payload within the '' | By default - any custom session attributes currently in the customers session will be included in the payload within the '' | ||
Line 189: | Line 208: | ||
}); | }); | ||
</ | </ | ||
- | |||
- | === Common Errors === | ||
- | |||
- | **" | ||
- | |||
- | If you receive this error in your store, that means that either no rates were returned from your custom endpoint, or it didn't return a valid JSON object. | ||
- | |||
- | - Firstly ensure that your endpoint is set to return at least one rate or an error for all requests. | ||
- | - If you are - ensure that only the JSON output is printed on the page. You can't have any other text on the page. | ||
- | |||
- | ==== Custom Shipping Code ==== | ||
- | |||
- | The [[v: | ||
- | |||
- | The code also has access to an object providing information about the current customer' | ||
- | |||
- | This feature currently relies on adding javascript code to handle the custom logic - but in the future will also support an interface for setting up custom rates and conditions. | ||
- | |||
- | [[v: | ||
- | |||
==== Handling Fees ==== | ==== Handling Fees ==== | ||
Handling fees, like flat rates, are configured per category, but can be applied in a few different ways: | Handling fees, like flat rates, are configured per category, but can be applied in a few different ways: | ||
Line 217: | Line 216: | ||
When paired with a flat fee, the handling fee can become quite a powerful tool for adjusting shipping costs. Handling fees also work with live rates, but <wrap important> | When paired with a flat fee, the handling fee can become quite a powerful tool for adjusting shipping costs. Handling fees also work with live rates, but <wrap important> | ||
+ | |||
+ | ===== Currency Conversion ===== | ||
+ | |||
+ | For our integrated carriers - USPS, FedEx and UPS - the returned rate is in USD. If your store' | ||
+ | |||
+ | Rates returned from either the custom code or custom endpoints are not converted. You will need to set those according to the currency of the cart, which is included [[: | ||
===== Fulfillment Houses ===== | ===== Fulfillment Houses ===== | ||
Line 222: | Line 227: | ||
===== Feature Requests, Plans, and Known Limitations ===== | ===== Feature Requests, Plans, and Known Limitations ===== | ||
- | There are many common requests that can be achieved with FoxyCart, but require a little bit of code to make work. Please | + | There are many common requests that can be achieved with FoxyCart, but require a little bit of code to make work. Please [[https://foxy.io/contact|contact us]] if you don't see what you're looking for (or if you need help). |
- | + | ||
- | We are planning a rebuild of our shipping functionality for a future version, so please [[http:// | + | |
==== Specific Workarounds ==== | ==== Specific Workarounds ==== | ||
* [[.: | * [[.: |