Navigation

    Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. himanshu-kmr
    3. Posts
    H
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by himanshu-kmr

    • Admin panel Sub Menu Creating

      Hello,

      I want to create admin menu for my Blogs. The menu has been created successfully but Sub menu is not displaying.

      Menu Structure

      Blogs -
      Blogs category
      BLogs

      To create Menu I have changes on src/Config/admin-menu.php

      <?php

      return [
      [
      'key' => 'blogs',
      'name' => 'Blogs',
      'route' => 'blogs.admin.index',
      'sort' => 2,
      'icon-class' => 'dashboard-icon',
      ], [
      'key' => 'blogs.category',
      'name' => 'Category',
      'route' => 'blogs.admin.category',
      'sort' => 3,
      'icon-class' => '',
      ], [
      'key' => 'blogs.blogs',
      'name' => 'Blogs',
      'route' => 'blogs.admin.index',
      'sort' => 4,
      'icon-class' => '',
      ]
      ];

      After each changes I am running php artisan optimize

      But no sub menu has been crated

      Please Help

      posted in General Discussion
      H
      himanshu-kmr
    • RE: Creating Sub Menu under Admin panel

      @devansh-webkul said in Creating Sub Menu under Admin panel:

      php artisan config:cache

      @devansh-webkul Thankyou for your advice. I have cleared the cache but still sub menu not appearing....

      posted in General Discussion
      H
      himanshu-kmr
    • Creating Sub Menu under Admin panel

      I have created a package "contact" and want to create a menu in admin panel. The menu has been created but sub menu is not showing.

      To create a sub menu I have added a array on src/Config/admin-menu.php

      return [
          [
              'key' => 'contact',
              'name' => 'Contact',
              'route' => 'contact.admin.index',
              'sort' => 2,
              'icon-class' => 'dashboard-icon',
          ], [
              'key'   => 'contact.message',
              'name'  => 'Contact Messages',
              'route' =>'contact.admin.index',
              'sort'  => 1,
              'icon-class' => '',
          ], [
              'key'   => 'contact.address',
              'name'  => 'Manage Address',
              'route' =>'contact.admin.index',
              'sort'  => 2,
              'icon-class' => '',
          ]
      ];
      

      But on admin panel only Contact menu has been created no sub menu is showing.

      Please Help..

      Thanking You in advance.

      posted in General Discussion
      H
      himanshu-kmr
    • RE: Creating Custom Packages Error

      @devansh-webkul said in Creating Custom Packages Error:

      e composer.json f

      Thank You @devansh-webkul , The problem has been solved by running php artisan optimize

      posted in General Discussion
      H
      himanshu-kmr
    • RE: Bagisto New Paymant Method

      15cbd803-1068-4744-a43e-10910a56dd2c-image.png

      This is my file and folder structure....

      posted in General Discussion
      H
      himanshu-kmr
    • RE: Bagisto New Paymant Method

      @devansh-webkul said in Bagisto New Paymant Method:

      lease check the path names and namespace also.

      Sorry the path is packages\Webkul\Ccavenue\src\Config\Syatem.php

      I have checked the namespace and its correct

      I am worried about the translation. can you give me some reference?

      Thank a lot.

      posted in General Discussion
      H
      himanshu-kmr
    • Creating Custom Packages Error

      Hello Bagisto Team,

      I am creating a custom contact package by looking at the https://devdocs.bagisto.com/1.x/packages/create_package.html

      The package has been created by the php artisan package:make Ebest/Contact

      After the I have set provider on config/app.php (Ebest\Contact\Providers\ContactServiceProvider::class,)

      On composer.json
      "psr-4": {
      "Ebest\Contact\": "packages/Ebest/Contact/src"
      }

      After dumping the autoload and updating the composer

      I am getting this error

      Route [contact.admin.index] not defined. (View: D:\xampp\htdocs\bagisto\packages\Webkul\Admin\src\Resources\views\layouts\master.blade.php) (View: D:\xampp\htdocs\bagisto\packages\Webkul\Admin\src\Resources\views\layouts\master.blade.php)

      Please Help...

      Thanks in advance.

      posted in General Discussion
      H
      himanshu-kmr
    • RE: Bagisto New Paymant Method

      Thank You @devansh-webkul, Again I tries and found that I haven't created Class File so that was not working but for now in admin panel in place of label admin::app.admin.system.paypal-smart-button is showing.

      Below are the code:

      packages\Webkul\Ccavenue\src\Confif\Syatem.php

      <?php
      return [
      [
      'key' => 'sales.paymentmethods.ccavenue',
      'name' => 'admin::app.admin.system.ccavenue',
      'sort' => 3,
      'fields' => [
      [
      'name' => 'title',
      'title' => 'admin::app.admin.system.title',
      'type' => 'text',
      'validation' => 'required',
      'channel_based' => false,
      'locale_based' => true,
      ], [
      'name' => 'description',
      'title' => 'admin::app.admin.system.description',
      'type' => 'textarea',
      'channel_based' => false,
      'locale_based' => true,
      ], [
      'name' => 'business_account',
      'title' => 'admin::app.admin.system.business-account',
      'type' => 'select',
      'type' => 'text',
      'validation' => 'required',
      ], [
      'name' => 'active',
      'title' => 'admin::app.admin.system.status',
      'type' => 'boolean',
      'validation' => 'required',
      'channel_based' => false,
      'locale_based' => true
      ], [
      'name' => 'sandbox',
      'title' => 'admin::app.admin.system.sandbox',
      'type' => 'boolean',
      'validation' => 'required',
      'channel_based' => false,
      'locale_based' => true,
      ], [
      'name' => 'sort',
      'title' => 'admin::app.admin.system.sort_order',
      'type' => 'select',
      'options' => [
      [
      'title' => '1',
      'value' => 1,
      ], [
      'title' => '2',
      'value' => 2,
      ], [
      'title' => '3',
      'value' => 3,
      ], [
      'title' => '4',
      'value' => 4,
      ],
      ],
      ]
      ]
      ]
      ];

      packages\Webkul\Ccavenue\src\Config\paymentmethods.php

      <?php
      return [
      'ccavenue' => [
      'code' => 'ccavenue',
      'title' => 'Ccavenue',
      'description' => 'Ccavenue',
      'class' => 'Webkul\Ccavenue\Payment\Ccavenue',
      'sandbox' => true,
      'active' => true,
      'sort' => 4,
      ]
      ];

      Output is:-

      27de59b1-6ff0-4591-9f59-9646c1456fc7-image.png

      Please Help me..

      Thank You in advance.

      posted in General Discussion
      H
      himanshu-kmr
    • Bagisto New Paymant Method

      Hi,
      I am trying to integrate a new payment method "CCAvenue" from looking into the documentation (https://bagisto.com/en/how-to-create-custom-payment-method-in-bagisto/) But nor on admin panel not on website that is showing.

      posted in General Discussion
      H
      himanshu-kmr