WC_Correios_Shipping_PAC

PAC shipping method class.

Defined (1)

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

/includes/shipping/class-wc-correios-shipping-pac.php  
  1. class WC_Correios_Shipping_PAC extends WC_Correios_Shipping { 
  2.  
  3. /** 
  4. * Service code. 
  5. * 04510 - PAC without contract. 
  6. * @var string 
  7. */ 
  8. protected $code = '04510'; 
  9.  
  10. /** 
  11. * Corporate code. 
  12. * 04669 - PAC with contract. 
  13. * @var string 
  14. */ 
  15. protected $corporate_code = '04669'; 
  16.  
  17. /** 
  18. * Initialize PAC. 
  19. * @param int $instance_id Shipping zone instance. 
  20. */ 
  21. public function __construct( $instance_id = 0 ) { 
  22. $this->id = 'correios-pac'; 
  23. $this->method_title = __( 'PAC', 'woocommerce-correios' ); 
  24. $this->more_link = 'http://www.correios.com.br/para-voce/correios-de-a-a-z/pac-encomenda-economica'; 
  25.  
  26. parent::__construct( $instance_id );