Jump to content

Add line to show more products


Recommended Posts

Hi Guys,

i have a problem - prestashop 1.6

At the moment I have one line where show my products (orange)
I need add one line more or two to show more products on main page.
can you help me where and what I need change to show more product on main page.

On screen you see right now show me 4 products -> if I change to show 6-8 its works like slider
I need sever line or 2 more line to show 8 or 12 products on first page.

Can you help me ?

Zrzut ekranu 2022-01-25 o 16.22.45.png

Share this post


Link to post
Share on other sites

Edit file /themes/interior/js/autoload/carousels.js and comment this code:

$(".-js-wrap-carousels .product_list").each(function(){
    var owlProductsIndex = $(this);
    owlProductsIndex.owlCarousel({
        items: 4,
        nav: true,
        dots: false,
        dotsSpeed: 700,
        navSpeed: 700,
        autoplaySpeed: 700,
        autoplay: true,
        autoplayTimeout: 5000,
        loop: owlProductsIndex.children().length > 1,
        responsiveClass:true,
        responsive:{
            0:{
                items:1
            },
            480:{
                items:2
            },
            768:{
                items:3
            },
            991:{
                items:4
            }
        },
        navText:	['<i class="font-left-open-big">','<i class="font-right-open-big">']
    });
});

 

Share this post


Link to post
Share on other sites

12 minutes ago, RMP said:

ok. Very very thank you.
one more question how can I add any break before options and products ?

Red line on photo

Zrzut ekranu 2022-01-27 o 17.35.52.png

Add in custom.css in 20px or more if you need.

.tab-pane.active {
  opacity: 1 !important;
  height: auto;
  margin-top: 20px;

 

Screenshot 2022-01-27 at 17-49-47 SKLEP ELEMENTI - ELEMENTI.png

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More