Admin Paneli Kullanıcı Gruplarına Belirli Menüler

  • Konbuyu başlatan yusufozcelik
  • Başlangıç tarihi
yusufozcelik

yusufozcelik

Yönetici
Opencart Uzmanı
Katılım
19 Şubat 2012
Mesajlar
127
Çözümler
8
Tepkime puanı
23
Puanları
100
Web sitesi
www.opencartfrm.com
Merhaba arkadaşlar;
bu vqmod eklentisi sayesinde admin panelinizden belirlediğiniz kullanıcılara erişim izni belirleyerek, admin panelinde görüntülenmesini istediğiniz alanları gösterebilirsiniz.
1329336061hide menu 700x7001329336362hide menu 0 700x700

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<modification>
 
    <id>Erişim İzinleri Menüsü/id>
    <version>1.0.0</version>
    <vqmver>2.1.5</vqmver>
    <author>http://www.opencartfrm.com</author>
 
    <file name="admin/view/template/common/header.tpl" error="log">
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $attribute; ?>"><?php echo $text_attribute; ?></a></li>                   
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','catalog/attribute')) { ?>
                        <li><a href="<?php echo $attribute; ?>"><?php echo $text_attribute; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace" ><![CDATA[
                        <li><a href="<?php echo $category; ?>"><?php echo $text_category; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','catalog/category')) {  ?>
                        <li><a href="<?php echo $category; ?>"><?php echo $text_category; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace" ><![CDATA[
                        <li><a href="<?php echo $product; ?>"><?php echo $text_product; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','catalog/product')) {  ?>
                        <li><a href="<?php echo $product; ?>"><?php echo $text_product; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $attribute_group; ?>"><?php echo $text_attribute_group; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','catalog/attribute_group')) { ?>
                        <li><a href="<?php echo $attribute_group; ?>"><?php echo $text_attribute_group; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $option; ?>"><?php echo $text_option; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','catalog/option')) {  ?>
                        <li><a href="<?php echo $option; ?>"><?php echo $text_option; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','catalog/manufacturer')) {  ?>
                        <li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','catalog/download')) {  ?>
                        <li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $review; ?>"><?php echo $text_review; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','catalog/review')) {  ?>
                        <li><a href="<?php echo $review; ?>"><?php echo $text_review; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $information; ?>"><?php echo $text_information; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','catalog/information')) {  ?>
                        <li><a href="<?php echo $information; ?>"><?php echo $text_information; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $module; ?>"><?php echo $text_module; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','extension/module')) {  ?>
                        <li><a href="<?php echo $module; ?>"><?php echo $text_module; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $shipping; ?>"><?php echo $text_shipping; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','extension/shipping')) {  ?>
                        <li><a href="<?php echo $shipping; ?>"><?php echo $text_shipping; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $payment; ?>"><?php echo $text_payment; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','extension/payment')) {  ?>
                        <li><a href="<?php echo $payment; ?>"><?php echo $text_payment; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $total; ?>"><?php echo $text_total; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','extension/total')) {  ?>
                        <li><a href="<?php echo $total; ?>"><?php echo $text_total; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $feed; ?>"><?php echo $text_feed; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','extension/feed')) {  ?>
                        <li><a href="<?php echo $feed; ?>"><?php echo $text_feed; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','sale/order')) {  ?>
                        <li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','sale/return')) {  ?>
                        <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $customer; ?>"><?php echo $text_customer; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','sale/customer')) { ?>
                        <li><a href="<?php echo $customer; ?>"><?php echo $text_customer; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $customer_group; ?>"><?php echo $text_customer_group; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','sale/customer_group')) { ?>
                        <li><a href="<?php echo $customer_group; ?>"><?php echo $text_customer_group; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','sale/affiliate')) {  ?>
                        <li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $coupon; ?>"><?php echo $text_coupon; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','sale/coupon')) {  ?>
                        <li><a href="<?php echo $coupon; ?>"><?php echo $text_coupon; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','sale/voucher')) { ?>
                        <li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $voucher_theme; ?>"><?php echo $text_voucher_theme; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','sale/voucher_theme')) { ?>
                        <li><a href="<?php echo $voucher_theme; ?>"><?php echo $text_voucher_theme; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','sale/contact')) {  ?>
                        <li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $setting; ?>"><?php echo $text_setting; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','setting/setting')) { ?>
                        <li><a href="<?php echo $setting; ?>"><?php echo $text_setting; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $layout; ?>"><?php echo $text_layout; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','design/layout')) { ?>
                        <li><a href="<?php echo $layout; ?>"><?php echo $text_layout; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $banner; ?>"><?php echo $text_banner; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','design/banner')) { ?>
                        <li><a href="<?php echo $banner; ?>"><?php echo $text_banner; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $user; ?>"><?php echo $text_user; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','user/user')) { ?>
                        <li><a href="<?php echo $user; ?>"><?php echo $text_user; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $user_group; ?>"><?php echo $text_user_group; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','user/user_permission')) { ?>
                        <li><a href="<?php echo $user_group; ?>"><?php echo $text_user_group; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $language; ?>"><?php echo $text_language; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/language')) { ?>
                        <li><a href="<?php echo $language; ?>"><?php echo $text_language; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $currency; ?>"><?php echo $text_currency; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/currency')) { ?>
                        <li><a href="<?php echo $currency; ?>"><?php echo $text_currency; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $stock_status; ?>"><?php echo $text_stock_status; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/stock_status')) { ?>
                        <li><a href="<?php echo $stock_status; ?>"><?php echo $text_stock_status; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $order_status; ?>"><?php echo $text_order_status; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/order_status')) { ?>
                        <li><a href="<?php echo $order_status; ?>"><?php echo $text_order_status; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $return_status; ?>"><?php echo $text_return_status; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/return_status')) { ?>
                        <li><a href="<?php echo $return_status; ?>"><?php echo $text_return_status; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $return_action; ?>"><?php echo $text_return_action; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/return_action')) { ?>
                        <li><a href="<?php echo $return_action; ?>"><?php echo $text_return_action; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $return_reason; ?>"><?php echo $text_return_reason; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/return_reason')) { ?>
                        <li><a href="<?php echo $return_reason; ?>"><?php echo $text_return_reason; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $country; ?>"><?php echo $text_country; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/country')) { ?>
                        <li><a href="<?php echo $country; ?>"><?php echo $text_country; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $zone; ?>"><?php echo $text_zone; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/zone')) { ?>
                        <li><a href="<?php echo $zone; ?>"><?php echo $text_zone; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $geo_zone; ?>"><?php echo $text_geo_zone; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/geo_zone')) { ?>
                        <li><a href="<?php echo $geo_zone; ?>"><?php echo $text_geo_zone; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $tax_class; ?>"><?php echo $text_tax_class; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/tax_class')) { ?>
                        <li><a href="<?php echo $tax_class; ?>"><?php echo $text_tax_class; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $tax_rate; ?>"><?php echo $text_tax_rate; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/tax_rate')) { ?>
                        <li><a href="<?php echo $tax_rate; ?>"><?php echo $text_tax_rate; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $length_class; ?>"><?php echo $text_length_class; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/length_class')) { ?>
                        <li><a href="<?php echo $length_class; ?>"><?php echo $text_length_class; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $weight_class; ?>"><?php echo $text_weight_class; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','localisation/weight_class')) { ?>
                        <li><a href="<?php echo $weight_class; ?>"><?php echo $text_weight_class; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $error_log; ?>"><?php echo $text_error_log; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','tool/error_log')) {?>
                        <li><a href="<?php echo $error_log; ?>"><?php echo $text_error_log; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $backup; ?>"><?php echo $text_backup; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','tool/backup')) {?>
                        <li><a href="<?php echo $backup; ?>"><?php echo $text_backup; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_sale_order; ?>"><?php echo $text_report_sale_order; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/sale_order')) {?>
                        <li><a href="<?php echo $report_sale_order; ?>"><?php echo $text_report_sale_order; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_sale_tax; ?>"><?php echo $text_report_sale_tax; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/sale_tax')) {?>
                        <li><a href="<?php echo $report_sale_tax; ?>"><?php echo $text_report_sale_tax; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_sale_shipping; ?>"><?php echo $text_report_sale_shipping; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/sale_shipping')) {?>
                        <li><a href="<?php echo $report_sale_shipping; ?>"><?php echo $text_report_sale_shipping; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_sale_return; ?>"><?php echo $text_report_sale_return; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/sale_return')) {?>
                        <li><a href="<?php echo $report_sale_return; ?>"><?php echo $text_report_sale_return; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_sale_coupon; ?>"><?php echo $text_report_sale_coupon; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/sale_coupon')) {?>
                        <li><a href="<?php echo $report_sale_coupon; ?>"><?php echo $text_report_sale_coupon; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_product_viewed; ?>"><?php echo $text_report_product_viewed; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/product_viewed')) {?>
                        <li><a href="<?php echo $report_product_viewed; ?>"><?php echo $text_report_product_viewed; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_product_purchased; ?>"><?php echo $text_report_product_purchased; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/product_purchased')) {?>
                        <li><a href="<?php echo $report_product_purchased; ?>"><?php echo $text_report_product_purchased; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_customer_order; ?>"><?php echo $text_report_customer_order; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/customer_order')) {?>
                        <li><a href="<?php echo $report_customer_order; ?>"><?php echo $text_report_customer_order; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_customer_reward; ?>"><?php echo $text_report_customer_reward; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/customer_reward')) {?>
                        <li><a href="<?php echo $report_customer_reward; ?>"><?php echo $text_report_customer_reward; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_customer_credit; ?>"><?php echo $text_report_customer_credit; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/customer_credit')) {?>
                        <li><a href="<?php echo $report_customer_credit; ?>"><?php echo $text_report_customer_credit; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $report_affiliate_commission; ?>"><?php echo $text_report_affiliate_commission; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','report/affiliate_commission')) {?>
                        <li><a href="<?php echo $report_affiliate_commission; ?>"><?php echo $text_report_affiliate_commission; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $vqmod_manager; ?>"><?php echo $text_vqmod_manager; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','extension/vqmod_manager')) {?>
                        <li><a href="<?php echo $vqmod_manager; ?>"><?php echo $text_vqmod_manager; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[
                        <li><a href="<?php echo $customer_blacklist; ?>"><?php echo $text_customer_blacklist; ?></a></li>
            ]]></search>
            <add><![CDATA[
                        <?php if($this->user->hasPermission('access','sale/customer_blacklist')) { ?>
                        <li><a href="<?php echo $customer_blacklist; ?>"><?php echo $text_customer_blacklist; ?></a></li>
                        <?php } ?>
            ]]></add>
        </operation>
 
        <operation error="log">
            <search position="after" index="1"><![CDATA[$(document).ready(function() {]]></search>
            <add><![CDATA[
                        $('li a.parent').each(function(index) {                           
                          if($(this).next('ul').children('li').size() == 0) {
                                $(this).parent('li').css('display', 'none');
                          }
                        })
 
                        if($('#catalog ul li:not(:has(a.parent))').size() == 0) $('#catalog').css('display', 'none');
                        if($('#extension ul li:not(:has(a.parent))').size() == 0) $('#extension').css('display', 'none');
                        if($('#sale ul li:not(:has(a.parent))').size() == 0) $('#sale').css('display', 'none');
                        if($('#system ul li:not(:has(a.parent))').size() == 0) $('#system').css('display', 'none');
                        if($('#reports ul li:not(:has(a.parent))').size() == 0) $('#reports').css('display', 'none');
            ]]></add>
        </operation>
    </file>
</modification>

Eklentiyi Vqmod/Xml klasörü içerisine xml olarak yaydedin veya ekdeki dosyayı klasör içerisine yükleyin.

NOT : BU EKLENTİYİ KULLANABİLMENİZ İÇİN VQMOD KURULU OLMALIDIR.
 

Ekli dosyalar

  • vqmod_hide_menu_admin.xml.zip
    1.9 KB · Görüntüleme: 2

Yorum yapmak için giriş yapın veya Kayıt olun

Yorum yapabilmek için üye olmalısınız

Hesap oluştur

Forumumuzda bir hesap oluşturun. Çok kolay!

Giriş yap

Zaten bir hesabınız var mı? Buradan giriş yapın.

Konuyu Okuyanlar (Toplam: 0)
    🚀 OpenCart E-Ticaret Paketi şimdi PHP 8.3 ile güçlendi! Performans artışı ve yeni özelliklerle online satışınızı hızlandırın! Hızla İncele! ✖️