This is the default magento URL:

<base URL>/magento2/multishipping/checkout/billing

Now i have a custom controller i want to call this.

<base URL>/magento2/multishipping/checkout/billing/test

where test is my controller file. if i even hit the URL directly in browser than also it is going to this

<base URL>/magento2/multishipping/checkout/billing
  • why you need magento2/multishipping/checkout/billing/test? – Amit Bera Oct 4 '18 at 13:11
  • i have custom payment method on magento2/multishipping/checkout/billing with input field and button, when user hits the button the ajax call automaatically goes to magento2/multishipping/checkout/billing so i added this route with controller. – Surjan Raghuwanshi Oct 4 '18 at 13:22

In Magento2, the urls Module are built like this:


Exemple: vendor/magento/module-multishipping/Controller/Checkout/Billing.php

The Url will be : domaine.com/multishipping/checkout/billing

Now you want to add test at the end of url, domaine.com/multishipping/checkout/billing/test ans it is not possible.

You can create your controller like this : Controller/Checkoutbilling/test.php and you call it like this : domaine.com/multishipping/checkoutbilling/test.

  • if i put my controller file inside controller/checkout/billing/test.php? – Surjan Raghuwanshi Oct 5 '18 at 10:14
  • Nop, You should not have a sub-folder controller – PЯINCƏ Oct 5 '18 at 10:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.