Reload page after publishing variant to Shopify so badge updates
Deploy / deploy (push) Successful in 14s
Deploy / deploy (push) Successful in 14s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
6fe34883c6
commit
3450b06e32
1 file changed
+1
@@ -170,6 +170,7 @@ class EditProduct extends EditRecord
|
|||||||
$variantId = app(ShopifyService::class)->createVariant($product->shopify_product_id, $size);
|
$variantId = app(ShopifyService::class)->createVariant($product->shopify_product_id, $size);
|
||||||
$size->update(['shopify_variant_id' => $variantId]);
|
$size->update(['shopify_variant_id' => $variantId]);
|
||||||
Notification::make()->title('Variante in Shopify veröffentlicht')->success()->send();
|
Notification::make()->title('Variante in Shopify veröffentlicht')->success()->send();
|
||||||
|
$this->redirect(ProductResource::getUrl('edit', ['record' => $product]));
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
Notification::make()->title('Shopify-Fehler')->body($e->getMessage())->danger()->send();
|
Notification::make()->title('Shopify-Fehler')->body($e->getMessage())->danger()->send();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user