Quote Originally Posted by Nick1973 View Post
Just a quick one, on the product listing...

modules/bootstrap/product_listing.php does not format correctly when setting the number of columns required.

this
PHP Code:
 if ($product_listing_layout_style === 'columns' || $product_listing_layout_style === 'fluid') {            $lc_text implode('<br>'$product_contents);            $style '';            if ($product_listing_layout_style === 'columns') {                $style ' style="width:' $col_width '%;"'
needs changing to this

PHP Code:
if ($product_listing_layout_style === 'columns' || $product_listing_layout_style === 'fluid') {            $lc_text implode('<br>'$product_contents);            $style '';            if ($product_listing_layout_style === 'columns') {                /* $style = ' style="width:' . $col_width . '%;"'*/
Or you need to take out the line
PHP Code:
$style ' style="width:' $col_width '%;"' 
altogether

I recall DrByte strongly suggested not to mess with that line (around 400 correct?), and to edit in case the lines around 180

PHP Code:
        // set css classes for "row" wrapper, to allow for fluid grouping of cells based on viewport
        // these defaults are based on Bootstrap4, but can be customized to suit your own framework
        
if ($product_listing_layout_style === 'fluid') {
            
$grid_cards_classes 'row-cols-1 row-cols-md-2 row-cols-lg-2 row-cols-xl-3';
            
// this array is intentionally in reverse order, with largest index first
            
$grid_classes_matrix = [
                
'10' => 'row-cols-1 row-cols-md-2 row-cols-lg-4 row-cols-xl-5',
                
'8' => 'row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4',
                
'6' => 'row-cols-1 row-cols-md-2 row-cols-lg-2 row-cols-xl-3',
            ];