id = ''; $this->desc = __( 'General', 'amount-left-free-shipping-woocommerce' ); parent::__construct(); } /** * get_settings. * * @version 1.3.0 * @since 1.0.0 * @todo [dev] maybe add to placeholders info: "raw" amounts: `%amount_left_for_free_shipping_raw%`, `%free_shipping_min_amount_raw%` and `%current_cart_total_raw%`. * @todo [dev] "notice" as "position" in cart and checkout * @todo [feature] multiple positions in cart / checkout / minicart */ function get_settings() { $desc = '
' . 'ℹ' . ' ' . __( 'Here you can enable info on cart, mini cart and checkout pages.', 'amount-left-free-shipping-woocommerce' ) . ' ' .
sprintf( __( 'Values that will be replaced in "Content": %s.', 'amount-left-free-shipping-woocommerce' ),
'%amount_left_for_free_shipping%, %free_shipping_min_amount%, %current_cart_total%' ) . '
' . '' . __( 'Alternatively you can use:', 'amount-left-free-shipping-woocommerce' ) . '' . '
[alg_wc_left_to_free_shipping content="%amount_left_for_free_shipping% left for free shipping"]' .
'alg_wc_get_left_to_free_shipping( "%amount_left_for_free_shipping% left for free shipping" );' .
'