Page 1 of 1

QRcode

Posted: Thu Dec 08, 2022 2:28 am
by skyking

I have enabled phpbarcode under Custom View Tag for a field and set height:160 encode:QRcode encode_field: to same field name

Nothing shows up in List or View.

Is there a way to show the text and have the QRcode popup?


Re: QRcode?

Posted: Thu Dec 08, 2022 3:11 am
by skyking

I set View Tag to Image, H & W 160


Re: QRcode?

Posted: Thu Dec 08, 2022 9:09 am
by mobhar

You may refer to demo2023 project; see products table -> EAN13 field.


Re: QRcode?

Posted: Thu Dec 08, 2022 10:01 am
by skyking

That is a number string similar to UPC code for Bar Code in demo products table field

Has nothing to do with QRcode not showing up with correct settings in Custom View Tag.

Refers to my raddr field which is a text string that QRcodes easily handle.


Re: QRcode?

Posted: Thu Dec 08, 2022 10:06 am
by arbei
  1. Make sure you have run composer update after enabling the Custom View Tag to download the required packages.
  2. Make sure you have the required PHP extensions (ext-bcmath, ext-date, ext-gd, ext-pcre) enabled for your PHP, you may check your phpinfo.
  3. Enable Debug to check for PHP errors in the log file.

Re: QRcode

Posted: Thu Dec 08, 2022 7:55 pm
by skyking

Composer updated
php Modules installed
Debug On - No errors

Text Field raddr
Set to View Image, Edit Text
Custom View Tag is {"name":"@phpmaker\/phpbarcode","height":160,"height_field":null,"barcode":null,"barcode_field":null,"encode":"QRCODE","encode_field":null,"text":false}

No QRcode in either List or View

Tried encode_field:null and :raddr no display


Re: QRcode

Posted: Thu Dec 08, 2022 10:25 pm
by arbei

skyking wrote:

{"name":"@phpmaker\/phpbarcode","height":160,"height_field":null,"barcode":null,"barcode_field":null,"encode":"QRCODE","encode_field":null,"text":false}

You did not set the required "barcode_field".


Re: QRcode

Posted: Fri Dec 09, 2022 4:06 am
by skyking

I set barcode-field to the raddr field and get a noce QRcode now.

Thanks for the help.