FORGOT YOUR DETAILS?

How to use plugin QR Code Tag for WordPress and Woocommerce?

Settings Page in Admin #

Go to WordPress admin -> Settings -> QR Code Tag (from Goaskle.com)

Use in any WordPress content #

Using as a shortcode #

Without content #

In the posts editor type

[qrcodetag_from_goaskle_com/]

and a QR code with a link to the current URL will be rendered

With content #

To automatically generate a QR Code, insert the following shortcode while editing your content:

[qrcodetag_from_goaskle_com] Your content [/qrcodetag_from_goaskle_com]

Replace “Your content” with the data you want to encrypt in the QR Code, which will then be read. There are no restrictions, you can use any characters to enter your phone, email, link, names, addresses or any other data.

The system of QR codes has its own rules, for example you can not transfer your data on a new line without using a special code:

%0A – This code is a line break. If you want to write text on 2 or more lines, you can write it this way:

Your %0Acontent — then you get your data inside the QR Code this way:
Your
content

Here is example of shortcode with line break:

[qrcodetag_from_goaskle_com] Your %0Acontent [/qrcodetag_from_goaskle_com]

Here is example of QR Code with line break #1:

Options of shortcode #

size #

– The size of the generated QRCode image (in pixels). it’s always a square, so you only need to set one side

Example with size option ( image size of QR Code will be 400px X 400px ):

[qrcodetag_from_goaskle_com size="400" ] Your content [/qrcodetag_from_goaskle_com]

You will see 400 X 400px image like this:


ecc #

– Error Correction Level ( L allows 7% of a QR code to be restored, M allows 15% of a QR code to be restored, Q allows 25% of a QR code to be restored, H allows 30% of a QR code to be restored )

Example with ecc option:

[qrcodetag_from_goaskle_com ecc="H" ] Your content [/qrcodetag_from_goaskle_com]

You will see QR Code image like this ( with High error correction level allows 30% of a QR code to be restored ):


margin #

– Defines the margin (or blank space) around the QR code (in QR Code pixel size – not actual pixels!). By default its 4.

Example with margin option:

[qrcodetag_from_goaskle_com margin="0" ] Your content [/qrcodetag_from_goaskle_com]

You will see QR Code image without margin:


– Defines if the image of QR Code will have a link (here is possible values for this option):

url = link to the current URL

https:// = link to some URL (e.g. https://www.google.com) )

Example with link option:

[qrcodetag_from_goaskle_com link="https://goaskle.com/en/docs/wordpress-plugins-from-goaskle-com/qr-code-tag-for-woocommerce-and-wordpress-from-goaskle-com/installation/"] Your content [/qrcodetag_from_goaskle_com]

You will see QR Code image wrapped with link:

 


Using as a tooltip #

[qrcodetag_from_goaskle_com tooltip="The content that will be encrypted inside the QR Code"] Content visible on the page, on hovering over which the QR Code appears [/qrcodetag_from_goaskle_com]

 

Here is example of QR Code with Tooltip option #2:

Content visible on the page, on hovering over which the QR Code appears

Using as a Sidebar Widget #

Just find the Widget (Appearance | Widgets) called: “QR Code Tag for WC order emails, POS receipt emails, PDF invoices, PDF packing slips, Blog posts, Custom post types and Pages (from goaskle.com)” and edit its properties according to your needs.

Using in PHP code #

To use the QR Code inside your template or PHP enabled posts, use the global $qrcodetag_from_goaskle_com object:

global $qrcodetag_from_goaskle_com;
echo $qrcodetag_from_goaskle_com->getQrCodeUrl($content, $size, $encoding, $ecc, $margin, $version);

In order to display a 100 x 100px QR Code in the page template you would include this PHP code:

<img src="<?php
global $qrcodetag_from_goaskle_com;
echo $qrcodetag_from_goaskle_com->getQrCodeUrl('mycontent',100,'UTF-8','L',4,0);
?>">

Use In Woocommerce #

Disable for Woocommerce (Auto) #

If you do not need QR Codes to be automatically generated for Woocommerce plugin and compatible with it:

  1. Go to WordPress admin -> Settings -> QR Code Tag (from Goaskle.com)
  2. Check the checkbox labeled “Disable for Woocommerce (Auto)” ( You will still be able to use Shortcode, Widget and Tooltip modes )
  3. Click Save Changes in the middle of Settings Page

VAT Number #

VAT Number specified here will be displayed in the QR Code in Woocommerce

Woocommerce Data Template #

!!! CLEAR THIS FIELD FOR AUTOMATIC DATA TEMPLATE IN WOOCOMMERCE !!!

You can create any template you want by combining the variables decoded for you below in the order you want.

Woocommerce will use this template for the data to generate the QR code. The QR code will be created based on the texts and variables of this template. For example (AUTOMATIC):

Ivan Ivanov
TOTAL AMOUNT $39.10
VAT AMOUNT $5.10
VAT NUMBER 1235ABN457
DATE 03/11/2021
TIME 19:03
https://goaskle.com

You can easy use your own text, labels and these variables:

{order_id}, {full_customer_name}, {total_amount}, {total_amount_no_curr}, {vat_amount}, {vat_number}, {order_date}, {order_time}, {wc_website}, {wc_order_items_name1}, {wc_order_items_qty1}, {wc_order_items_price1}, {wc_order_items_subtot1}, {wc_order_items_name2}, {wc_order_items_qty2}, {wc_order_items_price2}, {wc_order_items_subtot2}, {wc_order_items_template1}

EXAMPLE FOR YOUR OWN TEMPLATE:
Order ID: {order_id}
{full_customer_name}
TOTAL AMOUNT: {total_amount}
VAT AMOUNT: {vat_amount}
VAT NUMBER: {vat_number}
DATE {order_date}
TIME {order_time}
{wc_website}
{wc_order_items_template1}

Variables for Woocommerce data #

{order_id} – Order number

{full_customer_name} – First and Last name of customer

{total_amount} – Total mount of order with currency

{total_amount_no_curr} – Total mount of order without currency

{vat_amount} – Total amount of taxes

{vat_number} – Your Vat Number entered into settings page

{order_date} – Date of order

{order_time} – Time of order

{wc_website} – Automatic – get url of your website

{wc_order_items_name1} – names of all products one by one ( Example: from {wc_order_items_name1} up to {wc_order_items_name999} unlimited

{wc_order_items_qty1} – quantities of all products one by one ( Example: from {wc_order_items_qty1} up to {wc_order_items_qty999} unlimited

{wc_order_items_price1} – prices of all products one by one ( Example: from {wc_order_items_price1} up to {wc_order_items_price999} unlimited

{wc_order_items_subtot1} – subtotals of all products one by one ( Example: from {wc_order_items_subtot1} up to {wc_order_items_subtot999} unlimited

{wc_order_items_template1} – predefined template for order items in this format:
Product name1 ( Qty X Price = Subtotal )
Product name2 ( Qty X Price = Subtotal )
etc…

TOP