HCGroup Shipping for Woocommerce is a Wordpress Plugin that integrate the hcgroup service, it will calculate the shipping cost.
This addon calls a webservice to obtain the shipping rate or price according to the parameters of the product, for this with the following URL
http://www.hcgroup.cl/ws/ecomerce.asmx/get_tarifa_despacho_JSON
The variables are
token_cliente; number to identify the registered customer
servicio; type of service delivered to the client
comuna_destino; commune where delivery will be made
peso; of the total purchase
cantidad; quantity of products
volumen; final volume of all products
send the data
The tarifa data is received, which corresponds to the shipping price.
in post sale
When admin changes the status of orders to completed or cancelled, this addon call to webservice and insert the new state, then return number of service.
If order is cancelled, call to webservice and delete number of service, then return success.
In orders section, this addons call to webservice and consult actual state, then show result in order detail.
When HCGroup make a retirement, addons consult a webservice and get the tracking number and show this in order detail. This also appears in the customer order detail.