• Resolved ecupillari

    (@ecupillari)


    Hi I am having an issue with the following Shortcode

    [wcj_order_tcpdf_barcode code=”%id%”]

    I need help with the syntax that instead of using the Order ID I am looking to use the shortcode [wcj_order_number]

    As an example I am looking for a barcode tor the order number and not the ID. MY Order Number is customized and does have a prefix that the Order ID does not.

    I am looking for syntax that kind of looks like this

    [wcj_order_tcpdf_barcode] [wcj_order_number]

    Hope you can help

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,

    Unfortunately [wcj_order_tcpdf_barcode] shortcode does not allow using the order number instead of the id but we have added that to our todo list.

    Thread Starter ecupillari

    (@ecupillari)

    Hi @rokasjan Thanks for the reply. Is there syntax where I can do something like this?

    [wcj_order_tcpdf_barcode code= (PREFIX)”%id%”] My ID and order number are almost the same. the only difference is the Order number has a “e-” as a prefix. Is there syntax to do it this way?

    Hi,

    Unfortunately that is not available either. This shortcode only allows exactly these values – %url%, %id%, %doc_number%, %meta%, nothing more or less as this is a relatively new shortcode.

    Thread Starter ecupillari

    (@ecupillari)

    @rokasjan I did find a solution. I had to renumerate my Post numbers and I got it do what I wanted. I wounder if you can help me with something else.

    I am have put together my packing slip

    This is what I am using.

    [wcj_order_items_table table_class=”pdf_invoice_items_table”
    columns=”product_barcode|product_sku|item_name|item_quantity|item_meta”
    columns_titles=”Barcode|SKU|Item|Qty|Fulfillment Exceptions”
    columns_styles=”width:10%;|width:10%;|width:20%;|width:10%;|width:50%;”]

    I would like the last column to only show (qty on backorder) The meta data i am returning that.

    Hi,

    Did your message get cut off or could you rephrase your last sentence? If you want to show individual meta key, you can use item_key column, for example if meta key is “color”, the column would be item_key=color.

    Thread Starter ecupillari

    (@ecupillari)

    Hi @rokasjan Thanks for your reply I want want to show the quantity on back order. I have tried what you suggested the code looks something like this.

    <h2>Items</h2>
    <p>

    [wcj_order_items_table table_class=”pdf_invoice_items_table”
    columns=”product_barcode|product_sku|item_name|item_quantity|item_key=Backordered'”
    columns_titles=”Barcode|SKU|Item|Qty|Fullfillment Details”
    columns_styles=”width:10%;|width:15%;|width:55%|width:10%;;text-align:right;|width:10%;;text-align:right;”]
    </p>

    However the back order quantities do not show up in the table.

    Hi,

    When using the item_meta column do back order quantities show up? This would tell me if the data is in fact saved as product meta. If they are, I would recommend trying out different meta keys:

    Backordered
    Backorder
    backordered
    backorder
    _backordered
    _backorder
    Thread Starter ecupillari

    (@ecupillari)

    @rokasjan I get backorders now to show now. However I also see _reduced_stock.

    Here is an example

    Backordered: 3,
    _reduced_stock: 3

    How do I filter this so only the backorder shows up without _reduced_stock?

    Here is the code

    [wcj_order_items_table table_class="pdf_invoice_items_table" variation_as_metadata=no	columns="product_barcode|product_sku|item_name|item_quantity|item_meta=backordered"
            columns_titles="Barcode|SKU|Item|Qty|Fullfillment Details"
    	columns_styles="width:15%;|width:20%;|width:40%|width:10%;;text-align:right;|width:15%;;text-align:right;"]

    Thanks for your help as always,

    Hi,

    Try adding variation_as_metadate=no to the template as well as add_variation_info_to_item_name=No.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PDF Invoicing and packing Slips Barcode Woocommerce Booster’ is closed to new replies.