So I've been playing around with adding a filter to EC Charge, specifically country of buyer. This is because I want to have a different shipping cost depending on the location of the buyer. Unfortunately I am a bit stuck. I have two questions.

1. How do I access the current default country from inside my implementation of ec_country_filter_process when the default country is loaded?

2. How do I access the selected country when the form is submitted?

I've done some testing, and I don't see a point when these filters are used, except on the initial load of the checkout form and I don't see the address information being passed along at all. It seems to me that this information should be passed along in the object, but it doesn't seem to be.

Am I missing something? When will these filters be processed?

Dave

Comments

gordon’s picture

I have been doing some work on this, but ATM my D7 work is taking precedence. I am in the process of rewriting the UI for ec_charge and it will have an address filter in it for the next rc.

EPO’s picture

It would be nice if you give countries an own tablespace rather than bury them in ec_store.localization.inc. This would be smart because its much easier then to add own modules based on country attributes.