# sync-basalam/1.9.1/includes/Admin/Product/elements/SingleProduct/Tab.php

ووسلام – همگام سازی ووکامرس و باسلام, version 1.9.1. 67 lines.

- Page: https://pluginprobe.com/plugins/sync-basalam/1.9.1/code/includes/Admin/Product/elements/SingleProduct/Tab.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/1.9.1/raw/includes/Admin/Product/elements/SingleProduct/Tab.php
- Modified: 2026-06-30T10:43:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sync-basalam/1.9.1/code/includes/Admin/Product/elements/SingleProduct/Tab.php#L10-L20`.

```php
<?php

namespace SyncBasalam\Admin\Product\elements\SingleProduct;

defined('ABSPATH') || exit;

class Tab
{
    public static function registerTab($tabs)
    {
        $tabs['basalam_settings'] = [
            'label'    => 'تنظیمات بیشتر محصول ووسلام',
            'target'   => 'basalam_product_data',
            'class'    => ['basalam-product-tab'],
        ];

        return $tabs;
    }

    public static function renderTabContent()
    {
        global $post;

        echo '<div id="basalam_product_data" class="panel woocommerce_options_panel">';
        echo '<div class="options_group">';

        // Mobile Product Field
        MobileFields::renderCheckbox();

        echo '</div>';
        echo '<div class="options_group">';

        // Gold Product Field
        GoldFields::renderCheckbox();

        echo '</div>';
        echo '<div class="options_group">';

        // Product Type Field
        TypeFields::renderCheckbox();

        echo '</div>';
        echo '<div class="options_group">';

        // Product-specific price increase field
        PriceIncreaseField::renderField();

        echo '</div>';
        echo '<div class="options_group">';

        // Wholesale Product Field
        WholesaleField::renderCheckbox();

        echo '</div>';
        echo '</div>';
    }

    public static function saveTabData($post_id)
    {
        MobileFields::saveCheckbox($post_id);
        GoldFields::saveCheckbox($post_id);
        TypeFields::saveCheckbox($post_id);
        PriceIncreaseField::saveField($post_id);
        WholesaleField::saveCheckbox($post_id);
    }
}

```
