feat(Core): add optimize and complete code

This commit is contained in:
2026-05-17 20:05:15 +03:30
parent aa944bf339
commit 4e60b7efdd
25 changed files with 858 additions and 54 deletions

View File

@@ -92,6 +92,13 @@ $product_categories = get_terms([
</div>
</div>
<?php if (!empty($selectedTemplate)) : ?>
<div class="mb-6 rounded-lg border border-emerald-200 bg-emerald-50 p-4 text-sm text-emerald-800">
<strong><?php echo esc_html(sprintf(__('قالب انتخاب‌شده: %s', 'sodino'), $selectedTemplate['title'])); ?></strong>
<p class="mt-1"><?php _e('ساختار آپسل آماده شده است. محصول فعال‌ساز و محصول پیشنهادی را انتخاب کنید و سپس ذخیره کنید.', 'sodino'); ?></p>
</div>
<?php endif; ?>
<div class="bg-white rounded-lg shadow-sm border border-gray-200 p-6">
<form method="post" class="space-y-6">
<?php wp_nonce_field('sodino_save_upsell', 'sodino_upsell_nonce'); ?>