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

Novi zahtevi banke Intesa #5

Open
miljanbjelojica opened this issue Aug 25, 2023 · 0 comments
Open

Novi zahtevi banke Intesa #5

miljanbjelojica opened this issue Aug 25, 2023 · 0 comments

Comments

@miljanbjelojica
Copy link

miljanbjelojica commented Aug 25, 2023

Poštovani, novi zahtevi banke intesa:

  1. Više ne smeju da se prikazuju podaci kartice 123***567 iako ima zvezdice
  2. Druga greška je bila što kada korisnik nije registrovan, ne prikazuju se podaci o kupcu (to sam rešio)

Evo koda ( https://stackoverflow.com/questions/47336029/show-customer-details-on-woocommerce-thankyou-page-even-if-not-registered) :

add_action( 'woocommerce_thankyou', 'adding_customers_details_to_thankyou', 10, 1 );

function adding_customers_details_to_thankyou( $order_id ) {
// Only for non logged in users
if ( ! $order_id || is_user_logged_in() ) return;

$order = wc_get_order($order_id); // Get an instance of the WC_Order object

wc_get_template( 'order/order-details-customer.php', array('order' => $order ));

}

  1. Capcha nije obavezno polje ali je preporučeno, predlažem da se stavi kao neobavezan modul, ja sam ga stavio za testiranje, ali nisam želeo hcapcha već ReCapcha, iako dodam plugin za Recapcha ipak se prikazuje hcacpha sa greškom jer je hardkodovano u plugin. Tako da sam morao da uklonim skripte za hcacpcha iz plugina i instalirao sam plugin koji ok radi za Google reCapcha: reCAPTCHA for WooCommerce by Elliot Sowersby

  2. Imam neke predloge za unapređenje, pokušaću da uradim Pull za to, da učestvujem malo :)

Pozdrav Svima.

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