QR code in the woocommerce Thank you page
-
Hello, I am trying to add a QR code to the WooCommerce thank you page. I would like to know if it is possible to show the order id and amount variables. With the plugin itself I have generated the following shortcode, but I cannot display the order variables. For example, I would like the order id to be displayed after the “titulo” variable.
add_action( 'woocommerce_thankyou', 'content_thankyou' ); function content_thankyou() { echo do_shortcode('[kaya_qrcode_dynamic title="example" title_align="alignnone" ecclevel="L" align="alignnone"]{"id_transaccion":"ESTATICO","importe":"11.50","moneda":"CUP","numero_proveedor":"00000","version":"5","titulo":"1605","extra":"zqvgyzNbFXmmhFUtrljUXtznH12YrixAsZHqv1/LOGk="}[/kaya_qrcode_dynamic]'); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘QR code in the woocommerce Thank you page’ is closed to new replies.