جهت اضافه کردن تخفيف ويژه در ناحيه کاربري whmcs به پنل هاست خود رفته و در جايي که whmcs را نصب کرديد برين بعد به مسير زير و فايلي به نام specialOfferPanel.php بسازيد و بعد اديت کنيد و کد زير دا در آن کپي کنيد.
includes/hooks
کد PHP:
<?php
use WHMCS\View\Menu\Item;
add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels) { $thankYouMessage = <<<EOT <p>Thanks for beta testing our latest offerings! To show our appreciation we'd like to provide next month of service <strong>on the house</strong>.</p> EOT;
// Add a homepage panel with a link to a free month promo and mode it to the // front of the panel list. $homePagePanels->addChild('thanks', array( 'label' => 'Thanks for the help!', 'icon' => 'fa-thumbs-up', 'order' => 20, 'extras' => array( 'color' => 'gold', 'btn-link' => 'https://example.org/free-month-promo', 'btn-text' => 'Redeem Your Free Month', 'btn-icon' => 'fa-arrow-right', ), 'bodyHtml' => $thankYouMessage, 'footerHtml' => 'Act fast! This offer expires soon!', )); });