QRcode

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
skyking
User
Posts: 37

QRcode

Post 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?


skyking
User
Posts: 37

Post by skyking »

I set View Tag to Image, H & W 160


mobhar
User
Posts: 10858

Post by mobhar »

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


skyking
User
Posts: 37

Post 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.


arbei
User
Posts: 7915

Post 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.

skyking
User
Posts: 37

Post 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


arbei
User
Posts: 7915

Post 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".


skyking
User
Posts: 37

Post by skyking »

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

Thanks for the help.


Post Reply