[Skip to main content](#vessel-content)

#   White QR code

##

- **[Thrane](/forum/user/31786-thrane "View Thrane's Profile")**
- [![Thrane's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31786-thrane "View Thrane's Profile") Topic Author
- [ Offline](/forum/user/31786-thrane)

Less More

- Posts: 366
- Thank you received: 26
-
-

5 years 8 months ago [\#330644](#330644) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  *[White QR code](/forum/17-serial-how-to/902148-white-qr-code#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")* was created by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vOTAyMTQ4LXdoaXRlLXFyLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

5 years 8 months ago [\#330686](#330686) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[White QR code](/forum/17-serial-how-to/902148-white-qr-code#330686 "-- 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")*

Hello,

Please provide a screenshot of your attach serial configuration.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vOTAyMTQ4LXdoaXRlLXFyLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Thrane](/forum/user/31786-thrane "View Thrane's Profile")**
- [![Thrane's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31786-thrane "View Thrane's Profile") Topic Author
- [ Offline](/forum/user/31786-thrane)

Less More

- Posts: 366
- Thank you received: 26
-
-

5 years 8 months ago [\#330749](#330749) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  Replied by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")* on topic *[White QR code](/forum/17-serial-how-to/902148-white-qr-code#330749 "-- 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")*

I'm using PDFSerial:

[ ![2021-03-12&#95;22-28-289.png](/forum/attachment/52264) ](/forum/attachment/52264 "...&#95;22-28-289.png")

- [ ![2021-03-12&#95;22-28-289.png](/forum/attachment/52264) ](/forum/attachment/52264 "...&#95;22-28-289.png") [ ](/forum/attachment/52264?download=1 "...&#95;22-28-289.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vOTAyMTQ4LXdoaXRlLXFyLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

5 years 8 months ago [\#330750](#330750) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[White QR code](/forum/17-serial-how-to/902148-white-qr-code#330750 "-- 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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vOTAyMTQ4LXdoaXRlLXFyLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Thrane](/forum/user/31786-thrane "View Thrane's Profile")**
- [![Thrane's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31786-thrane "View Thrane's Profile") Topic Author
- [ Offline](/forum/user/31786-thrane)

Less More

- Posts: 366
- Thank you received: 26
-
-

5 years 8 months ago [\#330764](#330764) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  Replied by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")* on topic *[White QR code](/forum/17-serial-how-to/902148-white-qr-code#330764 "-- 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")*

So I should just enter 255,255,255?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vOTAyMTQ4LXdoaXRlLXFyLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

5 years 8 months ago [\#330771](#330771) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[White QR code](/forum/17-serial-how-to/902148-white-qr-code#330771 "-- 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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vOTAyMTQ4LXdoaXRlLXFyLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Thrane](/forum/user/31786-thrane "View Thrane's Profile")**
- [![Thrane's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31786-thrane "View Thrane's Profile") Topic Author
- [ Offline](/forum/user/31786-thrane)

Less More

- Posts: 366
- Thank you received: 26
-
-

5 years 8 months ago [\#330784](#330784) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  Replied by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")* on topic *[White QR code](/forum/17-serial-how-to/902148-white-qr-code#330784 "-- 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")*

Great, thanks!

So nothing I can do at the moment?

//Thomas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vOTAyMTQ4LXdoaXRlLXFyLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

5 years 8 months ago [\#330823](#330823) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[White QR code](/forum/17-serial-how-to/902148-white-qr-code#330823 "-- 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")*

Hello,

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

'fgcolor' =&gt; str_split(ltrim($d['color'], '#'), 2),

By Code:

'fgcolor' =&gt; array(255,255,255),

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vOTAyMTQ4LXdoaXRlLXFyLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Thrane](/forum/user/31786-thrane "View Thrane's Profile")**
- [![Thrane's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31786-thrane "View Thrane's Profile") Topic Author
- [ Offline](/forum/user/31786-thrane)

Less More

- Posts: 366
- Thank you received: 26
-
-

5 years 8 months ago [\#330911](#330911) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  Replied by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")* on topic *[White QR code](/forum/17-serial-how-to/902148-white-qr-code#330911 "-- 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")*

Thanks!
I better wait for the update ![:-)](/media/kunena/emoticons/3.png ":-)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vOTAyMTQ4LXdoaXRlLXFyLWNvZGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.062 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
