Special requests

Forums PDF Invoicing for WooCommerce Special requests

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #90881
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Angelo,

    Sorry for the late reply.

    1. Not really sure if this is possible at the moment. Let me check – will get back to you about this asap.

    2. Yes, that’s possible. You need to add something like this to our “HTML content” option (in “WooCommerce > Settings > PDF Invoicing > Your doc”):

    [if value1="{prop name='order_total_tax'}" operator="equal" value2="0"]<p>NOT TAXABLE ART. 41 L. 427/93</p>[/if]

    3. I think we can do that, but I would need to know how to get current bank account data from the current order. Maybe you know if it’s stored in order meta? And if it is – which meta key(s)? If you are not sure – maybe I could log in to your site and check it myself (my email is [email protected])?

    #90882
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Angelo,

    Regarding excluding backordered products from the invoice – please update the plugin to the newest v1.3.0. After that, please go to the document settings, and locate “HTML content” option (in “WooCommerce > Settings > PDF Invoicing > Your doc”).

    By default, order products are displayed with:

    [each_item]<tr><td>[prop name="item_nr"]</td><td>[prop name="item_name"]</td><td>[prop name="item_product_sku"]</td><td class="qty">[prop name="item_qty"]</td><td class="price">[prop name="item_single" format="price"]</td><td class="price">[prop name="item_total" format="price"]</td></tr>[/each_item]

    Now to exclude products which are out of stock, we can use our [if] shortcode:

    [each_item][if value1="{prop name='item_product_func' func='get_stock_quantity'}" operator="greater" value2="0"]<tr><td>[prop name="item_nr"]</td><td>[prop name="item_name"]</td><td>[prop name="item_product_sku"]</td><td class="qty">[prop name="item_qty"]</td><td class="price">[prop name="item_single" format="price"]</td><td class="price">[prop name="item_total" format="price"]</td></tr>[/if][/each_item]

    So basically, now before displaying product in the invoice, we are checking if product stock is greater than zero.

    Please give it a try and let me know what you think.

    P.S. Please note that this will not affect order total, etc. – it will only skip out-of-stock products in the order items table.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.