The Commerce Shipping Quick Estimate Module was built to provide means for retrieving shipping estimates without having to go through the entire checkout process. The module currently implements an additional block, "Shipping Estimate Calculator", which must be enabled and placed within a region on your site.
Requirements
- Drupal Commerce
- Drupal Commerce Cart
- Drupal Commerce Shipping
Instructions
- Download the module below
- Upload it to /sites/all/modules folder
- Enable the module via the Modules page (/admin/modules)
- Enable and place the block as necessary via the Blocks page (/admin/structure/block)
Current Limitations
- This module is currently set to pull estimates from within the United States. International support has not been implemented
- No fallback for when JavaScript is disabled
Common Issues
- No shipping methods returned - Make sure you have enabled and configured a shipping method. This module relies on the Commerce Shipping Module (https://www.drupal.org/project/commerce_shipping)
Repos
- https://bitbucket.org/anttix/commerce_shipping_quick_estimate
- http://cgit.drupalcode.org/sandbox-jasonkryst-2333095/
Page
https://www.drupal.org/sandbox/jasonkryst/2333095
Git
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/jasonkryst/2333095.git commerce_shipping_quick_estimate
cd commerce_shipping_quick_estimate
Comments
Comment #1
jasonkryst commentedComment #2
jasonkryst commentedComment #3
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 #4
t-loHi Jason,
Thanks for the contribution!
It looks like you've added the maintainers git code above, the git details should be:
I'll go through the code now
Comment #5
t-loA couple of coding standards issues reported by the pareview site, but nothing major:
http://pareview.sh/pareview/httpgitdrupalorgsandboxjasonkryst2333095git
Comment #6
t-loYou need to add the "commerce_cart" module to your dependencies as you use it's function "commerce_cart_order_load":
If the cart module isn't enabled it causes a fatal error in the AJAX callback:
Comment #7
jasonkryst commentedComment #8
jasonkryst commentedUpdated the project summary for this ticket to include additional details
Comment #9
jasonkryst commentedHi T-lo,
Thank you for your input! I have updated the project info file as well as the readme file to include the additional requirements for the module to function properly. The necessary changes have been uploaded to the repos.
Thank you!
Jason Kryst
Comment #10
t-loHi Jason,
Confirmed commerce cart enabled on install and fixed that issue, thanks.
Comment #11
jasonkryst commentedT. lo,
Thank you for verifying the changes. I am going to move this into Needs Review for additional comments.
Jay
Comment #12
veso_83 commentedHi jasonkryst,
The module is pretty nice and seems to work fine; I’ve tested it manually and reviewed the code, I have only one comment in your function commerce_shipping_quick_estimate_block_view it will be better if you use maybe if/else statement because switch is primarily used for multiple choices while in your case your have just one option.
Good luck.
Comment #13
jasonkryst commentedVeso,
Thank you for your input. In regards to switching the switch to an if, that does make sense. Although, I plan on eventually expanding this module's functionality over time. When I started developing Drupal modules about three years ago, I used the Pro Drupal 7 Development book as a guide, which trained me to use switch statements within block declarations and set-up pages.
I appreciate your comments, they are very helpful!
Thank you,
Jay
Comment #14
veso_83 commentedHi jasonkryst,
You are right in this case good luck
Comment #15
jdrichmond commentedIndividual user account
Follows the guidelines for individual user accounts.
No duplication
Does not cause module duplication and fragmentation.
Master Branch
Follows the guidelines for master branch.
Licensing
Follows the licensing requirements
3rd party code
Follows the guidelines for 3rd party code.
README.txt/README.md
Follows the guidelines for in-project documentation and the README Template.
Code long/complex enough for review
Follows the guidelines for project length and complexity.
Secure code
Yes
Coding style & Drupal API usage
Nothing found that needs to be addressed before release.
Comment #16
kscheirerNon-blocking issues:
Thanks for your contribution, jasonkryst!
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.