Jump to content

How to add one more row other products in the same category


veltors

Recommended Posts

Hello Guys,
 
 
First it shows 2 rows and thans fastly remain 1 rows.  How can do more 2 - 3 rows in product page?
 
this is js file

 

 

$(document).ready(function() {

if (!!$.prototype.bxSlider)
$('#bxslider1').bxSlider({
minSlides: 2,
maxSlides: 6,
slideWidth: 178,
slideMargin: 20,
pager: false,
nextText: '',
prevText: '',
moveSlides:1,
infiniteLoop:false,
hideControlOnEnd: true
});
});

 

or wihich way i have to use?

 

thanks a lot..post-753011-0-01576000-1505045364_thumb.jpg

Link to comment
Share on other sites

Your code referes to a slider but your screenshot does not show a slider. I also could not figure out where the screenshot exactely comes from since it is a cropped image. Furthermore your post misses crutial information such as prestashop version and theme in use.

Link to comment
Share on other sites

You had to change productstagory.php in the module folder. The logic is quite complex. At the beginning the function retrieves 100 products but further down it reduces the numnber of times according to many different conditions.

            $category_products = $category->getProducts($this->context->language->id, 1, 100); /* 100 products max. */

The last part of code interesting to you would be this ...

                // If products tab higher than 30, slice it
                if ($nb_category_products > 30)
                {
                    $category_products = array_slice($category_products, $middle_position - 15, 30, true);
                    $middle_position = 15;
                }

You might go deeper into the logics to make a change.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...