How to remove products policies from emails?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 10 reply threads
  • Author
    Posts
    • #102122
      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
      Andrey
      Participant

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

    • #103342
      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
      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
      Andrey
      Participant

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

    • #103398
      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
      Keymaster

      Well, by default Store Policies part of Store Invoice.

    • #129142
      darrenm
      Participant

      Hi, I put the above snippets in functions.php and they didn’t work.
      How can I:
      a.) remove the policies from all emails to the shop owner (vendor).
      b.) OR, show vendor polices only for customers emails, and not for vendors

      Also I noticed a ?> in the functions.php, may I remove it?

      Thanks.

    • #129144
      Auhouse.ru
      Participant

      How to remove supplier policy from order and from emails

    • #129459

      Hello,

      To remove polices from order and emails –
      add_filter( 'wcfm_is_allow_policies_under_order_details', '__return_false' );
      Add this code in your theme’s functions.php

      Thanks.

    • #129472
      Auhouse.ru
      Participant

      It works, thanks

Viewing 10 reply threads
  • You must be logged in to reply to this topic.