fix: resolve container width issues, spa redirects, and appearance settings overwrite. feat: enhance order/sub details and newsletter layout
This commit is contained in:
@@ -218,7 +218,7 @@ export default function EditTemplate() {
|
||||
// Replace store-identity variables with actual data
|
||||
const storeVariables: { [key: string]: string } = {
|
||||
store_name: 'My WordPress Store',
|
||||
store_url: window.location.origin,
|
||||
site_url: window.location.origin,
|
||||
store_email: 'store@example.com',
|
||||
};
|
||||
|
||||
@@ -298,7 +298,7 @@ export default function EditTemplate() {
|
||||
current_year: new Date().getFullYear().toString(),
|
||||
site_name: 'My WordPress Store',
|
||||
store_name: 'My WordPress Store',
|
||||
store_url: '#',
|
||||
site_url: '#',
|
||||
store_email: 'store@example.com',
|
||||
support_email: 'support@example.com',
|
||||
// Account-related URLs and variables
|
||||
@@ -310,6 +310,9 @@ export default function EditTemplate() {
|
||||
user_temp_password: '••••••••',
|
||||
customer_first_name: 'John',
|
||||
customer_last_name: 'Doe',
|
||||
// Campaign/Newsletter variables
|
||||
content: '<p>This is sample content that would be replaced with your actual campaign content.</p>',
|
||||
campaign_title: 'Newsletter Campaign',
|
||||
};
|
||||
|
||||
Object.keys(sampleData).forEach((key) => {
|
||||
@@ -393,6 +396,7 @@ export default function EditTemplate() {
|
||||
p { font-size: 16px; line-height: 1.6; color: #555; margin-bottom: 16px; }
|
||||
.button { display: inline-block; background: ${primaryColor}; color: ${buttonTextColor} !important; padding: 14px 28px; border-radius: 6px; text-decoration: none; font-weight: 600; }
|
||||
.button-outline { display: inline-block; background: transparent; color: ${secondaryColor} !important; padding: 12px 26px; border: 2px solid ${secondaryColor}; border-radius: 6px; text-decoration: none; font-weight: 600; }
|
||||
.text-link { color: ${primaryColor}; text-decoration: underline; }
|
||||
.info-box { background: #f6f6f6; border-radius: 6px; padding: 20px; margin: 16px 0; }
|
||||
.footer { padding: 32px; text-align: center; color: #888; font-size: 13px; }
|
||||
</style>
|
||||
@@ -597,7 +601,7 @@ export default function EditTemplate() {
|
||||
{__('Send a test email with sample data to verify the template looks correct.')}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<div className="space-y-4 py-4">
|
||||
<div className="space-y-4 p-4">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="test-email">{__('Email Address')}</Label>
|
||||
<Input
|
||||
|
||||
Reference in New Issue
Block a user