Gon an issue error at mini-cart.php
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)
How to resolve that?
@Jyoti I am facing the same issue on 1.2 at create shipment blade, any advise please ? thank you.
have you done any customization on your code?
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 ) ...