/** * Get Shipping rate function * * @return shipping rate by Ajax */ public function getShippingrate() { include_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/shipping.php'; $shipping = new shipping(); echo $shipping->getShippingrate_calc(); exit; }