Home Forums WoodMart support forum Bordered Grid (Inside) for Cross Sell, Up Sell & Related Products

Bordered Grid (Inside) for Cross Sell, Up Sell & Related Products

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #368302

    lorensdesign
    Participant

    Hi, How do I apply Bordered grid style (inside) for Related products, Cross Sells & Upsells?
    It does not take that style from the global settings.

    Thanks

    #368307

    lorensdesign
    Participant

    The setting works for the GRID view but not for the SLIDER view.

    Attachments:
    You must be logged in to view attached files.
    #368442

    Bogdan Donovan
    Keymaster

    Hi,

    Try to navigate to the woodmart/woocommerce/single-product/ and open filerelated.php.

    Replace following part of code:

    $slider_args = array(
    	'slides_per_view' => ( woodmart_get_opt( 'related_product_columns' ) ) ? woodmart_get_opt( 'related_product_columns' ) : apply_filters( 'woodmart_related_products_per_view', 4 ),
    	'img_size' => 'woocommerce_thumbnail',
    	'products_bordered_grid' => woodmart_get_opt( 'products_bordered_grid' ),
    	'custom_sizes' => apply_filters( 'woodmart_product_related_custom_sizes', false ),
    	'product_quantity' => woodmart_get_opt( 'product_quantity' )
    );

    To the next one:

    $slider_args = array(
    	'slides_per_view' => ( woodmart_get_opt( 'related_product_columns' ) ) ? woodmart_get_opt( 'related_product_columns' ) : apply_filters( 'woodmart_related_products_per_view', 4 ),
    	'img_size' => 'woocommerce_thumbnail',
    	'products_bordered_grid' => woodmart_get_opt( 'products_bordered_grid' ),
    	'products_bordered_grid_style' => woodmart_get_opt( 'products_bordered_grid_style' ),
    	'custom_sizes' => apply_filters( 'woodmart_product_related_custom_sizes', false ),
    	'product_quantity' => woodmart_get_opt( 'product_quantity' )
    );

    This issue will also be fixed in the next update.

    Kind Regards

    #368481

    lorensdesign
    Participant

    It worked. Thanks!

    #368674

    Bogdan Donovan
    Keymaster

    You are welcome!

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