fix: resolve container width issues, spa redirects, and appearance settings overwrite. feat: enhance order/sub details and newsletter layout

This commit is contained in:
Dwindi Ramadhana
2026-02-05 00:09:40 +07:00
parent a0b5f8496d
commit 5f08c18ec7
77 changed files with 7027 additions and 4546 deletions

View File

@@ -350,21 +350,38 @@ function ClassicLayout({ children }: BaseLayoutProps) {
</div>
{/* Payment Icons */}
{footerSettings.elements.payment && (
{(footerSettings.payment ? footerSettings.payment.enabled : footerSettings.elements.payment) && (
<div className="mt-8 pt-8 border-t">
<p className="text-xs text-gray-500 text-center mb-4">We accept</p>
<div className="flex justify-center gap-4 text-gray-400">
<span className="text-xs">💳 Visa</span>
<span className="text-xs">💳 Mastercard</span>
<span className="text-xs">💳 PayPal</span>
<p className="text-xs text-gray-500 text-center mb-4">
{footerSettings.payment?.title || 'We accept'}
</p>
<div className="flex justify-center gap-4 text-gray-400 items-center">
{footerSettings.payment?.methods && footerSettings.payment.methods.length > 0 ? (
footerSettings.payment.methods.map((method: any) => (
<div key={method.id} title={method.label}>
{method.url ? (
<img src={method.url} alt={method.label} className="h-6 w-auto object-contain" />
) : (
<span className="text-xs">💳 {method.label}</span>
)}
</div>
))
) : (
// Fallback for legacy or empty methods
<>
<span className="text-xs">💳 Visa</span>
<span className="text-xs">💳 Mastercard</span>
<span className="text-xs">💳 PayPal</span>
</>
)}
</div>
</div>
)}
{/* Copyright */}
{footerSettings.elements.copyright && (
{(footerSettings.copyright ? footerSettings.copyright.enabled : footerSettings.elements.copyright) && (
<div className="border-t mt-8 pt-8 text-center text-sm text-gray-600">
{footerSettings.copyright_text}
{footerSettings.copyright?.text || footerSettings.copyright_text}
</div>
)}
</div>