diff --git a/app/Console/Commands/ImportLegacyStorefronts.php b/app/Console/Commands/ImportLegacyStorefronts.php
index 6dfce16..0975819 100644
--- a/app/Console/Commands/ImportLegacyStorefronts.php
+++ b/app/Console/Commands/ImportLegacyStorefronts.php
@@ -126,7 +126,14 @@ class ImportLegacyStorefronts extends Command
if ($existing && ! $refresh) {
$skipped++;
- $this->line(" {$row->short_code}: already exists โ skipped.");
+
+ if ($deactivateSource && ! $dry && $row->is_active) {
+ $platform->table('qr_codes')->where('id', $row->id)->update(['is_active' => 0]);
+ $deactivated++;
+ $this->line(" {$row->short_code}: already exists โ skipped (platform copy deactivated).");
+ } else {
+ $this->line(" {$row->short_code}: already exists โ skipped.");
+ }
continue;
}
diff --git a/resources/views/merchant/storefronts/show.blade.php b/resources/views/merchant/storefronts/show.blade.php
index cde46a7..e06f10f 100644
--- a/resources/views/merchant/storefronts/show.blade.php
+++ b/resources/views/merchant/storefronts/show.blade.php
@@ -50,13 +50,49 @@
@endif
{{ $publicUrl }}
-