Gerard G. Posted June 24, 2015 Share Posted June 24, 2015 Hello, I'min a bit of a pinch, I need to display the carriers for the checkout section in a mobile app. Currently I can show all of them by requesting the following url: network.request("storeUrl/carriers/?display=full&filter[active]=[1]", "GET",carrierListener ,params) However, it's not right to show every carrier every time, when placing an order in the website, after selecting an address only the appropiate carriers are shown, because they only operate in a specific area. I want to do the same in the app, however i don't have the slightest idea on how to get this info, I don't see anything related to countries or zipcodes or anything else location wise. <prestashop> <carrier><id>1</id> <deleted>0</deleted> <is_module>0</is_module> <id_tax_rules_group xlink:href="...api/tax_rule_groups/1" notFilterable="true">1</id_tax_rules_group> <id_reference>1</id_reference> <name>Carrier name</name> <active>1</active> <is_free>1</is_free> <url/> <shipping_handling>0</shipping_handling> <shipping_external>0</shipping_external> <range_behavior>0</range_behavior> <shipping_method>1</shipping_method> <max_width>0</max_width> <max_height>0</max_height> <max_depth>0</max_depth> <max_weight>0.000000</max_weight> <grade>0</grade> <external_module_name/> <need_range>0</need_range> <position>0</position> <delay> <language id="1" xlink:href=".../api/languages/1">description</language> </delay> </carrier> </prestashop> I greatly appreciate any answer that could help point me in the right direction. Regards. 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