Fix Woo sync: exempt webhooks from CSRF and backfill on connect.
Deploy Ladill Woo Manager / deploy (push) Successful in 39s

Auto-import catalog and orders after store activation, add manual order sync, and allow WooCommerce webhooks without CSRF tokens.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-07 00:15:37 +00:00
co-authored by Cursor
parent ec138a903f
commit e3ef23218f
9 changed files with 222 additions and 5 deletions
+13 -4
View File
@@ -1,9 +1,18 @@
<x-user-layout>
<x-slot name="title">Orders</x-slot>
<div class="space-y-6">
<div>
<h1 class="text-xl font-semibold text-slate-900">Orders</h1>
<p class="mt-1 text-sm text-slate-500">WooCommerce orders synced for fulfillment.</p>
<div class="flex flex-wrap items-start justify-between gap-4">
<div>
<h1 class="text-xl font-semibold text-slate-900">Orders</h1>
<p class="mt-1 text-sm text-slate-500">WooCommerce orders synced for fulfillment.</p>
</div>
@if($stores->isNotEmpty())
<form method="post" action="{{ route('woo.orders.sync') }}">
@csrf
<input type="hidden" name="store" value="{{ $storeFilter ?: $stores->first()->id }}">
<button type="submit" class="rounded-xl border border-slate-200 bg-white px-4 py-2 text-sm font-medium text-slate-700 hover:bg-slate-50">Sync from store</button>
</form>
@endif
</div>
<form method="get" class="flex flex-wrap items-end gap-3">
@@ -23,7 +32,7 @@
<div class="overflow-hidden rounded-2xl border border-slate-200 bg-white">
@if($orders->isEmpty())
<p class="px-6 py-10 text-sm text-slate-500">No orders yet. Connect a store and place a test order in WooCommerce.</p>
<p class="px-6 py-10 text-sm text-slate-500">No orders yet. Use <strong>Sync from store</strong> to import existing orders, or wait for new WooCommerce order events.</p>
@else
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-slate-100 text-sm">