# sync-basalam/trunk/includes/Admin/Order/OrderTrackingBox.php

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

- Page: https://pluginprobe.com/plugins/sync-basalam/trunk/code/includes/Admin/Order/OrderTrackingBox.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/trunk/raw/includes/Admin/Order/OrderTrackingBox.php
- Modified: 2026-03-05T12:38:56+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/trunk/code/includes/Admin/Order/OrderTrackingBox.php#L10-L20`.

```php
<?php

use SyncBasalam\Admin\Settings\SettingsConfig;

defined("ABSPATH") || exit;

$settings = syncBasalamSettings();
$BasalamAccessToken = $settings->getSettings(SettingsConfig::TOKEN);
$syncBasalamVendorId = $settings->getSettings(SettingsConfig::VENDOR_ID);
?>

<div class="order-tracking-box">
    <?php if (!$BasalamAccessToken): ?>
        <p class="basalam-p basalam-font-12">
            دسترسی های لازم دریافت نشده است ، ابتدا دسترسی ها را
            <a href="/wp-admin/admin.php?page=sync_basalam" target="_blank">دریافت</a> نمایید.
        </p>
    <?php else: ?>

        <?php if ($orderStatus == "bslm-wait-vendor"): ?>
            <?php require syncBasalamPlugin()->templatePath("orders/Statuses/Pending.php"); ?>
            <?php require syncBasalamPlugin()->templatePath("orders/Popups/CancelOrder.php"); ?>
            <?php require syncBasalamPlugin()->templatePath("orders/Popups/ShippingMethod.php"); ?>

        <?php elseif ($orderStatus == "bslm-preparation"): ?>
            <?php require syncBasalamPlugin()->templatePath("orders/Statuses/Preparation.php"); ?>
            <?php require syncBasalamPlugin()->templatePath("orders/Popups/DelayRequest.php"); ?>
            <?php require syncBasalamPlugin()->templatePath("orders/Popups/ShippingMethod.php"); ?>
            <?php require syncBasalamPlugin()->templatePath("orders/Popups/RequestCancel.php"); ?>

        <?php elseif ($orderStatus == "bslm-shipping"): ?>
            <?php require syncBasalamPlugin()->templatePath("orders/Statuses/Shipping.php"); ?>

        <?php elseif ($orderStatus == "bslm-rejected"): ?>
            <?php require syncBasalamPlugin()->templatePath("orders/Statuses/Cancelled.php"); ?>

        <?php elseif ($orderStatus == "bslm-completed"): ?>
            <?php require syncBasalamPlugin()->templatePath("orders/Statuses/Completed.php"); ?>

        <?php endif; ?>
    <?php endif; ?>
</div>

```
