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

      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

        @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 Reply Quote 0
        • N
          nessuno @Jyoti last edited by

          @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

            @nessuno
            have you done any customization on your code?

            1 Reply Last reply Reply Quote 1
            • N
              nessuno last edited by nessuno

              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
              • First post
                Last post