• Resolved charlie0412

    (@charlie0412)


    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)
  • Plugin Author Kaya Studio

    (@kayastudio)

    Hello,
    Thank you for your comment and for using ‘Kaya QR Code Generator’.

    Actually ‘Kaya QR Code Generator’ don’t provide any data from WordPress or WooCommerce, to get the order variables as encoded content, you must use another shortcode from an other plugin or the dedicated PHP functions/variables in addition and put it in the dynamic shortcode content.

    I hope this will answer your question.
    Thank you, best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘QR code in the woocommerce Thank you page’ is closed to new replies.