You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/campaigns/editor/filters.rst
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -996,8 +996,8 @@ This example can be used in ``Email sending condition`` of Advocate Offer Email
996
996
qr\_code
997
997
........
998
998
999
-
Converts a string into a QR code. By default, produces an image in SVG format. If HTML format is specified,
1000
-
returns an HTML table, which may be useful for inclusion in emails.
999
+
Converts a string into a QR code. By default, produces an image in SVG format. If ``png_base64`` format is specified,
1000
+
returns a source for an HTML element, containing a base64-encoded PNG image.
1001
1001
1002
1002
.. code-block:: liquid
1003
1003
@@ -1007,8 +1007,8 @@ returns an HTML table, which may be useful for inclusion in emails.
1007
1007
1008
1008
It may take the following arguments:
1009
1009
1010
-
* ``xdim`` - the width of the narrowest bar in a barcode. Thicker bars are multiples of the xdim. Default value is ``4``.
1011
-
* ``format`` - custom format for the result. Only ``html`` is supported.
1010
+
* ``xdim`` - the width of the cell in a QR code. Default value is ``4``.
1011
+
* ``format`` - custom format for the result. Only ``png_base64`` is supported.
1012
1012
1013
1013
This filter generates a QR code that can be used to encode URLs, text, or coupon codes. The QR code is returned as an SVG image that can be directly embedded in HTML.
1014
1014
@@ -1020,13 +1020,11 @@ This filter generates a QR code that can be used to encode URLs, text, or coupon
1020
1020
{{ coupon.code | qr_code: xdim: 6 }}
1021
1021
</div>
1022
1022
1023
-
To return a QR code as an HTML table that can be embedded in email body, use the custom format:
1023
+
To return a QR code as a base64-encoded PNG that can be embedded in email body, use the custom format:
0 commit comments