Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to change recently view products horizontally instead vertically of New Products?

    Knowledge Base
    3
    8
    688
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      Zakir last edited by

      Hi,
      How to change recently view products horizontally instead vertically so New Products can show full page?

      42e09857-c96e-49eb-94a3-0be681f0e8f8-image.png

      1 Reply Last reply Reply Quote 0
      • D
        deepak227 last edited by

        @Zakir
        Please go through this file bagisto\packages\Webkul\Velocity\src\Resources\views\shop\home\new-product.blade.php in that line no 138

        @include ('shop::products.list.recently-viewed', [
        'quantity' => 3,
        'addClass' => 'col-lg-3 col-md-12',
        ])

        change this to
        @include ('shop::products.list.recently-viewed', [
        'quantity' => 3,
        'addClass' => 'col-lg-12 col-md-12',
        ])

        after that please run php artisan vendor:publish --force --all

        Thank you

        1 Reply Last reply Reply Quote 0
        • Z
          Zakir last edited by

          Hi @deepak227 ,
          I tried as you mentioned but it doesnot seems to reflect anything..
          do I need to do anything else?

          0ce2c622-50b8-409a-9198-5cecb4171368-image.png

          1 Reply Last reply Reply Quote 0
          • V
            Vaishali Agarwal last edited by Vaishali Agarwal

            @Zakir
            have you run publish all the asset inside your package by running
            php artisan vendor:publish --force

            1 Reply Last reply Reply Quote 0
            • Z
              Zakir last edited by

              Hi, @Vaishali-Agarwal
              yes I did ran >php artisan vendor:publish --all --force inside project root.

              1 Reply Last reply Reply Quote 0
              • D
                deepak227 last edited by

                Hi @Zakir

                you have to change the line no 71

                override the code
                @include ('shop::products.list.recently-viewed', [
                'quantity' => 3,
                'addClass' => 'col-lg-12 col-md-12',
                ])

                Then run php artisan vendor:publish --force --all

                1 Reply Last reply Reply Quote 1
                • Z
                  Zakir last edited by

                  Thanks @deepak227 ,
                  yes now recently view products in new line, along with that I wanted 'recently view products' shows horizontally as like others , if this complicated process then nice to have.

                  c47a4574-77b7-4e37-a1ef-ef45e29fe485-image.png

                  1 Reply Last reply Reply Quote 0
                  • Z
                    Zakir last edited by Zakir

                    @deepak227
                    if I want to show recently view products more than 3 , it does not works even I changed 'quantity' => 10 ..
                    do I need to do anything else?

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post