{"id":3952,"date":"2018-04-20T10:16:18","date_gmt":"2018-04-20T10:16:18","guid":{"rendered":"https:\/\/demos.welaunch.io\/woocommerce-pdf-catalog\/?post_type=faq&#038;p=316"},"modified":"2023-09-16T13:32:12","modified_gmt":"2023-09-16T11:32:12","slug":"are-discount-plugins-supported","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/are-discount-plugins-supported\/","title":{"rendered":"Are WooCommerce B2B or Discount Plugins supported in PDF?"},"content":{"rendered":"<p>We use the WooCommerce standard get_price_html function to get the price for a product. If your 3rd party B2B or discount plugin hooks into this function, it will work.<\/p>\n<p>You could hook yourself into the filter applied there like the following:<\/p>\n<pre>\/\/ define the woocommerce_get_price_html callback \r\nfunction filter_woocommerce_get_price_html( $price, $instance ) { \r\n \r\n if($instance-&gt;get_id() == 96) {\r\n $price = '40 \u20ac';\r\n }\r\n return $price; \r\n}; \r\n \r\n\/\/ add the filter \r\nadd_filter( 'woocommerce_get_price_html', 'filter_woocommerce_get_price_html', 10, 2 );<\/pre>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-3952","faq","type-faq","status-publish","hentry","faq_topics-pdf-catalog-faq","faq_topics-pdf-catalog-filter-hooks"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/comments?post=3952"}],"version-history":[{"count":1,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3952\/revisions"}],"predecessor-version":[{"id":16153,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/3952\/revisions\/16153"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=3952"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=3952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}