How to remove products policies from emails?

This topic contains 6 replies, has 2 voices, and was last updated by WCFM Forum WCFM Forum 2 weeks, 5 days ago.

  • Author
    Posts
  • #102122
    Avatar
    Andrey
    Participant

    Hi,
    How can we remove product policies from emaisl which customer receives with new order?
    Now after a table of order contents there are a lot of additional policies for each ordered product.
    If customer have 5 items in the order in email there are policy for each product.
    And if a policy of product is empty – vendor’s policy linked and showed in the emails.

    So, in emails we need to show only vendor/shop specific policies but not policies for items.
    In will make email compact and clear.

    Thank you

  • #102304
    Avatar
    Andrey
    Participant

    Hi Support Team!
    Could you give a solution for our request?

  • #103342
    WCFM Forum
    WCFM Forum
    Keymaster

    HI,

    How can we remove product policies from emaisl which customer receives with new order?

    – Add this line to your site for the purpose-

    add_filter( 'wcfm_is_allow_policy_under_order_emails', '__return_false' );

    Well, this will work after WCFM Marketplace next update.

    Thank You

  • #103350
    WCFM Forum
    WCFM Forum
    Keymaster

    You may also add this show policies by vendor instead by item –

    add_filter( 'wcfm_is_allow_order_item_policies_by_vendor', '__return_true' );

    This will also work after WCFM Marketplace next update.

  • #103391
    Avatar
    Andrey
    Participant

    Hi, and thank you for an answer.
    Do we need to add those filters to functions.php or using snippets?

  • #103398
    Avatar
    Andrey
    Participant

    And, by the way, how it is possible to put Store Policies in PDF invoice or packing slip?
    We want to inform customers about vendor’s rules in the invoice.

    Thank you

  • #105754
    WCFM Forum
    WCFM Forum
    Keymaster

    Well, by default Store Policies part of Store Invoice.

You must be logged in to reply to this topic.