431 users online

Correios - Shipping Rate Method for Brazil - Nop 2.0/2.5.

1 2 3 Next
Posted: 6 months ago Quote
Hello,

I developed for the community, a Shipping Rate Method for Brazil, using the Correios service, for NopCommerce 2.0/2.4.

All services provided by the Correios for rate calculation are available, and can be chosen from the Configuration.

Just install and configure!

It’s not required to provide a company code and a password, to rate with no-contract services.

The plugin can calculate rate for carts that exceeds max dimension and/or weight, by splitting into more packages, BUT, both user and admin will not be notified that more packaged are required!
User will just see the total price for them to pay.

The final rate adds the Additional Shipping Charge for each product, if provided, and an additional fixed charge that can be configured in the plugin configuration.

Please, contact me for bugs, questions or suggestions.

(Hope the NopCommerce team adds this to the Download section :))

Thanks
---------------------------------------------------------------------------------------------------------------
Olá,

Eu desenvolvi para a comunidade um calculador de frete, utilizando o serviço dos Correios, para o NopCommerce 2.0/2.5

Todos os serviços fornecidos pelos Correios para calculo estão disponíveis e podem ser habilitados pela Configuração.

Basta instalar e configurar!

Não é necessário fornecer o Código da Empresa e a Senha, para cáculo de frete dos serviços sem contrato.

O plugin consegue calcular o frete para carrinhos que excedem os limites de dimensão e/ou peso, dividindo em mais pacotes, porém, o usuário e o administrador não serão notificados que mais pacotes são necessários!

O usuário somente vai ver o valor total pelos pacotes, para poder pagar.

O valor final do frete, adiciona o campo "Additional Shipping Charge" do Nop, para cada produto, se fornecido e, um campo adicional fixo de custo que pode ser ajustado na configuração do plugin.

Por favor, entrem em contato em caso de bugs, erros, duvidas ou sugestões.

Obrigado!

**Download
(Version 1.2):
Implementado o ShipmentTracker apenas para montar a URL que leva ao rastreamento dos Correios. O resgate automáticos dos eventos ainda não foi implementado.

Faça o Download na página de Extensions do NopCommerce, versão 2.5.

(Version 1.1.1):
Faça o Download na pagina de Extensions do NopCommerce: http://www.nopcommerce.com/extensions/3/shipping-modules.aspx
Existem duas versões, para Nop do 2.0 até 2.3 e o 2.4.

**Changelog
1.1.1:
- Alterados os valores de medidas máximos para pacotes, conforme publicação dos Correios, que passou a valer desde o dia 01/01/2012
1.1:
- Cep de Origem integrado ao NopCommerce. A configuração deve ser feita no NopCommerce agora (Sugestão de mksramos)
- Adicionada mensagem de sucesso ao alterar as configurações do Plugin (Sugestão de mksramos)
- Adicionada configuração de 'Dias uteis adicionais', para especificar um valor a ser incrementado no prazo retornado pelos Correios
- Melhoria nos Logs para verificação de erros.
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 6 months ago Quote
Antes de tudo,

Obrigado pela contribuição.

Estou testando seu add-on. Já instalei e ativei. Porém quando clico em Configurar ele apresenta o seguinte erro:

The controller for path '/Admin/Shipping/ConfigureProvider' was not found or does not implement IController.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The controller for path '/Admin/Shipping/ConfigureProvider' was not found or does not implement IController.

Source Error:


Line 14:     if (!String.IsNullOrEmpty(Model.ConfigurationActionName))
Line 15:     {
Line 16:         @Html.Action(Model.ConfigurationActionName, Model.ConfigurationControllerName, Model.ConfigurationRouteValues);
Line 17:     }
Line 18:     else

Source File: c:\Users\mramos2x\Documents\E-commerce\Presentation\Nop.Web\Administration\Views\Shipping\ConfigureProvider.cshtml    Line: 16

Stack Trace:


[HttpException (0x80004005): The controller for path '/Admin/Shipping/ConfigureProvider' was not found or does not implement IController.]
   System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +325186
   System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +74
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +196
   System.Web.Mvc.<>c__DisplayClass6.<BeginProcessRequest>b__2() +49
   System.Web.Mvc.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a() +13
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Func`1 func) +124
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +98
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +50
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +16
   System.Web.Mvc.<>c__DisplayClass7.<BeginProcessRequest>b__6() +29
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +38

[HttpException (0x80004005): Execution of the child request failed. Please examine the InnerException for more information.]
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +110
   System.Web.Mvc.ServerExecuteHttpHandlerAsyncWrapper.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +98
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +1508
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +77
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +28
   System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +22
   System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +481
   System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) +88
   ASP._Page_Administration_Views_Shipping_ConfigureProvider_cshtml.Execute() in c:\Users\mramos2x\Documents\E-commerce\Presentation\Nop.Web\Administration\Views\Shipping\ConfigureProvider.cshtml:16
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +81
   System.Web.WebPages.StartPage.RunPage() +19
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +65
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76
   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +220
   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +303
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8889181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184


Abs
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 6 months ago Quote
Olá,

Qual a versão do Nop que você está utilizando?

Abs!
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 6 months ago Quote
2.2 a última

Quando eu faço o calculo, ele dá erro que o cep nao está correto ou não foi informado. Mas está configurado corretamente. Se precisar de mais detalhes me avise.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 6 months ago Quote
Estive vendo e esse problema do Configure é uma coisa do Nop. Plugins que não são instalados juntos com o Nop, tem esse problema. Deve estar resolvido na versão 2.3, mas vou ver o que posso fazer.

Sem o Configure funcionar, talvez o Plugin não tenha sido instalado, ai não vai funcionar o calculo.

Estou vendo agora o que posso fazer e já te retorno.

Abs!
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 6 months ago Quote
Você tem acesso ao servidor, ou está utilizando uma hospedagem compartilhada?

Para resolver precisa apagar o Temporary do ASP.net, mas você não vai conseguir fazer isso em uma hospedagem compartilhada.

A forma mais fácil é fazer outra instalação do Nop. Coloque o Plugin na pasta de Plugins, envie tudo e instale.

Se você tiver acesso ao servidor, apague tudo dentro de:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
e
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 6 months ago Quote
Excelente.

Ainda estou customizando, então está na minha máquina. Eu limpei a pasta e agora funcionou.
Vou deixar uma sugestão, na verdade 2.

Quando clicamos em salvar nas configurações seria interessante que mostrasse uma mensagem tipo "configurações salvas com sucesso". Como o site inteiro funciona assim, parece que não salvou ou não funcionou.

O sitema já existe uma opcão para colocar o cep de origem. Poderia utiliza-lo, pois agora ele fica sem utilizadade. E se vamos extender alguma coisa, precisamos procurar em dois lugares.

Abs
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 6 months ago Quote
Agradeço as sugestões!

Quanto a mensagem de sucesso, se você ver, os Plugins não mostram a mensagem quando a configuração deles é salva. O Nop não definiu um padrão para isso, então tem de ser implementado manualmente. Vou colocar.

O CEP default, havia me esquecido dele. Farei o sistema colocar o do Nop como default no Plugin, mas ainda vou deixar para ser configurado individualmente.

Como um amigo pediu, estou inserindo também uma configuração para adicionar mais dias ao prazo retornado pelos Correios (afim de evitar problemas com clientes).

Abs!
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 6 months ago Quote
Adicionei suas sugestões ao Plugin, só instalar e repetir o procedimento de excluir tudo nas ASP.net Temporary.

Abs!
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 4 months ago Quote
SergioLuiz

Primeiro parabéns pelo plugin, é ótimo! Pode dar um breve descritivo de como configurá-lo?

Grato
André
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
1 2 3 Next