• Resolved lenlit

    (@lenlit)


    Hi, in my pdf invoice I am trying to add the fee field that you can add to an order in the backend. I used the shortcode [wcj_order_fees_html] but it is not displaying any decimals and no currency symbol. I tried some of the other shortcodes but none showed up on the invoice but this one

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor David G

    (@gravid7)

    Hi @lenlit

    Thanks for reaching out to us.

    To display the currency you can try to use this [wcj_order_currency] shortcode before order fees shortcode. This will allow you to display the order currency. Let us know if you need further help from us.

    Thread Starter lenlit

    (@lenlit)

    I added the currency code like this: [wcj_order_currency] [wcj_order_fees_html]

    But it is displaying like this

    ZAR
    R5500 fee – 5500

    instead of

    R5500 fee – R5,500.00

    It’s putting the currency in the wrong place and no decimals.

    I tried using [wcj_order_fee] but it just came up blank?

    Plugin Contributor David G

    (@gravid7)

    Hi @lenlit

    Thanks for your message.
    Can you let us know how you have added the fees?

    Thread Starter lenlit

    (@lenlit)

    [wcj_order_fees_html]

    Thread Starter lenlit

    (@lenlit)

    The fees were added manually in the backend of wordpress

    Plugin Contributor David G

    (@gravid7)

    Hi @lenlit

    If you are able to modify the code then you can modify the shortcode. I can provide you, the path of this file. You can find the shortcode ‘wcj_order_fees_html’ and either add currency code using “get_woocommerce_currency_symbol(get_option(‘woocommerce_currency’))” code or remove the “line_total”.

    Path:- wp-content/plugins/booster-plus-for-woocommerce/includes/shortcodes/class-wcj-shortcodes-orders.php

    Thread Starter lenlit

    (@lenlit)

    Thanks for this. I’m using the free version and can’t find a folder for the booster plugin under plugins?
    Is there a way to also add decimals?

    Plugin Contributor David G

    (@gravid7)

    Hi @lenlit

    Thanks for your message. You can find the below path for the free plugin version.
    /woocommerce-jetpack/includes/shortcodes/class-wcj-shortcodes-orders.php

    To show the fees in decimal, you can use this function “number_format($the_fee[‘line_total’], 2, ‘.’, ”)”. This will add 2 zeros after value. Let us know if you need further help.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘PDF invoice service fee’ is closed to new replies.