Special requests

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #90880
    Angelo Tripodi
    Participant

    Hi, your plugin looks perfect for me, but I have some special requests:

    – In my Ecommerce it is possible to make Backorders for products not available at the time of the order: I need that the unavailable products are not included in the invoice.

    – non-European customers do not pay VAT and I need that when a non-European user places an order the message “NOT TAXABLE ART. 41 L. 427/93” appears, therefore only if there is no VAT on the invoice.

    – Normally customers pay by bank transfer, I would like the account number, BIC / SWIFT, IBAN of the bank to be written in the invoice information (I have more than one current account connected on the site, so it must be according to the current account assigned to that payment, for this reason I cannot enter the fixed banking information in the footer, having multiple bank accounts).

    #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 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.