Hemann55 / medusa-fulfillment-shiprocket

Shiprocket fulfillment plugin for MedusaJS
4 stars 3 forks source link

When an order of a product's n quantity's is created, in shiprocket's order details we can see Unit price is calculated by the total price of the product * Qty. Although the Net Total remains proper #2

Open RonakPanchal2 opened 5 months ago

RonakPanchal2 commented 5 months ago

Screenshot (97)

youreachedrahat commented 2 months ago

@RonakPanchal2 can you share your process of adding plugin I followed all the steps (env, config) but on admin page while adding the fulfilment option it says no options available Screenshot 2024-07-01 155241

RonakPanchal2 commented 2 months ago

@youreachedrahat Have you followed these steps https://www.npmjs.com/package/medusa-fulfillment-shiprocket After installation you need to add the plugins code in medusa-config.js file the code is mentioned in the npm docs. Every plugin you install you need to add it in the plugins array with the options the plugin requires. If you have done this part, please check your console for any errors

youreachedrahat commented 2 months ago

@RonakPanchal2 Yes I have added the plugin code in config as well as the Env variables. in Region setting I am able to add the shiprocket but when adding Shipping Options, then it says no option available.

and after installing Shiprocket plugin and using it in particular region then for that region even payment options are gone


Fulfillment Method
no options
RonakPanchal2 commented 2 months ago

@youreachedrahat IDK where are you going wrong. The integration was quiet simple. Make sure you have added the shipocket credentials properly You will have to create a an API user in shiprocket and in the .env file use that api user's email and password along with channel_id. I think you are missing this as you are able to see plugin available in the fulllfillment providers mean the plugin is installed properly but the data could not be fetched from shiprocket. Due to wrong credenials

youreachedrahat commented 2 months ago

does # at the end of env variable can be a problem (I had wrong email in the env. I fixed it now it says this)


{ message: 'Wrong number of segments', status_code: 401 }
error:   Shiprocket Courier: Failed to retrieveAll
Error: Shiprocket Courier: Failed to retrieveAll
    at E:\Medusa\tradewave\node_modules\medusa-fulfillment-shiprocket\utils\shiprocket.js:308:25
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
::1 - - [03/Jul/2024:11:51:00 +0000] "GET /admin/regions/reg_01J1W6QN0KNP37JEG9BZ9Y8PWE/fulfillment-options HTTP/1.1" 500 86 "http://localhost:7001/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
RonakPanchal2 commented 2 months ago

Try directly making the request to the shiprocket apis using the credentials you are using in you env if it works as I can see 401 error means you are not authorized to make the req

youreachedrahat commented 2 months ago

hey thanks for the help it was # at the end of password it was ignored considering it as a comment I enclosed it in quotes ' .. # ' and works fine

One last question if you have already deployed can you tell me estimate it would cost for deployment and the monthly charges (I already have domain so you can skip it )

  1. deployment on digitalOcean, AWS, Azure cost
  2. the database cost and if any montly charges