WC_Correios_Shipping_ESEDEX

E-SEDEX shipping method class.

Defined (1)

The class is defined in the following location(s).

/includes/shipping/class-wc-correios-shipping-esedex.php  
  1. class WC_Correios_Shipping_ESEDEX extends WC_Correios_Shipping { 
  2.  
  3. /** 
  4. * Service code. 
  5. * 81019 - e-SEDEX. 
  6. * @var string 
  7. */ 
  8. protected $code = '81019'; 
  9.  
  10. /** 
  11. * Initialize e-SEDEX. 
  12. * @param int $instance_id Shipping zone instance. 
  13. */ 
  14. public function __construct( $instance_id = 0 ) { 
  15. $this->id = 'correios-esedex'; 
  16. $this->method_title = __( 'e-SEDEX', 'woocommerce-correios' ); 
  17. $this->more_link = 'http://www.correios.com.br/para-voce/correios-de-a-a-z/e-sedex'; 
  18.  
  19. parent::__construct( $instance_id ); 
  20.  
  21. $this->instance_form_fields['service_type'] = array( 
  22. 'title' => __( 'Service Type', 'woocommerce-correios' ),  
  23. 'type' => 'select',  
  24. 'description' => __( 'Choose between conventional or corporate service.', 'woocommerce-correios' ),  
  25. 'desc_tip' => true,  
  26. 'default' => 'corporate',  
  27. 'class' => 'wc-enhanced-select',  
  28. 'options' => array( 
  29. 'corporate' => __( 'Corporate', 'woocommerce-correios' ),  
  30. ),  
  31. );