In my Magento store, there are multiple shipping options, some are for international shipping and some are for domestic. I am trying to hide the international options if the country is UK and visa versa. i can do that pretty easily apart from i need to find the variable name that the country is stored in and what .php file that's located in so i can test that as a condition.

i have looked in the freeshipping.php file in /public_html/module_offline_shipping/model/carrier/ and it seems to be pulling something (not super well versed in PHP) from AddressFactory.php, which is only returning an array. if the country is in this array, what is the element index.

i could use an extension, but i am trying to do this with no cost to my employer.


Your Answer

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

Browse other questions tagged or ask your own question.