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+
23namespace 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
Original file line number Diff line number Diff 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 = "" )
You can’t perform that action at this time.
0 commit comments