Sign inBlogSupportContact
WooCommerce

Generate a QR code for any WooCommerce product

Packaging needs a QR code by Friday. You need it in 2 seconds, not 20 minutes.

3 min read May 2026 generate product qr code

Your product needs a QR code. Now what?

You're printing packaging, making flyers, or setting up an in-store display. You need a QR code that links to a specific product page on your WooCommerce store.

The usual path: copy the product URL, open a third-party QR generator website, paste the URL, download the image, hope the generator didn't watermark it or add tracking. For every product, repeat.

What most people do instead

Every approach involves leaving WordPress.

Online QR generatorsCopy URL, open external site, paste, download. Some add watermarks or track your URLs. Repeat for every product.
QR code pluginsInstall a plugin just for QR codes. Most add shortcodes or frontend widgets you don't need. Overkill for a PNG file.
Google Charts APIBuild a URL with the product link encoded. Requires API knowledge and the result is a Google-hosted image.

A better way: generate it from the admin

Open the TrueCommander navigator. Type generate product qr code -product_id=142. Hit enter.

The QR code is generated on your server using PHP's QR library. It links to the product's permalink. The image appears inline in the navigator. Right-click to save or copy.

TrueCommander
QR code generated
Leather Wallet BrownQR Code
Product#142
Fileproduct-142-qr.png
Links toexample.com/product/leather-wallet-brown
right-click the image to save or copy

Generated on your server. No external APIs. No third-party tracking. The QR code PNG is stored in your uploads directory.

How it works

Pass a product ID, get a QR code image.

1
Looks up the productValidates the product ID and gets the product name and permalink from WooCommerce.
2
Generates the QR codeUses the phpqrcode library (bundled, no external API). Encodes the product permalink as a QR image.
3
Displays inlineThe QR PNG appears right in the navigator. Right-click to save or copy for packaging, flyers, or displays.
DetailValue
Command namegenerate product qr code
Required-product_id=142
Size-size=5 (1-10, default 5)
OutputPNG file stored in uploads/tp_qr_codes/
EncodesProduct permalink URL
RequiresWooCommerce active
Can be used in

Real example

You're preparing packaging for a leather goods store. Each product box should have a QR code linking to the product page for care instructions and reviews.

You open the navigator, type generate product qr code -product_id=142. The QR code appears instantly. You right-click and save the PNG. Drop it into the packaging template in Canva.

Next product: -product_id=143. Another QR code in 2 seconds. No external websites. No watermarks. No tracking pixels embedded in your QR codes.

Goes further with TrueCommander

Generate QR codes as part of your product workflow.

Ready?

QR codes from your own server.

This is one of 91 commands. All included with every license.

Cookies. The short version.

Essential cookies keep the cart and theme working. Analytics only fire if you say yes. Read our policy.