Phoenix Theme released for nopCommerce 4.40 by nopCypher

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 anno tempo fa
@Andrei : Having same error with default clean theme
1 anno tempo fa
It works like a charm in the default theme.
In 4.60 invoking of components has changed, now they are invoked by type and not by name. See it in the core view and in PayPal plugin. But your theme still uses a name (@await Component.InvokeAsync("Logo")),  as you can see in the stack trace above, this leads to errors.
1 anno tempo fa
I made 4 changes where we're awaiting the logo call.
3 changes to wherever we called LogoViewComponent, I set the namespace.

Then this final change fixed it in the _header.cshtml within Themes.Phoenix.Shared

<div class="px-header-mobile-logo">
    <div class="px-logo-menuicon-mobile">
        <div class="header-logo">
            @*@await Component.InvokeAsync("Logo")*@
            @await Component.InvokeAsync(typeof(Nop.Web.Components.LogoViewComponent))
        </div>
    </div>
</div>
1 anno tempo fa
Thanks Romanov and Tekkens for the explain issue and share solution.
We used Typeof in theme but will add namespace Nop.Web.Components.LogoViewComponent
1 anno tempo fa
Thanks for all of your help!

Onto the next issue.

I added in the theme plugin, so I can change colors etc.. with the Phoenix theme. I get 15 errors during compile having to do with the ConfiguarationModel:  Did I miss adding in something?

Severity  Code  Description  Project  File  Line  Suppression State
Error  CS0246  The type or namespace name 'ConfigurationModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Areas_Admin_Views_Phoenix_Configure_cshtml.g.cs  75  Active
Error  CS0246  The type or namespace name 'ConfigurationModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Areas_Admin_Views_Phoenix_Configure_cshtml.g.cs  445  Active
Error  CS0246  The type or namespace name 'ConfigurationModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Areas_Admin_Views_Phoenix__CreateOrUpdate_Color_cshtml.g.cs  75  Active
Error  CS0246  The type or namespace name 'ConfigurationModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Areas_Admin_Views_Phoenix__CreateOrUpdate_Color_cshtml.g.cs  402  Active
Error  CS0246  The type or namespace name 'ConfigurationModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Areas_Admin_Views_Phoenix__CreateOrUpdate_Info_cshtml.g.cs  75  Active
Error  CS0246  The type or namespace name 'ConfigurationModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Areas_Admin_Views_Phoenix__CreateOrUpdate_Info_cshtml.g.cs  1752  Active
Error  CS0246  The type or namespace name 'PhoenixThemeSettings' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Themes_Phoenix_Views_Shared_Components_Logo_Default_cshtml.g.cs  182  Active
Error  CS0246  The type or namespace name 'PhoenixThemeSettings' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Themes_Phoenix_Views_Shared_Components_SocialButtons_Default_cshtml.g.cs  320  Active
Error  CS0246  The type or namespace name 'PhoenixBestSellerImageModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Views_Shared_Components_PhoenixBestSellerImageItem_Default_cshtml.g.cs  68  Active
Error  CS0246  The type or namespace name 'PhoenixBestSellerImageModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Views_Shared_Components_PhoenixBestSellerImageItem_Default_cshtml.g.cs  109  Active
Error  CS0246  The type or namespace name 'PhoenixModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Views_Shared_Components_PhoenixHomepageText_Default_cshtml.g.cs  68  Active
Error  CS0246  The type or namespace name 'PhoenixModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Views_Shared_Components_PhoenixHomepageText_Default_cshtml.g.cs  123  Active
Error  CS0246  The type or namespace name 'PhoenixThemeSettings' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Views_Shared_Components_PhoenixThemeCss_Default_cshtml.g.cs  111  Active
Error  CS0246  The type or namespace name 'PhoenixHeaderTextModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Views_Shared_Components_ThemeHeaderText_Default_cshtml.g.cs  68  Active
Error  CS0246  The type or namespace name 'PhoenixHeaderTextModel' could not be found (are you missing a using directive or an assembly reference?)  Nop.Web  D:\source\repos\NOP4.6\src\Presentation\Nop.Web\Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Themes_Phoenix_plugin_Cypher_Phoenix_Views_Shared_Components_ThemeHeaderText_Default_cshtml.g.cs  162  Active
1 anno tempo fa
Is this a confirmed issue?  

Thank you!
1 anno tempo fa
Any idea on this?

Thanks
1 anno tempo fa
Hi Tekkens,
We are not facing that issue.
Let's have remote session. I'm sending you direct message.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.