• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Create custom shipment

Modules
2
3
1.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    jonathantyar last edited by 27 Jun 2019, 14:28

    I try to create custom shipment by creating a package and try to insert the custom shipment. but there are no result. my packages have been discovered by laravel but i cant add my shiping method in admin dashboard, pls help

    here's my package dir
    Capture.PNG

    my carriers which extends from abstract carriers in bagisto
    Capture1.PNG

    my config inside package folder
    Capture2.PNG

    and my services provider
    capture3.PNG

    please help, five me guide. thank you

    1 Reply Last reply Reply Quote 0
    • P
      prateek-webkul last edited by 27 Jun 2019, 15:20

      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
      1 Reply Last reply Reply Quote 1
      • J
        jonathantyar last edited by 27 Jun 2019, 17:52

        thank you :), now i can see it on admin panel.

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post