Bagisto Forum

    Bagisto

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

    Create custom shipment

    Modules
    2
    3
    957
    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

      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

        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

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post