File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/Umbraco.Cms.Integrations.Commerce.Shopify Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
-
1
+ using System ;
2
+
2
3
namespace Umbraco . Cms . Integrations . Commerce . Shopify
3
4
{
4
5
public static class Constants
@@ -15,9 +16,12 @@ public static class Constants
15
16
16
17
public static class RenderingComponent
17
18
{
19
+ public const string DefaultViewPath = AppPluginFolderPath + "/Render/Products.cshtml" ;
20
+
18
21
public const string DefaultV8ViewPath = AppPluginFolderPath + "/RenderV8/Products.cshtml" ;
19
22
20
- public const string DefaultV9ViewPath = AppPluginFolderPath + "/Render/Products.cshtml" ;
23
+ [ Obsolete ( "Use DefaultViewPath instead. This will be removed in a future version." ) ]
24
+ public const string DefaultV9ViewPath = DefaultViewPath ;
21
25
}
22
26
23
27
public static class Configuration
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public static class ShopifyHtmlExtensions
19
19
#if NETCOREAPP
20
20
public static IHtmlContent RenderShopifyProductsList ( this IHtmlHelper < dynamic > htmlHelper , List < ProductViewModel > vm , string renderingViewPath = "" )
21
21
{
22
- return htmlHelper . Partial ( string . IsNullOrEmpty ( renderingViewPath ) ? Constants . RenderingComponent . DefaultV9ViewPath : renderingViewPath , vm ) ;
22
+ return htmlHelper . Partial ( string . IsNullOrEmpty ( renderingViewPath ) ? Constants . RenderingComponent . DefaultViewPath : renderingViewPath , vm ) ;
23
23
}
24
24
#else
25
25
public static IHtmlString RenderShopifyProductsList ( this HtmlHelper htmlHelper , List < ProductViewModel > vm , string renderingViewPath = "" )
You can’t perform that action at this time.
0 commit comments