White QR code

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 2 weeks ago #330644

-- HikaShop version -- : 4.4.1

Hi

Is it possible to get the generated QR code white?
Nothing happens when I insert #FFFFFF, the QR is still black ...

Thanks!
Thomas

Please Log in or Create an account to join the conversation.

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 2 weeks ago #330686

Hello,

Please provide a screenshot of your attach serial configuration.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 2 weeks ago #330749

I'm using PDFSerial:

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 2 weeks ago #330750

Hello,

Thanks for the precision ; I was looking in the wrong plugin source code !

If the PDF library you're using does have the "write2DBarcode" function, then the color might not be handle correctly.
It looks like the library is asking for the color in decimal format while the lib is sending the data in hexadecimal.
Thus, it requires a little conversion of the value before sending it to the PDF Lib.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 2 weeks ago #330764

So I should just enter 255,255,255?

Please Log in or Create an account to join the conversation.

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 2 weeks ago #330771

Hello,

The format for colors is in hexadecimal ; you can't provide a value in decimal.
It requires modifications in the plugin to perform the conversion ; it will be include in the next release.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 2 weeks ago #330784

Great, thanks!

So nothing I can do at the moment?

//Thomas

Please Log in or Create an account to join the conversation.

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
3 years 1 week ago #330823

Hello,

If you want a white color for all of your generate pdf, you can edit the plugin and force a value, replacing

'fgcolor' => str_split(ltrim($d['color'], '#'), 2),
By
'fgcolor' => array(255,255,255),
Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 357
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
3 years 1 week ago #330911

Thanks!
I better wait for the update :-)

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.071 seconds
Powered by Kunena Forum