Skip to content

Commit 9db91e3

Browse files
Change RenderingComponent.DefaultV9ViewPath to DefaultViewPath
1 parent c4df31d commit 9db91e3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Umbraco.Cms.Integrations.Commerce.Shopify/Constants.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-

1+
using System;
2+
23
namespace Umbraco.Cms.Integrations.Commerce.Shopify
34
{
45
public static class Constants
@@ -15,9 +16,12 @@ public static class Constants
1516

1617
public static class RenderingComponent
1718
{
19+
public const string DefaultViewPath = AppPluginFolderPath + "/Render/Products.cshtml";
20+
1821
public const string DefaultV8ViewPath = AppPluginFolderPath + "/RenderV8/Products.cshtml";
1922

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;
2125
}
2226

2327
public static class Configuration

src/Umbraco.Cms.Integrations.Commerce.Shopify/Helpers/HtmlHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static class ShopifyHtmlExtensions
1919
#if NETCOREAPP
2020
public static IHtmlContent RenderShopifyProductsList(this IHtmlHelper<dynamic> htmlHelper, List<ProductViewModel> vm, string renderingViewPath = "")
2121
{
22-
return htmlHelper.Partial(string.IsNullOrEmpty(renderingViewPath) ? Constants.RenderingComponent.DefaultV9ViewPath : renderingViewPath, vm);
22+
return htmlHelper.Partial(string.IsNullOrEmpty(renderingViewPath) ? Constants.RenderingComponent.DefaultViewPath : renderingViewPath, vm);
2323
}
2424
#else
2525
public static IHtmlString RenderShopifyProductsList(this HtmlHelper htmlHelper, List<ProductViewModel> vm, string renderingViewPath = "")

0 commit comments

Comments
 (0)