I built an extension which works fine and I'm trying to make it work in my template but I don't know how to do and actually, I don't even know if it could work.
My code looks like:
class Easypost_extension_ext
{
public $name = 'Easypost extensions';
public $version = '1.0.0';
public $description = 'Display shipment only if there is a product to send';
public $docs_url = 'https://ellislab.com/expressionengine/user-guide/';
public $settings_exist = 'n';
public $settings = array();
private $EE;
private $apikey;
My function is called check_shipping and I'm trying to call it in my template in this way:
<select class="form-control" id="easypost" name="easypost">
{exp:easypost_extention:check_shipping}
<option value="">
{service}
{days}
{rate}
{currency}
{rateid}
</option>
{/exp:easypost_extention:check_shipping}
</select>
But I receive an error in my template. Is there any way to fix my problem?