Navigation

    Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. prateek-webkul
    3. Best
    P
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by prateek-webkul

    • RE: Create custom shipment

      Hello jonathantyar,

      You need to create system.php file first, have a look at package 'Shipping->src->Config->system.php' file which will help you in easy understanding

      and after that, within your provider's register method, merge your carriers and system file like below stated

         $this->mergeConfigFrom(
              dirname(__DIR__) . '/Config/carriers.php', 'carriers'
          );
      
          $this->mergeConfigFrom(
              dirname(__DIR__) . '/Config/system.php', 'core'
          );
      

      At last, run the below commands

      1. composer dump-autoload
      2. php artisan config:cache
      posted in Modules
      P
      prateek-webkul
    • RE: How to set email title?

      Hello,
      You have to change the subject translation from app.php file of the particular mail type like,

      ->subject(trans('shop::app.mail.order.cancel.subject'))

      1 - here you have to change the translation from the app.php for the shop::app.mail.order.cancel.subject of that particular mail type.

      posted in General Discussion
      P
      prateek-webkul
    • RE: How to use newly created attributes in configurable products

      hello @valpuia,

      As you have created attribute UKSize, then you need to add the attribute('UKSize) in the attribute family, and then try to create configurable product with same attribute family in which you added your attribute.

      Thanks

      posted in General Discussion
      P
      prateek-webkul
    • RE: Facing the issue when try to login the admin panel

      Hello Hassi,

      It may be due to your php intl extension is not enabled.

      Refer https://medium.com/@nhancv/fatal-error-class-numberformatter-not-found-php-intl-extension-mac-osx-xampp-php-v5-6-3d59d7bc2e0d

      If still you found any issue, feel free to write us.

      Thanks

      posted in Bug Report
      P
      prateek-webkul
    • RE: How to override or remove the items in menu for admin interface

      hello @khanhlp,

      the way you overrided the menu is not the correct way, and any update will remove your code. You can add below code in your package service provider to remove customer menu from admin interface.

          $config = \Config::get('menu.admin');
          $getKeys = [];
      
          foreach($config as $key => $data) {
              if (strpos($config[$key]['key'], 'customers') === false) {
                  $getKeys[] = $config[$key];
              }
          };
      
          \Config::set('menu.admin', $demo); 
      

      And, can further create menu in admin panel refer (https://devdocs.bagisto.com/create_package.html#add-menu)

      Note: With the above code, you can hide the menu but it can be access through route in url.

      Thanks

      posted in Knowledge Base
      P
      prateek-webkul