• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Gon an issue error at mini-cart.php

Modules
4
5
451
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.
  • R
    reyadek last edited by 24 Feb 2020, 03:47

    im new in bagisto after install and set all configuration bagisto, i got error after "add to cart"

    "Trying to get property 'type' of non-object (View: /Users/adeputra/Sites/wkwk/resources/themes/wkwk/views/checkout/cart/mini-cart.blade.php)

    Screen Shot 2020-02-24 at 10.43.10.png

    How to resolve that?

    1 Reply Last reply Reply Quote 0
    • J
      Jyoti last edited by 24 Feb 2020, 10:36

      @reyadek
      This issue has been fixed in our latest release. Please take a pull
      https://github.com/bagisto/bagisto/releases

      N 1 Reply Last reply 2 Dec 2020, 11:42 Reply Quote 0
      • 9 months later
      • N
        nessuno @Jyoti last edited by 2 Dec 2020, 11:42

        @Jyoti I am facing the same issue on 1.2 at create shipment blade, any advise please ? thank you.

        1 Reply Last reply Reply Quote 0
        • V
          Vaishali Agarwal last edited by 3 Dec 2020, 12:13

          @nessuno
          have you done any customization on your code?

          1 Reply Last reply Reply Quote 1
          • N
            nessuno last edited by nessuno 3 Dec 2020, 15:10 3 Dec 2020, 15:10

            Hi @Vaishali-Agarwal thanks for your answer !

            Yes, lots of customisation 🙂
            I've fixed the problem but you might want check this perhaps:
            When creating a shipment, admin dash
            the blade packages/Webkul/Admin/src/Resources/views/sales/shipments/create.blade.php
            Please look for this line:
            $sourceQty = $product->type == 'bundle' ? $item->qty_ordered : $product->inventory_source_qty($inventorySource->id);
            ( around line 310 )

            When creating a shipment for a product variant that no longer exists
            ( client deleted a configurable product variant before invoice or shipment )
            it will fall into this.

            I have worked around by simply ( is !isset - and if so, default to a qty so client can ship but it triggers an email ) ...

            Thanks!

            1 Reply Last reply Reply Quote 0
            3 out of 5
            • First post
              3/5
              Last post