Should I use the JSON:API include module or let the front application handle the related entities display?

to get a related entities using the json:api I can use ex: ?include=uid,uid.user_picture in the parameter, and all the related entities will be returned in the included object, then the front application needs to apply some logic to get the entity(ex: node)+ related entity fields (ex: author email) and then I want to get the…

magento , the qty of products goes into minus on backorder

I’m trying to put qty to 0 if qty < 0, but it’s not working for me i all time have qty on minus my code don’t working for me public function salesOrderSaveAfter($event) { $order = $event->getOrder(); $orderIncrementId = $order->getIncrementId(); foreach ($order->getAllVisibleItems() as $item) { $oldQty = (int)$item->getProduct()->getStockItem()->getQty(); $qtyOrdered = (int)$item->getQtyOrdered(); $differenceQty = $oldQty -…

Kernel null pointer dereference error and 502 when visiting the plugins.php page

I’ve been writing and testing my plugin using a local Varying Vagrant Vagrants (VVV) WordPress install. Recently I reinstalled my OS, and now I’m getting an error. When I visit the plugin management page at http://one.wordpress.test/wp-admin/plugins.php, the page displays fine, however when I add my plugin folder to wp-content/plugins, every time I try to view…