Bagisto Forum

    Bagisto

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

    The minicart does not display correctly

    General Discussion
    2
    2
    160
    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.
    • L
      LilD last edited by

      I made an update so that the minicart badge shows the quantity of products and not the total products in the basket
      Everything goes ok but on the model version it always shows the number of products, not the quantity
      Is there a minicart component for mobile other than the existing one?

      mini-cart.vue
        const reducer = (accumulator, currentValue) => accumulator + currentValue;
                              this.cartItems = response.data.mini_cart.cart_items;
                              this.cartInformation = response.data.mini_cart.cart_details;
                              this.cartItems.forEach(element => quantity.push(element.quantity));
                              this.quantity = quantity.reduce(reducer);
                              console.log(this.quantity)
      Now i show quantity
      
      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @LilD,

        No, we only have one mini cart component. You need to customize this at your end.

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