Jump to content

Custom Shipping Carriers - identifies for frontend?


Recommended Posts

Hey,

 

i was trying some stuff with my custom shipping module, and wanted to do some JS on the shipping @ frontend (order -> step3). So iw as wondering if their is any way that you can identify your own custom shipping options/carriers? so you can target with Javascript

Link to comment
Share on other sites

Yes, you can to that this way.

I suppose, your custom carrier is a module, right?

 

1. Hook that module into the hook extraCarrier.

2. In that hook, query for your carriers and combine the list of your carrier IDS.

Pass these list to front-end.

3. At front-end, you can be easy to locate to your own carrier by mapping these IDs.

Refer to this screenshot:

0a4fa976-5b34-11e6-8807-7a152c80f23b.png

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...