Support » Plugin: BigCommerce For WordPress » Disabling Quick View

Viewing 1 replies (of 1 total)
  • Plugin Support Mikaela

    (@mikaelabc)

    Hey @ggus03,

    I saw you already resolved this via the BigCommerce Community, but I just wanted to make sure to post the solution here for visibility.

    Creating your own template and removing $quick_view modal in the code won’t work. You’ll need to apply a filter:

    add_filter( 'bigcommerce/template/wrapper/attributes', function( $attributes, $template ) {
      if ( $template === 'components/products/product-card.php' ) {
        unset( $attributes[ 'data-js' ] );
      }
      return $attributes;
    }, 10, 2 );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.