Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Description and Instructions fields #73

Open
bluantinoo opened this issue Aug 25, 2022 · 0 comments
Open

Missing Description and Instructions fields #73

bluantinoo opened this issue Aug 25, 2022 · 0 comments

Comments

@bluantinoo
Copy link
Contributor

It would be nice to have the description and the instructions fields for each payment method to present relevant info to customers on the checkout and thank you page.

I've tried to add the description on plugin method settings here https://github.com/degica/komoju-woocommerce/blob/master/includes/gateway-settings-komoju.php

fields shows up in backend method settings, but result as empty on frontend.

Even using a WC filter, like the following shows just an empty string on frontend where description should be shown:

add_filter( 'woocommerce_gateway_description', 'iic_komoju_payment_method_description', 25, 2 );

function iic_komoju_payment_method_description( $description, $gateway_id ) {

   if( 'komoju_credit_card' === $gateway_id ) {
      $description = '<p>komoku credit card</p>';
   }

   return $description;
}

not sure why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant