shipping->get_shipping_methods(); foreach ($methods as $method) { add_filter('woocommerce_shipping_instance_form_fields_' . $method->id, array($this, 'suggest_shipqora'), 100000); } } /** * Add new field below shipping method settings * * @return array */ public function suggest_shipqora($settings) { $settings['suggest_shipqora'] = array( 'title' => '', 'default' => '', //Don't remove this one. Otherwise system will show error 'type' => 'shipqora_plugin', ); return $settings; } /** * Output new field below the shipping method settings * * @return string */ public function output_notice_content($class = '') { require_once ABSPATH . 'wp-admin/includes/plugin.php'; $shipqora_plugin = 'shipqora/shipqora.php'; if (!is_plugin_active($shipqora_plugin)) : ?>
Unlock complete control over your checkout experience with ShipQora, the ultimate all-in-one shipping engine designed to build advanced dynamic pricing, custom rate adjustments, and powerful restrictions in real time.
Key Features: Cart-Based Shipping Cost (Alternative of Advanced Rule Based Shipping), Hide Current Shipping Methods, Hide Other Shipping Methods, Hide Payment Methods, Shipping Cost Adjustment, and Product-Based Shipping Cost.