This is a utility module that extends the Commerce Customer Profile and provides a simple UI allowing to limit the available countries for shipping. It simply exposes the addressfield instance settings and is to be used by store managers that are not familiar with Drupal field management UI or users that should not have access to administer customer profile types.
By default, it uses the address field attached to the billing customer profile (the one that comes by default with Commerce Customer Profile). But an admin can change the commerce customer profile type for shipping and the addressfield that is exposed for editing.
Project link : https://www.drupal.org/sandbox/mihai_brb/2308211
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/mihai_brb/2308211.git commerce_shipping_country
cd commerce_shipping_country
Manual reviews of other projects:
https://www.drupal.org/node/2408539#comment-9528557
https://www.drupal.org/node/2408663#comment-9528423
https://www.drupal.org/node/2408789#comment-9527973
Comments
Comment #1
PA robot commentedProject 1: https://www.drupal.org/node/2398043
Project 2: https://www.drupal.org/node/2398039
Project 3: https://www.drupal.org/node/2398025
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
suhel.rangnekar commentedModule installation properly done without any error and code also look good.
But need to work on below points.
1. http://pareview.sh/pareview/httpgitdrupalorgsandboxmihaibrb2308211git
The variable naming is a blocker right now
2. Need to improve README.txt file in more detail.
Follows the guidelines for in-project
documentation and the README Template
Comment #4
valentine94I think would be better to use
rather
because it's not best way for using strings values.
Comment #5
ajitsAdded the project link
Comment #6
zbombicz commentedAutomated Review
pareview.sh: variable naming, as mentioned before (https://www.drupal.org/node/2398043#comment-9466021)
Manual Review
This review uses the Project Application Review Template.
Comment #7
mihai_brb commented+ updated the readme file
+ fixed the variable naming
+ removed the helper for menu paths
+ fixed the configure path
+ removed the master branch
Comment #8
joachim commentedComment and code don't agree:
Also, missing function docs (as well as a few other functions).
Seems an odd choice of paths, given both are forms that let you change settings!
It's not usual or necessary to set variables on install. Rely on the defaults you pass to variable_get() instead.
I'm also not sure where this module actually does its work to limit the countries -- all I see is settings forms.
I also have a suggestion regarding configuration storage: you could mark the field instance itself, add a checkbox in the field admin UI, and then detect which field to work with using FieldInfo API. That would simplify the UI for the user, and also make the setting exportable through Features as part of the field instance itself.
Comment #9
mihai_brb commentedhook_install removed, some comments also updated, thanks.
It's in the submit callback of the form where the field instance is updated.
It can be done this way too. For us it was easier to have only one place to choose the bundle/address field and limit the countries. But we never used the settings form so far.
I am not sure why would someone want to export the settings form configuration. If I would want to export the selected country list I would have to export the field instance settings. Variables are only used in case someone has a custom address field other then the provided one, or a custom bundle that acts as shipping information, other than the default.
Comment #10
mihai_brb commentedComment #11
klausifixing tag
Comment #12
valentine94Looks good, thanks.
Comment #13
klausiComment #14
klausiRemoving review bonus tag, you have not done all manual reviews, you just posted the output of an automated review tool. Make sure to read through the source code of the other projects, as requested on the review bonus page.
I removed the automated reviews from the issue summary.
Comment #15
mihai_brb commentedUpdated reviewed projects, added bonus tag.
Comment #16
klausiReview of the 7.x-1.x branch (commit 6efdb96):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
But otherwise looks good to me, so ...
Thanks for your contribution, mihai_brb!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.