I've just installed the TC 3 package in my Umbraco 7.2.1 installation and after browsing the config I get the following error when clicking on 'Gift Cards'.
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the
compilation of a resource required to service this request. Please
review the following specific error details and modify your source code
appropriately.
Compiler Error Message: CS0104: 'Constants' is an
ambiguous reference between 'ClientDependency.Core.Constants' and
'TeaCommerce.Umbraco.Application.Constants'
Source Error:
Line 58: <ItemTemplate>
Line 59: <tr>
Line 60: <td><asp:HyperLink runat="server" Text='<%# Eval( "Code" ) %>' NavigateUrl='<%# WebUtils.GetPageUrl( Constants.Pages.EditGiftCard, false ) + "?storeId=" + StoreId + "&id=" + Eval("Id") %>' /></td>
Line 61: <td><%# ((decimal)Eval( "OriginalAmount" )).ToString("0.####") %></td>
Line 62: <td><%# ((decimal)Eval( "UsedAmount" )).ToString("0.####") %></td>
Tea Commerce 3 and Umbraco 7.2.1 Gift Cards error
I've just installed the TC 3 package in my Umbraco 7.2.1 installation and after browsing the config I get the following error when clicking on 'Gift Cards'.
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.Compiler Error Message: CS0104: 'Constants' is an ambiguous reference between 'ClientDependency.Core.Constants' and 'TeaCommerce.Umbraco.Application.Constants'
Source Error:
Line 58: <ItemTemplate> Line 59: <tr> Line 60: <td><asp:HyperLink runat="server" Text='<%# Eval( "Code" ) %>' NavigateUrl='<%# WebUtils.GetPageUrl( Constants.Pages.EditGiftCard, false ) + "?storeId=" + StoreId + "&id=" + Eval("Id") %>' /></td> Line 61: <td><%# ((decimal)Eval( "OriginalAmount" )).ToString("0.####") %></td> Line 62: <td><%# ((decimal)Eval( "UsedAmount" )).ToString("0.####") %></td>
Source File: d:\Websites\MySite\Umbraco.Site\App_Plugins\TeaCommerce\Views\GiftCards\GiftCardOverview.aspx Line: 60
Hi Matt
We have had this error reported and will fix it ASAP so Tea Commerce works with Umbraco 7.2
Kind regards
Anders
Cheers. Matt
I almost raised this again as it happens when you try to view orders too.
For now I've just qualified Constants with TeaCommerce.Umbraco.Application.Constants and it works.
Regards, Matt
Fixed in 3.0.1 - https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco/issues/31
Kind regards
Anders
is working on a reply...