• Hello there and thank you for this plugin.
    I have a request about the description of this payment method, because the customer can choose between Paypal, bank account or stripe and the other fields have all a little description telling the customers what to do next and how to do it.
    The problem is that your extension doesn’t provide a way to add a description (or I’m just blind).
    If you could add this possibility in the next release it would be so great.
    Thank you again.

    https://wordpress.org/plugins/stripe-woocommerce-addon/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nazrulhassanmca

    (@nazrulhassanmca)

    I will consider adding it in next release for sure however you can add it your self by following way

    Add following in public function init_form_fields()

    'stripe_description' => array(
    		  'title' => __( 'Description', 'woocommerce' ),
    		  'type' => 'textarea',
    		  'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce' ),
    		  'default' => __( 'All cards are stored by ©Stripe servers we do not store any card details', 'woocommerce' ),
    		  'desc_tip'      => true,
    		  ),

    and then add a public function in plugin class like

    public function get_description() {
             return apply_filters( 'woocommerce_gateway_description',$this->stripe_description, $this->id );
         }
    Thread Starter Testing Things

    (@atx)

    Hello and thank you for the support.
    It works perfectly.
    I also added this line :
    $this->stripe_description = $this->get_option( 'stripe_description' );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Request : Description before the fields’ is closed to new replies.