How do I recompile the NopCommerceStore and Nop.Shipping.USPS projects using Microsoft Visual Studio 2010.
-
Saturday, October 22, 2011 5:36 PM
Notes:
+Instructions for modifying nopCommerce 1.80 to make USPS carrier services selectable in administration.
Description:
This modification allows store owners to select which USPS rates will be offered to customers. It works by displaying all the USPS services
in the administration configuration where the individual services can be selected (and sets default services if none are selected upon
save). Domestic and international services are displayed separately because the service IDs overlap. The service IDs of the selected
services are stored in two settings values (for domestic and international) and are used when parsing the response from USPS. If the
response's service ID is included in the setting value the rate is shown to the customer.
******UPDATE******
A "NONE" entry has been added to the domestic and international services list to allow a store owner to disable all domestic or all
international services. Selecting the "NONE" entry and any of the services will cause the services to be deselected on save.
Notes:
USPSStrings Elements should only have "ALL" uncommented as rates are filtered on response not request.
This modification is for nopCommerce 1.80. You will need Visual Studio 2010 (or Visual Web Developer 2010 Express) and the source version of
nopCommerce as you will need to recompile the NopCommerceStore and Nop.Shipping.USPS projects.Included Folders\Files:
original_versions\ (contains originals of the modified files)
modified\ (contains modified files)
screenshots\ (contains screenshots showing new USPS configuration in administration and rates before and after the modification is applied)Modification Author: mb (netcert@lycos.com)
Publish Date: 28-OCT-2010Install:
1. Replace USPSComputationMethod:
-Rename existing file: Shipping\Nop.Shipping.USPS\USPSComputationMethod.cs to Shipping\Nop.Shipping.USPS\USPSComputationMethod_original.cs
-Copy file from modified\USPSComputationMethod.cs to Shipping\Nop.Shipping.USPS\USPSComputationMethod.cs2. Replace administration USPS configuration control:
-Rename existing folder: NopCommerceStore\Administration\Shipping\USPSConfigure to NopCommerceStore\Administration\Shipping\USPSConfigure_original
-Copy folder modified\USPSConfigure to NopCommerceStore\Administration\Shipping\USPSConfigure (contains three files)
3. Recomplie (Build) the projects: Nop.Shipping.USPS and NopCommerceStore.4. You must open the website (Control+F5 in Visual Studio) and configure USPS in administration. If you select no carrier services when you save the
configuration, several default selections are made for you (Domestic: Priority, Express, and Parcel Post, and for International: Priority Mail
International, First-Class Mail International Package, and Express Mail International). If you don't save the USPS configuration, nopCommerce will
behave as if unmodified (return all rates)- Edited by Jimmie Herring Saturday, October 22, 2011 6:39 PM
- Moved by Wang HuangMicrosoft Contingent Staff, Administrator Monday, October 24, 2011 12:32 AM not Forum feedback (From:Suggestions and Feedback for the Forums)
- Moved by Ed Price - MSFTMicrosoft Employee Friday, October 28, 2011 6:21 AM Let's try this forum (From:Off-Topic Posts (Do Not Post Here))
All Replies
-
Monday, October 24, 2011 12:31 AMAdministrator
Hi Jimmie,
Thanks for your post.
We'd suggest posting your question in one of the MSDN->Visual Studio forums:
Visual Studio Developer Center > Visual Studio Forums
Located at:
http://social.msdn.microsoft.com/Forums/en-US/category/visualstudio
Hope this would be helpful
Thanks
Liam Huang
STO Application Team
Server and Tools Online Operations Team

