Barcode se prestao generirati od zadnje verzije

[ad_1]

Pozdrav,

Od zadnje nadogradnje generirani fileovi koji se nalaze unutar: wsb-hub3/barcodes vise nisu ispravno generirani fileovi.

npr: barcode_10115.png ima samo 80 bytes i kada se otvara prijavljuje gresku, ukknown file type. Uplatnice npr. hub-3a-10115.jpg se normalno generiraju.

Valuta je prebacena na euro i putem funkcije se barkodovi ispisuju unutar PDF invoice dokumenta:

// ADD HUB3 CODE TO PDF INVOICE
add_action ('wpo_wcpdf_after_order_details', 'wsb_add_barcode_to_invoice', 10, 2);
function wsb_add_barcode_to_invoice( $type, $order ){
//if("invoice" != $type) return; //ako vrsta dokumenta nije račun, prekini radnju
$barcode_image = get_post_meta( $order->get_id(), '_wsb_hub3_barcode', true );
if(!$barcode_image) return; //ako barkod ne postoji, izađi
$barcode_width = "300px"; //podesi širinu barkoda
echo "barcode</img>";
}

  • This topic was modified 16 hours, 51 minutes ago by XstreamThemes.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer