The Commerce TNT module provides a shipping method that integrates with the TNT Shipping API.

The module adds a vertical tab to a Product Display node which allows the user to enter the Number of packages, total weight, length, width and height which is then sent to TNT when on the shipping section of the checkout which then returns a shipping price.

Project Page

http://drupal.org/sandbox/jbloomfield/1893182

Git Repository

git clone http://git.drupal.org/sandbox/jbloomfield/1893182.git commerce_tnt

The project is only available in Drupal 7 and depends on Drupal Commerce & Commerce Shipping.

The development of this module is sponsored by Bouncing Orange

PAReview Bonus

CommentFileSizeAuthor
#9 coder-results.txt1.46 KBklausi

Comments

jbloomfield’s picture

Status: Active » Needs review

Changed status to Needs Review.

jbloomfield’s picture

Status: Needs review » Postponed

Changed to postponed as I come across an issue.

jbloomfield’s picture

Status: Postponed » Needs review

Changed to needs review after fixing big issue.

npscode’s picture

Status: Needs review » Needs work

Hi jbloomfield,

Few points after a quick review:

  1. $form['#validate'][] is not required at line. 61(commerce_tnt.admin.inc) as after submitting it automatically goes to validate hook.
  2. Formatting issue please check at http://ventral.org/pareview/httpgitdrupalorgsandboxjbloomfield1893182git.
jbloomfield’s picture

Status: Needs work » Needs review

Thanks npscode for the review.

All fixed now.

klausi’s picture

We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)

jbloomfield’s picture

Did a review for Commerce Google Checkout at http://drupal.org/node/1497114#comment-7077738

jbloomfield’s picture

Issue summary: View changes

Changed git clone string in body

jbloomfield’s picture

Issue tags: +PAreview: review bonus

Adding PAReview: review bonus tag

jbloomfield’s picture

Issue summary: View changes

Added Reviews.

jbloomfield’s picture

Issue summary: View changes

Added review bonus

jbloomfield’s picture

Issue summary: View changes

Added review bonus

klausi’s picture

Status: Needs review » Needs work
Issue tags: -Commerce, -commerce shipping, -PAreview: review bonus +PAReview: Commerce
StatusFileSize
new1.46 KB

Review of the 7.x-1.x branch:

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:

  1. project page is too short, see http://drupal.org/node/997024
  2. "require 'commerce_tnt.xml.inc';": why do you globally require that file? If you do that in the module file scope it will be loaded on every single page request. You should only require it if you actually need it in a function body.
  3. commerce_tnt_commerce_shipping_service_info(): the t() calls are useless here because you already call t() on the service title elsewhere? Double translation?
  4. "'@code' => check_plain($response->ratedTransitTimeResponse->brokenRules->brokenRule->code),": double escaping - the "@" placeholder with t() will already run check_plain() for you, and double escaping is bad. Please read http://drupal.org/node/28984 again.
  5. commerce_tnt_entity_presave(): shouldn't you implement the entity type level hook_commerce_product_presave() if you are only interested in one entity type?
  6. commerce_tnt_build_rate_request(): why do you iterate over the DB $result? Just use ->fetchAll() and you don't need the loop?
  7. commerce_tnt_api_request(): why can't you use drupal_http_request() instead of cURL? Please add a comment. And if you keep cURL please add hook_requirements() like simpletest does: http://api.drupal.org/api/drupal/modules!simpletest!simpletest.install/f...

Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.

jbloomfield’s picture

Status: Needs work » Needs review

Thanks klausi for the review.

I have addressed all of your comments. Although I have kept cURL in as I was experiencing issues with TNT API and drupal_http_request().

Will review some more projects to get my bonus back

Cheers
John.

jbloomfield’s picture

Issue summary: View changes

Added review bonus

jbloomfield’s picture

Issue summary: View changes

Added a review.

jbloomfield’s picture

Issue summary: View changes

Changed git clone url

jbloomfield’s picture

Issue summary: View changes

Added review.

jbloomfield’s picture

Issue tags: +PAreview: review bonus

Adding review bonus tag again.

jbloomfield’s picture

Issue summary: View changes

Added a review

klausi’s picture

Assigned: Unassigned » misc
Status: Needs review » Reviewed & tested by the community
Issue tags: -PAreview: review bonus

Great, looks RTBC to me now. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.

Assigning to MiSc as he might have time to finally approve this.

jbloomfield’s picture

Thanks klausi.

jbloomfield’s picture

Issue summary: View changes

Added a review

jbloomfield’s picture

Issue summary: View changes

Added sponsored message

jbloomfield’s picture

Issue summary: View changes

Added a review

jbloomfield’s picture

Issue tags: +PAreview: review bonus
jthorson’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your contribution, jbloomfield!

I updated your account to let you 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 get 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.

jbloomfield’s picture

Thanks jthorson and all those that took the time to review this for me.

Will do a release once I have had a read of the docs suggested.

Cheers
John.

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Changed a previous review