• Resolved mmatu

    (@mmatu)


    Hey!

    I love the plugin, but I would like to add some extra features. Is it possible to do all of them with the premium plugin?

    1) Add the payment deadline – DATE (when the bill has to be paid). And next to that a payment condition – NOTE (“The bill must be paid in 30 days” for example).

    Bonus: different payment deadline for different client groups – I have regular clients and business client. How difficult is to add this function?

    2) Add product SKU.

    3) Add “best before” for every product (healthy snacks).

    4) Add product unit (pieces or kg ).

    Thank you!

    • This topic was modified 7 years ago by mmatu.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi!
    Most of this is indeed something that you can very easily add with the premium templates customizer:

    2) This is a column that you can enable
    3) If you save this as an attribute or custom field in the product, you can add that in a column via the customizer too
    4) Same as 3 (if this is added with a plugin that would work just as well)

    Printing a due date would require a custom code snippet, check the example in the documentation: Print a due date on the invoice. Since this filter passes the order object too, you can check the customer user properties to adjust the due date accordingly,

    Hope that helps!
    Ewout

    Thread Starter mmatu

    (@mmatu)

    Thank you very much, this is great help! ??

    Hi,
    I added a template action hook “Print a due date on the invoice.”
    But now i can not translate the word Due date in my language.
    I use translatepress plugin, but the string to translate does not appear in language.

    Can you please help me?

    Thank you.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! I haven’t worked with Translatepress, so you will need to work out the specifics of this with Translatepress support, but to make this string translateable you need to assign this to a textdomain. Do you have a textdomain for custom translations that are not part of any plugin?
    In the code snippet, you will need to replace:
    Due Date:

    with:
    <?php _e('Due Date:', 'text-domain'); ?>

    Where ‘text-domain’ is what you use for custom translations.

    By the way, the Premium Templates plugin also supports due dates since version 2.5.5!

    Within custom blocks you can now use date offset placeholders {{order_date|+5 days}} / {{invoice_date|+2 weeks}}

    No coding required at all! I’m not sure this would solve the Translatepress issue though…
    Ewout

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Payment Deadline, SKU, Best Before, Product Unit’ is closed to new replies.