Upgrading theme

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hello People,
I am trying to update x20(https://www.nopcommerce.com/p/1844/theme-x-responsive.aspx) theme (which supports 3.50) to 3.80 I am trying to edit its source code but its throwing a compilation error at _root.cshtml ( var roles = WorkContext.CurrentCustomer.CustomerRoles.Where(x => x.Active && x.Name == "Administrators");). How do I fix this or is there any other solution to run old themes in 3.80 version.
7 years ago
kshitij170892 wrote:
Hello People,
I am trying to update x20(https://www.nopcommerce.com/p/1844/theme-x-responsive.aspx) theme (which supports 3.50) to 3.80 I am trying to edit its source code but its throwing a compilation error at _root.cshtml ( var roles = WorkContext.CurrentCustomer.CustomerRoles.Where(x => x.Active && x.Name == "Administrators");). How do I fix this or is there any other solution to run old themes in 3.80 version.

In the link that youu provided it says that the theme only supports v3.50. Try contacting the developer for assistance
7 years ago
So this means there is no other way to update the existing theme for nopcommerce3.80? thanks
7 years ago
kshitij170892 wrote:
So this means there is no other way to update the existing theme for nopcommerce3.80? thanks

Hi,
No, you may do update of that theme, since it do not contain any plugin. But some methods has been change at nopCommerce between versions, so you will need to change some methods to make it working with 3.80
7 years ago
https://postimg.org/image/wtyouei7n/

This is the first error I got while compiling.
After that what I did was copied the ~\Presentation\Nop.Web\Themes\StrivingBlueTheme \Views\web.config file  to  ~\Presentation\Nop.Web\Themes\X20\Views\web.config file.
And then I got this second error

https://postimg.org/image/yrzza5ein/

and now comparing the methods of both the source code I got stuck cause X20 has whole lots of codes where in default or striving blue theme it has mainly css or plug-in that work for nopcommerce 3.80. So this roles code is not accepted by nopcommerce 3.80. Now how to fix this?
I hope we can find out the way together as I have messaged the developer of the theme too but no reply yet.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.