Bagisto Forum

    Bagisto

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

    Change card display type

    General Discussion
    products card carousel list
    2
    5
    806
    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.
    • P
      phenomKay last edited by

      how do i set the mode to switch the display from grid to list? because this gives me this error: syntax error, unexpected token "]", expecting "("
      home/index.blade.php. i'm using bagisto 2

      <x-shop::products.carousel
          title="New Arrivals"
          :src="route('shop.api.products.index', ['new' => 1])"
          :navigation-link="route('shop.api.products.index', ['new' => 1])"
          :mode="list"
      >
      </x-shop::products.carousel>
      

      components/products/card.blade.php

      <!-- Grid Card -->
      <div
          class='grid gap-2.5 content-start w-full relative'
          v-if="mode != 'list'"
      >
      </div>
      <!-- List Card -->
      <div
          class="flex gap-[15px] grid-cols-2 max-w-max relative max-sm:flex-wrap rounded-[4px] overflow-hidden"
          v-else
      >
      </div>
      
      ashish2409 1 Reply Last reply Reply Quote 0
      • ashish2409
        ashish2409 @phenomKay last edited by

        @phenomKay
        Hello there,
        Is this happening in Bagisto 2.0 version?

        P 1 Reply Last reply Reply Quote 0
        • P
          phenomKay @ashish2409 last edited by

          @ashish2409 yes please

          ashish2409 1 Reply Last reply Reply Quote 0
          • ashish2409
            ashish2409 @phenomKay last edited by

            @phenomKay
            As I was checking above screenshot details i found that you are passing :mode="list" in the product carousel
            may i know so that I can help you to resolve your query.

            P 1 Reply Last reply Reply Quote 0
            • P
              phenomKay @ashish2409 last edited by

              @ashish2409 i don't know where to indicate the type of display to use. i was guessing it would be there, since it's part of the properties or @props

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