Home New Guten Forums WoodMart support forum WeLaunch Accessories on Products Columns

WeLaunch Accessories on Products Columns

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #509443

    hollistergj
    Participant

    We use woodmart and define our products to show in 2 columns on category pages.
    in Woormart we define our related products are shown in 5 columns (so they are a smaller section of the product pages)
    We have the weLaunch product accessories plugin: https://www.welaunch.io/en/product/woocommerce-product-accessories/
    When the associated accessories are shown on the product detail page, it uses the # of columns used on the product layout page.
    In their documentation they say to add this to the function page to override the default # of columns:

    function we_modify_optional_accessory_columns( $args ) { 
        
        $args['columns'] = 5;
        return $args; 
    }; 
             
    // add the filter 
    add_filter( 'woocommerce_product_accessories_optional_display_args', 'we_modify_optional_accessory_columns', 60, 1 ); 

    When I do this using WoodMart, the function does not trigger to show the proper number of columns.
    Is there a way to tell WoodMart not to override this set of columns?

    #509561

    Luke Nielsen
    Keymaster

    Hello,

    Could you please check how it works on the default filters from WooCommerce with some default WordPress themes like TwentyTwenty-Three or WooCommerce Storefront to understand is it our theme issue or not?

    Looking forward to hearing back from you!

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)