• Resolved raptor_00

    (@raptor_00)


    I need to put more data in the QR template, such as the name of the product, the quantity purchased, what type of shortcode can I use? do you have any documentation?

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author www.15.to

    (@www15to)

    Hello!
    Please post details here about additional info required for you.
    I will add this features for you and for all with new version.

    About documentation I will create it shortly and will post link here.

    Thread Starter raptor_00

    (@raptor_00)

    I need to be able to add more information about the product, like the name of the product, price etc… can I use some other shortcode?

    EXAMPLE FOR YOUR OWN TEMPLATE:
    Order ID: {order_id}
    {full_customer_Nombre}
    TOTAL AMOUNT: {total_amount}
    VAT AMOUNT: {vat_amount}
    VAT NUMBER: {vat_number}
    DATE {order_date}
    TIME {order_time}
    {wc_website}
    Plugin Author www.15.to

    (@www15to)

    I added one additional variable in new version 1.9.3 ( just update plugin ).
    Name of new variable:
    {wc_order_items}

    So you can use it like this:

    Order ID: {order_id}
    {full_customer_name}
    {wc_order_items}
    TOTAL AMOUNT: {total_amount}
    VAT AMOUNT: {vat_amount}
    VAT NUMBER: {vat_number}
    DATE {order_date}
    TIME {order_time}
    {wc_website}

    Let me know if you need something else

    Thread Starter raptor_00

    (@raptor_00)

    The ideal would be to divide the information, because it gets the information with the html code as well.

    Thread Starter raptor_00

    (@raptor_00)

    Extract the information but with HTML code

    <p>Product Nombre: La Dinastia de Tuzantla, Mich<br>Quantity: 1<br>Line total: <span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>50.00</bdi></span></p>

    Plugin Author www.15.to

    (@www15to)

    Just post template as you want
    I will create product items with this template

    Thread Starter raptor_00

    (@raptor_00)

    the information comes out this way, with html code it is not functional, it is not understood

    that’s how it goes

    ORDER ID: 119
    NAME: Reynaldo GR
    <p>Product Nombre: La Dinastia de Tuzantla, Mich<br>Quantity: 1<br>Line total: <span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>50.00</bdi></span></p>
    TOTAL PAID: $58.50
    COMMISSION: $5.00
    TAX: $3.50
    DATE OF PURCHASE: 08/11/2022
    PURCHASE TIME: 20:23
    Thread Starter raptor_00

    (@raptor_00)

    If you could separate the name of the product, the price and the quantity, in a separate shortcode it would be ideal.

    …but without HTML code

    • This reply was modified 2 years ago by raptor_00.
    Plugin Author www.15.to

    (@www15to)

    Thanks for test – will fix it now, will remove html
    I think i will do like this {wc_order_items}:
    Product name1 ( 2 X $50.00 )
    Product name2 ( 5 X $23.00 )
    Product name3 ( 7 X $13.00 )
    without html

    Plugin Author www.15.to

    (@www15to)

    How do you want to separate it? If you will have 100 products in order? What shortcode you will place?
    {product_name1}{product_qty1}{product_subtot1}
    but how about 50 products in one order?

    Thread Starter raptor_00

    (@raptor_00)

    yes, it could be a solution, but it is preferable to separate the quantity and the price, is it possible?

    Thread Starter raptor_00

    (@raptor_00)

    yes {product_name1}{product_qty1}{product_subtot1}

    Plugin Author www.15.to

    (@www15to)

    I cant find logic yet — I can do it with code if you give me logic.
    I see only manual way to create about 100 variables {product_name1} – {product_name100} etc
    or ( if automatic )

    I can create like this:
    {item_product_name}{item_product_qty}{item_product_subtot}
    and then results will be like this:
    {item_product_name} =
    product_name1
    product_name2
    product_name3

    {item_product_qty} =
    product_qty1
    product_qty2
    product_qty3

    {item_product_subtot} =
    product_subtot1
    product_subtot2
    product_subtot3

    Which way is prefered?

    Plugin Author www.15.to

    (@www15to)

    yes {product_name1}{product_qty1}{product_subtot1}

    But if you order will have 20 products?
    How do you plan to place new variables?
    {product_name1}{product_qty1}{product_subtot1}
    into template
    please show me
    For example if you already have these ones
    {product_name1}{product_qty1}{product_subtot1}

    what you will do if in order 5 lines?

    Thread Starter raptor_00

    (@raptor_00)

    I understand, it happens that I was only thinking of a product, but you are absolutely right.

    in this case we can put a limit up to 50 or 100 products, as you prefer to think of other users who require it.

    this form is preferable: {item_product_name}{item_product_qty}{item_product_subtot}

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘I need to put more data in the QR template’ is closed to new replies.