XactCommerce Xact Objects
Home
News
XactCommerce
Typical Applications
Custom Development
Private Backend
XactScript Language
Performance
Deployment
Partners
Portfolio
About Us
leXml Language < Interface Modules & Commands < If_Shipping

If_Shipping
The shipping interface provides tools and commands to manage shipping of goods and services for e-commerce applications

templateshippinglist
This command lists available shippers.
 
Arguments:
owner_id - Constrain to this owner ID (default=none)
template - Template (required)
 
Template is as follows:
##ID## - Shipper ID
##NAME## - Shipper name
##DESC## - Description
##SHDESC## - Short description
##URL## - URL to shipper's site
##TRACKINGURLPREFIX## - Tracking URL prefix
##INTDOM## - 'International' or 'Domestic'
##BASERATE## - Base shipping rate
##EXPECTED## - Expected days (domestic)
 
Returns number of entries listed or 'error:...' if an error occurs.


optionshippinglist
Lists shipping as an options list with 'shp_item_id' selected if present


calcshipping
This command calculates the shipping for a given order given a shipper
ID and an order ID or order record.
 
Arguments:
order - An actual order record or an order ID (this is used instead of ord_id if it's present)
ord_id - Order ID (either this or order required)
shp_item_id - Item ID of shipper
 
Resulting shipping cost is printed and returned.


getname
This returns/prints the shipper name for a 'shp_item_id'


getdropshipcode
This returns/prints the dropship code of a shipper


getinternationaldomestic
This returns/prints the international/domestic status of a shipper