Close

theme - error while changing files

shayt
11 years ago
#1831 Quote
Avatar
  • 46
Hi,

i want to change some CSHTML files,
so i copied them to my theme folder,
but i am getting errors when i try to change them.

the files i am trying to change -
_ProductReviews.cshtml
_ProductTabs.cshtml

and my theme name is a custom one.

the errors are -
_ProductReviews.cshtml :
Compilation Error, Compiler Error Message: CS0103: The name 'model' does not exist in the current context
line 5 : @model Nop.Web.Models.Catalog.ProductReviewsModel

_ProductTabs.cshtml :
Compilation Error, Compiler Error Message: CS0103: The name 'T' does not exist in the current context
line 38 : Line 38:     var couldNotLoadTabErrorMessage = T("SevenSpikes.NopQuickTabs.Client.Tabs.CouldNotLoadTabErrorMessage").ToString();


the problem is not in my changes, because the errors appears also if i don't change anything (just the files to the theme folder)



the folder i tried to put them is -
Plugins\SevenSpikes.Nop.Plugins.NopQuickTabs\Themes\BBooksTheme\Views\ProductTab


p.s. i already downloaded the last version of QuickTabs, and replaced the files

Thanks,
Shay
IvanStoyanov
11 years ago
#1833 Quote
Avatar
  • Moderator
  • 269
shayt wrote:
Hi,

i want to change some CSHTML files,
so i copied them to my theme folder,
but i am getting errors when i try to change them.

the files i am trying to change -
_ProductReviews.cshtml
_ProductTabs.cshtml

and my theme name is a custom one.

the errors are -
_ProductReviews.cshtml :
Compilation Error, Compiler Error Message: CS0103: The name 'model' does not exist in the current context
line 5 : @model Nop.Web.Models.Catalog.ProductReviewsModel

_ProductTabs.cshtml :
Compilation Error, Compiler Error Message: CS0103: The name 'T' does not exist in the current context
line 38 : Line 38:     var couldNotLoadTabErrorMessage = T("SevenSpikes.NopQuickTabs.Client.Tabs.CouldNotLoadTabErrorMessage").ToString();


the problem is not in my changes, because the errors appears also if i don't change anything (just the files to the theme folder)



the folder i tried to put them is -
Plugins\SevenSpikes.Nop.Plugins.NopQuickTabs\Themes\BBooksTheme\Views\ProductTab


p.s. i already downloaded the last version of QuickTabs, and replaced the files

Thanks,
Shay


Hi Shay,

You need to copy the Web.config file from Plugins\SevenSpikes.Nop.Plugins.NopQuickTabs\Views\ and paste it to Plugins\SevenSpikes.Nop.Plugins.NopQuickTabs\Themes\BBooksTheme\Views\ folder.

Ivan Stoyanov
Thank you for choosing our products! Your feedback is important to us!
shayt
11 years ago
#1834 Quote
Avatar
  • 46
working great.

Thanks