Title: wdevs's Replies | WordPress.org

---

# wdevs

  [  ](https://wordpress.org/support/users/wdevs/)

 *   [Profile](https://wordpress.org/support/users/wdevs/)
 *   [Topics Started](https://wordpress.org/support/users/wdevs/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wdevs/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wdevs/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wdevs/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wdevs/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wdevs/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 77 total)

1 [2](https://wordpress.org/support/users/wdevs/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/wdevs/replies/page/3/?output_format=md) 
[4](https://wordpress.org/support/users/wdevs/replies/page/4/?output_format=md) 
[5](https://wordpress.org/support/users/wdevs/replies/page/5/?output_format=md) 
[6](https://wordpress.org/support/users/wdevs/replies/page/6/?output_format=md) 
[→](https://wordpress.org/support/users/wdevs/replies/page/2/?output_format=md)

 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Tax Switch for WooCommerce] Crazy fast support](https://wordpress.org/support/topic/crazy-fast-support/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [6 days, 5 hours ago](https://wordpress.org/support/topic/crazy-fast-support/#post-18926156)
 * Thank you for your kind review wood2stock!
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Tax Switch for WooCommerce] Excellent support](https://wordpress.org/support/topic/excellent-support-2673/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 week, 3 days ago](https://wordpress.org/support/topic/excellent-support-2673/#post-18923009)
 * Thank you very much inco99777!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Slight conflict with Flatsome theme](https://wordpress.org/support/topic/slight-conflict-with-flatsome-theme/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 week, 5 days ago](https://wordpress.org/support/topic/slight-conflict-with-flatsome-theme/#post-18920325)
 * I’m assuming the issue is fixed for now. Please open a new ticket if you run 
   into any issue.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Slight conflict with Flatsome theme](https://wordpress.org/support/topic/slight-conflict-with-flatsome-theme/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [2 weeks, 5 days ago](https://wordpress.org/support/topic/slight-conflict-with-flatsome-theme/#post-18913507)
 * [@harrydummett](https://wordpress.org/support/users/harrydummett/) were you able
   to test the new version?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Slight conflict with Flatsome theme](https://wordpress.org/support/topic/slight-conflict-with-flatsome-theme/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/slight-conflict-with-flatsome-theme/#post-18896518)
 * Sorry for my late reply. I think I have found the problem and fixed it in 1.6.12.
   Could you please try it out and provide me feedback on it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Plugin not working with Gridbuilder on archive pages](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/#post-18896382)
 * [@webzang](https://wordpress.org/support/users/webzang/) I asked the plugin developer
   and they said this is normal for them to remove the WooCommerce default behavior.
   They send me examples of how you can override properties like prices: [https://docs.wpgridbuilder.com/resources/filter-grid-the-object/](https://docs.wpgridbuilder.com/resources/filter-grid-the-object/)
 * You can write some compatibility code and place it in your functions.php. I have
   a (non tested) LLM example:
 *     ```wp-block-code
       /*** Restore WooCommerce price HTML in WP Grid Builder product objects.** WP Grid Builder strips tags from wc_price(), which breaks WooCommerce price markup.*/function wts_wpgb_restore_woocommerce_price_html( $object ) {if ( empty( $object->ID ) || ! function_exists( 'wc_get_product' ) ) {return $object;}$product = wc_get_product( $object->ID );if ( ! $product ) {return $object;}// Optional: limit to one specific grid.// $grid = function_exists( 'wpgb_get_grid_settings' ) ? wpgb_get_grid_settings() : null;// if ( empty( $grid->id ) || 1 !== (int) $grid->id ) {// return $object;// }$object->price = wts_wpgb_get_price_html( $product, $product->get_price() );$object->sale_price = wts_wpgb_get_price_html( $product, $product->get_sale_price() );$object->regular_price = wts_wpgb_get_price_html( $product, $product->get_regular_price() );$object->price_suffix = $product->get_price_suffix();if ( $product->is_type( 'variable' ) ) {wts_wpgb_set_variable_price_html( $object, $product );}if ( $product->is_type( 'grouped' ) ) {wts_wpgb_set_grouped_price_html( $object, $product );}return $object;}add_filter( 'wp_grid_builder/grid/the_object', 'wts_wpgb_restore_woocommerce_price_html', 20 );/*** Get formatted WooCommerce price HTML without stripping tags.*/function wts_wpgb_get_price_html( WC_Product $product, $price = '' ) {$price = wc_get_price_to_display($product,['price' => $price,]);// Same behavior as WP Grid Builder: do not format empty price if it is not on sale.if ( empty( $price ) && ! $product->is_on_sale() ) {return '';}return wc_price( $price );}/*** Restore variable product price fields with WooCommerce HTML.*/function wts_wpgb_set_variable_price_html( $object, WC_Product_Variable $product ) {$prices = $product->get_variation_prices( true );if ( empty( $prices['price'] ) ) {return;}$min_active_price = current( $prices['price'] );$max_active_price = end( $prices['price'] );$max_regular_price = end( $prices['regular_price'] );if ( $min_active_price !== $max_active_price ) {$object->variation_price = ['min' => wc_price( $min_active_price ),'max' => wc_price( $max_active_price ),];}$object->price = wc_price( $min_active_price );$object->sale_price = wc_price( $min_active_price );$object->regular_price = wc_price( $max_regular_price );}/*** Restore grouped product price fields with WooCommerce HTML.*/function wts_wpgb_set_grouped_price_html( $object, WC_Product_Grouped $product ) {if ( ! function_exists( 'wc_products_array_filter_visible_grouped' ) ) {return;}$prices = [];$children = array_filter(array_map( 'wc_get_product', $product->get_children() ),'wc_products_array_filter_visible_grouped');foreach ( $children as $child ) {if ( '' !== $child->get_price() ) {$prices[] = $child->get_price();}}$min_price = ! empty( $prices ) ? min( $prices ) : '';$max_price = ! empty( $prices ) ? max( $prices ) : '';if ( $min_price !== $max_price ) {$object->variation_price = ['min' => wc_price( $min_price ),'max' => wc_price( $max_price ),];}$object->price = wc_price( $min_price );$object->sale_price = wc_price( $min_price );$object->regular_price = wc_price( $max_price );}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Plugin not working with Gridbuilder on archive pages](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/#post-18896174)
 * Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Plugin not working with Gridbuilder on archive pages](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/#post-18896081)
 * [@webzang](https://wordpress.org/support/users/webzang/) no worries, I wasn’t
   going to ask you any credentials. I wanted to discuss if we could contact the
   developers of WP Grid Builder. But discussing privately is prohibited apparently
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Plugin not working with Gridbuilder on archive pages](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/#post-18895790)
 * Yes, I can confirm WP Grid Builder is stripping all tags in ‘get_price’ in woo.
   php. Like this:
 * `$price = wc_price( $price );
   $price = wp_strip_all_tags( $price );
 * It’s a little strange because `wc_price` will return the default WooCommerce 
   price **with** HTML tags, but they are removing the **default** WooCommerce behavior.
   I’m not sure at the moment how we can bypass this. Are you able to send me a 
   direct mail?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Plugin not working with Gridbuilder on archive pages](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/#post-18895781)
 * Thank you. I’m seeing the issue; the backend is stripping away all the HTML from
   the price elements. So we have to investigate where and when this happens inside
   the wp grid builder plugin and where we can prevent/disable this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Plugin not working with Gridbuilder on archive pages](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/#post-18895774)
 * Yes, the plugin is triggered in the backend, but it looks like the frontend scripts
   are not loaded. But it’s a little difficult to investigate
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Plugin not working with Gridbuilder on archive pages](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/plugin-not-working-with-gridbuilder-on-archive-pages/#post-18895764)
 * Thank you for the detailed explanation. Are you able to provide a test site or
   maybe activate the plugin temporarily? It sounds like the Tax Switch plugin is
   not loaded at all on that specific page.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Tax Switch for WooCommerce] Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-9860/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/excellent-plugin-9860/#post-18893471)
 * I really appreciate your kind review Kurtvincent, thank you!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Slight conflict with Flatsome theme](https://wordpress.org/support/topic/slight-conflict-with-flatsome-theme/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/slight-conflict-with-flatsome-theme/#post-18881103)
 * Hello,
 * Do you have this option enabled ‘Allow customers to switch between prices including
   and excluding VAT in the default WooCommerce mini cart.’ ? Does chanching that
   option fix the issue?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tax Switch for WooCommerce] Compatibility with Advanced Dynamic Pricing and Discount Rules for WooCommerce](https://wordpress.org/support/topic/compatibility-with-advanced-dynamic-pricing-and-discount-rules-for-woocommerce/)
 *  Plugin Support [wdevs](https://wordpress.org/support/users/wdevs/)
 * (@wdevs)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/compatibility-with-advanced-dynamic-pricing-and-discount-rules-for-woocommerce/#post-18855155)
 * I’m closing this issue for now. Please send us a message via mail or our contact
   form if you would like to re-open this issue.

Viewing 15 replies - 1 through 15 (of 77 total)

1 [2](https://wordpress.org/support/users/wdevs/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/wdevs/replies/page/3/?output_format=md) 
[4](https://wordpress.org/support/users/wdevs/replies/page/4/?output_format=md) 
[5](https://wordpress.org/support/users/wdevs/replies/page/5/?output_format=md) 
[6](https://wordpress.org/support/users/wdevs/replies/page/6/?output_format=md) 
[→](https://wordpress.org/support/users/wdevs/replies/page/2/?output_format=md)