veltors Posted September 10, 2017 Share Posted September 10, 2017 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.. Link to comment Share on other sites More sharing options...
Scully Posted September 11, 2017 Share Posted September 11, 2017 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 More sharing options...
veltors Posted September 11, 2017 Author Share Posted September 11, 2017 It is in product page after description. it is other products in the same category. Default theme 1.6.16 Link to comment Share on other sites More sharing options...
Scully Posted September 11, 2017 Share Posted September 11, 2017 Not understood. It is in product page after description. it is other products in the same category. This are two completely different answers to one question. Link to comment Share on other sites More sharing options...
veltors Posted September 11, 2017 Author Share Posted September 11, 2017 Here is the full page. at the end of the page there is a module called o"ther products in same category" and i want to add one more line in 2 rows the pictures or more. thansk a lot for your interest. Link to comment Share on other sites More sharing options...
Scully Posted September 11, 2017 Share Posted September 11, 2017 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 More sharing options...
veltors Posted September 11, 2017 Author Share Posted September 11, 2017 (edited) thanks a lot. It does it but it appears and hiding automaticly. Normaly without this code same stuation. It hides other row automaticly... :-( Edited September 12, 2017 by veltors (see edit history) Link to comment Share on other sites More sharing options...
veltors Posted September 12, 2017 Author Share Posted September 12, 2017 First as in the picture you can see they shown and than again same positin... Link to comment Share on other sites More sharing options...
Scully Posted September 12, 2017 Share Posted September 12, 2017 This looks like you have to adapt your CSS to fix that problem. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now