generated from Kentico/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/xbyk k13 ecommerce product page #15
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
87e28cf
Hotfix 29.2.0
BS-jiriceska 365d954
Move product page to library.
BS-jiriceska f7d20bb
Product page synchronization.
BS-jiriceska 1d5eb5d
Add admin module.
BS-jiriceska 19bdb12
Create all required folders. Remove unused code.
BS-jiriceska 3d9a381
Update packaghe locks.
BS-jiriceska 93cf46d
Synchronize content items to content item folder.
BS-jiriceska 26c8906
Fix error message for node alias path.
BS-jiriceska 135e4dc
Add admin module for synchronization to content item folder.
BS-jiriceska 8482b5c
Move only required content items.
BS-jiriceska 336952a
Fix display name of content folder options provider.
BS-jiriceska 9a2f3ff
Update version matrix. Update usage guide for synchronizing content i…
BS-jiriceska 62521db
Fix creating folders as root children.
BS-jiriceska 9a5beb6
Content item moved to folder only when in root (on creation).
BS-jiriceska 10a0abd
Merge pull request #17 from Kentico/feat/xbyk_k13_ecommerce_contentIt…
BS-jiriceska d415720
Update using after moving of ProductPage page type.
BS-jiriceska 828271c
Allow disabling product page synchronization.
BS-jiriceska 7fd3d0c
Update documentation for product page synchronization.
BS-jiriceska e2cad06
Update docs.
BS-jiriceska 5a4dd67
Update docs. Add screenshots for module.
BS-jiriceska ea29a20
Update docs.
BS-jiriceska 93c4a38
Fix typo.
BS-jiriceska 83b81cd
Merge 'main' into 'feat/xbyk_k13_ecommerce_product_page'
BS-jiriceska File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
125 changes: 125 additions & 0 deletions
125
src/Kentico.Xperience.K13Ecommerce/Admin/InfoModels/K13EcommerceSettingsInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
using System.Data; | ||
using System.Runtime.Serialization; | ||
|
||
using CMS; | ||
using CMS.DataEngine; | ||
using CMS.Helpers; | ||
using CMS.Integration.K13Ecommerce; | ||
|
||
[assembly: RegisterObjectType(typeof(K13EcommerceSettingsInfo), K13EcommerceSettingsInfo.OBJECT_TYPE)] | ||
|
||
namespace CMS.Integration.K13Ecommerce | ||
{ | ||
/// <summary> | ||
/// Data container class for <see cref="K13EcommerceSettingsInfo"/>. | ||
/// </summary> | ||
[Serializable] | ||
public partial class K13EcommerceSettingsInfo : AbstractInfo<K13EcommerceSettingsInfo, IInfoProvider<K13EcommerceSettingsInfo>>, IInfoWithId | ||
{ | ||
/// <summary> | ||
/// Object type. | ||
/// </summary> | ||
public const string OBJECT_TYPE = "kenticok13ecommerce.settings"; | ||
|
||
|
||
/// <summary> | ||
/// Type information. | ||
/// </summary> | ||
public static readonly ObjectTypeInfo TYPEINFO = new(typeof(IInfoProvider<K13EcommerceSettingsInfo>), OBJECT_TYPE, "KenticoK13ecommerce.Settings", nameof(K13EcommerceSettingsID), null, null, null, null, null, null, null) | ||
{ | ||
TouchCacheDependencies = true | ||
}; | ||
|
||
|
||
/// <summary> | ||
/// K13 ecommerce settings ID. | ||
/// </summary> | ||
[DatabaseField] | ||
public virtual int K13EcommerceSettingsID | ||
{ | ||
get => ValidationHelper.GetInteger(GetValue(nameof(K13EcommerceSettingsID)), 0); | ||
set => SetValue(nameof(K13EcommerceSettingsID), value); | ||
} | ||
|
||
|
||
/// <summary> | ||
/// K13 ecommerce settings product SKU folder ID. | ||
/// </summary> | ||
[DatabaseField] | ||
public virtual int K13EcommerceSettingsProductSKUFolderID | ||
{ | ||
get => ValidationHelper.GetInteger(GetValue(nameof(K13EcommerceSettingsProductSKUFolderID)), 0); | ||
set => SetValue(nameof(K13EcommerceSettingsProductSKUFolderID), value); | ||
} | ||
|
||
|
||
/// <summary> | ||
/// K13 ecommerce settings product variant folder ID. | ||
/// </summary> | ||
[DatabaseField] | ||
public virtual int K13EcommerceSettingsProductVariantFolderID | ||
{ | ||
get => ValidationHelper.GetInteger(GetValue(nameof(K13EcommerceSettingsProductVariantFolderID)), 0); | ||
set => SetValue(nameof(K13EcommerceSettingsProductVariantFolderID), value); | ||
} | ||
|
||
|
||
/// <summary> | ||
/// K13 ecommerce settings product image folder ID. | ||
/// </summary> | ||
[DatabaseField] | ||
public virtual int K13EcommerceSettingsProductImageFolderID | ||
{ | ||
get => ValidationHelper.GetInteger(GetValue(nameof(K13EcommerceSettingsProductImageFolderID)), 0); | ||
set => SetValue(nameof(K13EcommerceSettingsProductImageFolderID), value); | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Deletes the object using appropriate provider. | ||
/// </summary> | ||
protected override void DeleteObject() | ||
{ | ||
Provider.Delete(this); | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Updates the object using appropriate provider. | ||
/// </summary> | ||
protected override void SetObject() | ||
{ | ||
Provider.Set(this); | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Constructor for de-serialization. | ||
/// </summary> | ||
/// <param name="info">Serialization info.</param> | ||
/// <param name="context">Streaming context.</param> | ||
protected K13EcommerceSettingsInfo(SerializationInfo info, StreamingContext context) | ||
: base(info, context) | ||
{ | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Creates an empty instance of the <see cref="K13EcommerceSettingsInfo"/> class. | ||
/// </summary> | ||
public K13EcommerceSettingsInfo() | ||
: base(TYPEINFO) | ||
{ | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Creates a new instances of the <see cref="K13EcommerceSettingsInfo"/> class from the given <see cref="DataRow"/>. | ||
/// </summary> | ||
/// <param name="dr">DataRow with the object data.</param> | ||
public K13EcommerceSettingsInfo(DataRow dr) | ||
: base(TYPEINFO, dr) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, please describe where this UI is located (XbyK administration I assume). Use bold formatting for the application / tab name. If possible, show a screenshot highlighting the relevant mapping rule settings (because there are also other settings for the content folder, which could be confusing).