Un utente ha chiesto 👇
Ciao Bas, c’è un modo per aggiungere codice ai miei temi functions.php che mostreranno un link / pulsante per il download del PDF nella pagina “Grazie per il tuo ordine” del processo di checkout?
BR, Ean
> E un grande grazie per l’ottimo plug-in per le fatture in PDF!
(@neilmaynard)
2 anni, 4 mesi fa
Anch’io ho questo problema. In realtà hanno fornito un modo per inserire un collegamento per il download di PDF nella pagina di ringraziamento. È nelle FAQ di questo plugin. L’hai provato? Dimmi se funziona dalla tua parte
(@porosh)
2 anni, 3 mesi fa
Quel codice non funziona per me. C’è un modo per risolverlo?
Autore del plugin
(@baaaaas)
2 anni, 3 mesi fa
Prova sotto il codice. Dovrebbe funzionare.
echo do_shortcode( '[bewpi-download-invoice title="Download (PDF) Invoice {formatted_invoice_number}" order_id="' . $order->get_id . '"]' );
(@neilmaynard)
2 anni, 3 mesi fa
Sì, questo funziona per me ora. Vi ringrazio molto!
(@fakasmile)
2 anni fa
Ciao @baaaaas, il codice non funziona per me
ho provato
<?phpecho do_shortcode( '[bewpi-download-invoice title="Download (PDF) Invoice {formatted_invoice_number}" order_id="' . $order->get_id . '"]' );?>
e
<?php $order_id = method_exists( 'WC_Order', 'get_id' ) ? $this->order->get_id() : $this->order->id;
echo do_shortcode( '[bewpi-download-invoice title="Download (PDF) Invoice {formatted_invoice_number}" order_id="' . $order_id . '"]' ); ?>
ma niente funziona
questo è il mio codice completo
<p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', __( 'Thank you. Your order has been received.', 'woocommerce' ), $order ); ?></p>
<?php echo do_shortcode( '[bewpi-download-invoice title="Download (PDF) Invoice {formatted_invoice_number}" order_id="' . $order->get_id . '"]' );?>
grazie
(@fakasmile)
2 anni fa
funziona bene
echo do_shortcode( '[bewpi-download-invoice title="Download (PDF) Invoice {formatted_invoice_number}" order_id="' . $order->id . '"]' );
. $order->id .
non . $order->get_id .
(@sydngsoft)
1 anno, 11 mesi fa
dove lo modifichi?
Was this helpful?
0 / 0