You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix GoogleMerchantCenterFeedService to make use of multiple value property extractors (#29)
* Add comments, rename variables and params
* change some wordings
* Rework GoogleMerchantCenterFeedService to actually make use of IMultipleValuePropertyExtractor
* refactor how we're adding a new xml node
* obsolete extension method and give a heads up about its namespace changing.
Copy file name to clipboardExpand all lines: src/Umbraco.Commerce.ProductFeeds.Core/Features/FeedGenerators/Implementations/GoogleMerchantCenterFeedService.cs
/// <param name="mainProduct">Main product which may have multiple variants. Some common properties can only be found in the main product, not in a variant.</param>
/// Add image nodes under the provided <item> node.
243
+
/// This method adds appropriate image nodes under the provided <item> node. It exists because Google Merchant Center treats multiple product images abnormally.
Copy file name to clipboardExpand all lines: src/Umbraco.Commerce.ProductFeeds.Core/Features/PropertyValueExtractors/Application/IMultipleValuePropertyExtractor.cs
/// Extracts the value from the property and returns them as a collection.
16
22
/// </summary>
17
-
/// <param name="content"></param>
23
+
/// <param name="content">The umbraco content that holds the property.</param>
18
24
/// <param name="propertyAlias"></param>
19
-
/// <param name="fallbackElement"></param>
25
+
/// <param name="fallbackElement">If the property alias can't be found on the main content, this method should try looking for it on the fallback content.</param>
Copy file name to clipboardExpand all lines: src/Umbraco.Commerce.ProductFeeds.Core/Features/PropertyValueExtractors/Application/IMultipleValuePropertyExtractorFactory.cs
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,17 @@ public interface IMultipleValuePropertyExtractorFactory
Copy file name to clipboardExpand all lines: src/Umbraco.Commerce.ProductFeeds.Core/Features/PropertyValueExtractors/Application/ISingleValuePropertyExtractor.cs
Copy file name to clipboardExpand all lines: src/Umbraco.Commerce.ProductFeeds.Core/Features/PropertyValueExtractors/Application/ISingleValuePropertyExtractorFactory.cs
Copy file name to clipboardExpand all lines: src/Umbraco.Commerce.ProductFeeds.Core/Features/PropertyValueExtractors/Implementations/MultipleValuePropertyExtractorFactory.cs
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,18 +12,30 @@ public MultipleValuePropertyExtractorFactory(MultipleValuePropertyExtractorColle
0 commit comments