Mike Jolley on "[Plugin: WooCommerce] Lost of my custom Method-shipping settings"

ساخت وبلاگ

It is a private plugin to add and calculate a private shipping method. It is in classic mode, not in shipping zone mode. It works well with anterior WC.
My init sequence is :

function WC_shipping_method_choice_init() { if (!class_exists('Class_Colissimo_Shipping')) { class Class_Colissimo_Shipping extends WC_Shipping_Method { public $ColissimoInstance; public function __construct() { $this->id = 'Colissimo_Method'; $this->method_title = __('Colissimo', 'cdi-colissimo-shipping'); $this->method_description = __('Colissimo multi purpose shipping method', 'cdi-colissimo-shipping'); $this->table_rate_option = 'cdi_colissimo_table_rate'; $this->ColissimoInstance = new Class_Colissimo_Shipping_Function(); $this->init(); } public function init() { $this->init_form_fields(); $this->init_settings(); $this->enabled = $this->get_option('enabled'); $this->title = $this->get_option( 'title' ); $this->prefixshipping = $this->get_option( 'prefixshipping' ); $this->pickup_method_name = $this->get_option( 'pickup_method_name' ); $this->forced_product_code = $this->get_option( 'forced_product_code' ); add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) ); add_action('woocommerce_update_options_shipping_' . $this->id, array($this, 'process_table_rates')); $this->load_table_rates(); cdi_debug(__LINE__ ,__FILE__ , $this); }

[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum's parser.]

At the cdi_debug line, I store "this" print in debug log which seems well filled with set variables and my current tables.
But none of that is seen in the panel neither in the source html.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 175 تاريخ : پنجشنبه 27 خرداد 1395 ساعت: 18:09