ZaxxaDK Posted August 5, 2016 Share Posted August 5, 2016 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 More sharing options...
Tung at RockPOS.com Posted August 5, 2016 Share Posted August 5, 2016 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: 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now