This module enables you to get and show purolator shipping cost estimates on checkout of Drupal Commerce orders. The estimates are based on the location of shipper, ship to location, physical weight of the order and type of packaging.
Here is Sandbox link:
http://drupal.org/sandbox/cog-axis/1800756
Dependencies:
Physical (physical fields)
Commerce shipping (including ‘Shipping UI’)
Commerce
Configurations:
To use this module, the products on your site must have a weight field. The module ‘Physical’; mentioned above provides physical fields. Apply for Purolator API credentials at Purolator.com. To add the weight field to your product, follow these steps.
- Go to Home » Administration » Store » Products.
- Click the ‘product types’ tabs of the overlay.
- Click the ‘manage fields’ link and add a field with machine name ‘field_weight’ and use the field type ‘Physical weight’. The widget for this field would be ’Weight textfield’.
- Save the field and then the product type.
- Install and enable the Purolator module and the dependency modules. You would find the Purolator in ‘commerce (shipping)’ section of modules list.
- After installation you would see message on checkout page that will provide you direct link to configure the Purolator. Otherwise, you may find configurations form in this location ‘Store » Configuration » Shipping’ and click ‘edit’ in front of Purolator.
- To set up destinations for you shipments using Purolator, click the link provided on this form. Please provide a Location for Canada, a location for US and a location for any other place. Examples are provided at bottom of the document.
- Download wsdl file from Purolator when you register your self on purolator. Then add the wsdl in libraries folder with name "commerce_purolator_shipping" and in this folder copy wsdl file like this commerce_purolator_shipping/dev/* and commerce_purolator_shipping/prod/*.
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/cog-axis/1800756.git commerce_purolator_shipping
cd commerce_purolator_shipping
I have joined Code Review Group and I have reviewed following modules:
http://drupal.org/node/1866938#comment-6855780 (Writer theme)
http://drupal.org/node/1856652#comment-6856606 (Commerce Australia Post)
http://drupal.org/node/1854200#comment-6856660 (Inspira Theme)
Thanks!
Comments
Comment #1
klausiWelcome,
please get a review bonus first. Then try to fix issues raised by automated review tools: http://ventral.org/pareview/httpgitdrupalorgsandboxcog-axis1800756git
Comment #1.0
cog-axis commentedAdding git command in description.
Comment #1.1
cog-axis commentedAfter reviewing Writer theme updating the description.
Comment #1.2
cog-axis commentedRemoving Delete Batch Taxonomy module link for reviewing that module.
Comment #1.3
cog-axis commentedUpdating description for adding Purolator link.
Comment #1.4
cog-axis commentedUpdating Commerce Australia module link.
Comment #1.5
cog-axis commentedUpdating description for adding Inspira theme review.
Comment #2
mitrpaka commentedManual review:
1. Development still in master branch - Please move sources to 7.x-1.x branch (See http://drupal.org/node/1127732 for further details)
2. There is big punch of issue regarding line spaces, indentation and comments raised by automated review tool (See comment #1) - Please take them into account as well (and please configure your IDE to remove trailing spaces etc automatically)
3. README.txt missing - Please add
4. According to Commerce Development Standards, commerce_purolator_shipping.admin.inc should be located under /includes -folder (Please see http://www.drupalcommerce.org/developer-guide/development-standards)
5. There is number of variables used but no hook_uninstall defined to remove module specific variables (Please use variable_del() in hook_uninstall() to remove variables or use delete sql query).
6. commerce_purolator_shipping.module includes number of functions from Purolator Public Web Services Client Creation Code
- Have you checked that Purolator Public Web Services can be distributed part of module? Does GPL license apply for them as well?
- Perhaps you could move Purolator Public Web Services functions to a file of its own and add proper disclaimers and links to original content of functions?
7. Is inclusion of wsdl files needed? Aren't those available through web all times?
Finally, if you have reviewed up to three modules, please add PAReview: review bonus issue tag (after corrections done) along with PAReview: Commerce issue tag.
Comment #3
cog-axis commentedHi Mitrpaka,
Thank you for your feed back. I'll be working on it this weekend.
Thanks!
Comment #4
cog-axis commentedAdding commerce tag...
Comment #5
jamesquinton commentedHello,
I have installed the module and had a quick initial look. Other than the points raised above by Mitrpaka, I have a few suggestions below.
Comment #6
cog-axis commentedHi James,
Thanks for your suggestion. I will look into it.
Comment #6.0
cog-axis commentedRemoving space for Inspira theme link
Comment #7
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #7.0
klausiUpdating git command mentioned in description.
Comment #8
cog-axis commentedComment #9
cog-axis commentedHi,
I have fixed the issues and also check it on http://pareview.sh/pareview/httpgitdrupalorgsandboxcog-axis1800756git. Please let me know if I need to work on anything else. If all well then please move it to main modules list.
Thanks.
--
Kamran Zafar CEO/Founder @ Cognitive Axis
http://www.cognitiveaxis.com/
Comment #10
cog-axis commentedComment #11
cog-axis commentedComment #12
klausiI guess your application needs review? See the workflow: https://www.drupal.org/node/532400
Comment #13
PA robot commentedProject 1: https://www.drupal.org/node/1867612
Project 2: https://www.drupal.org/node/2365051
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 #14
heddnAutomated Review
n/a
Manual Review
form_set_error('name', $response->ResponseInformation->Errors->Error->Description);Check if there is anything else like that in the code.The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #15
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.