Quantcast
Viewing all 6894 articles
Browse latest View live

SEO Friendly Urls for Commerce Products

As product url in episerver is formulated by the catalog structure and product code is taken into consideration to build url.Is there any possibility to customize the product urls in episerver which is SEO Friendly.


Cant log in to CMS

I am new with episerver but I am building a e-commerce site with CMS and Commerce and I have trouble to login at my CMS as admin. I have tried to change in my web.config file 

<location path="EPiServer/CMS/admin">
<system.web>
<authorization>
<allow roles="WebAdmins, Administrators" />
<allow users="*" />
</authorization>
</system.web>
</location>

But I still have to login and no username or password I have used works. Would apreciate some help please.

How to remove existing line items from purchase order?

We are trying to remove line items which are already present in the purchase order. Basically we wanted to change the product code in the line items of the purchase order. Is there any specific way to remove that information?

Regards,

Manik

How to update "Name in Url" for commerce products programatically?

We are trying to update name in url field in commerce catalog to remove the product codes from the url for seo usage.

Is there any way to update display name as input for urls or anyway to update "Name in Url" field for commerce products for usage.

Thanks,

Manik

CreateMetaField is not adding entry to mcmd_MetaField table

We're having an issue where the Business Foundation API for creating a new MetaField on a class is not working properly.

This is the code that I'm executing:

using (var myEditScope = DataContext.Current.MetaModel.BeginEdit())
{
	metaClass.CreateMetaField(name, friendlyName, typeName, isNullable, defaultValue ?? string.Empty, attributes);
	myEditScope.SaveChanges();
}

And this does create the column in the MetaClass's own SQL table, but it does not add an entry to the mcmd_MetaField table.

I've experimented with a few different approaches, and have tested it with various MetaFieldTypes (Integer, String, DateTime, etc) but keep getting the same result. I've double checked that I'm adding the correct attributes (I am checking against the MetaFieldBuiler code as a reference).

What really has me scratching my head is that this has always worked on previous projects reliably for me, and even in the early days of this project.. I guess maybe something is uniquely wrong with our state of data perhaps, but I can't figure what could have changed to cause this..?

We're using Commerce v12.11 (with CMS v11.10.6).

Anyone have any ideas/tips?

Extending the Max Length of Name and DisplayName of Products in Commerce

We are trying to extend maxlength of properties like Name and Display Name beyond its default value 100.I have tried to override the Name property and increasing the max length value  in  my custom Product model but no luck.can any one help me fixing this issue.

Thanks,

Varun

How to customize validation message for each field episerver form.

Hi,


I want to implement custom validation message for each filed in form,

Does anyone know if we can customize a validation message for each field?
Now I have two textboxes (Name, Email), those are required. When I click a submit button without input information those fileds, then the validation message show up "This Field is requied" (Standard episerver form). 

But I would like to have the validation message for show specific field name. Like "Please enter Name." and "Please enter Email".

Waiting to hear from any helps.

Thanks in advance.

Translating - Multiple or single choice field

Currently on a multi language site we want to use a Multiple or single choice field. However the items are not translatable in a different language. At least the choice how it is displayed in the front-end should be translatable as this might need to differ per language. Is this something that will be built-in in future releases?


The language for settings can not be found.

After updateing to Episerver 11 my multi language site is showing an error. If I log in and try to go to the admin mode I get this error

The language for settings can not be found.

System.Configuration.SettingsPropertyNotFoundException

Does anyone has experienced this before?

It works fine if I am not logged into episerver admin mode and also works fine in edit mode. 

Stop Words in Unified Search

Hi Team,

I have a requirement where I need to implement stop words in unified query. All the words that are available in my one of the property should be skip from my result.

If anyone can help will be appericated.

Thanks in Advance

How to provide role based access for different nodes in episerver commerce

Hi ,

Is it possible provide role based access to different nodes in catalog. We have different nodes in our catalog but each node should be visible to specific users only, is there any possibility of assigning access for different nodes similar to cms pages?

Regards,

Manik

How do I set the message to be displayed when a form field fails validation?

I'm using the basic form elements provided out of the box, but I can't see where I can set the error message to be displayed for my different fields, when their regex validation is failed.

We are receiving an error when we are trying to add a line item manually using commerce manager

Hi,

We are facing the below exception when we are trying to add a new line item to the purchase order.

[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14777731
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
   Mediachase.Commerce.Manager.Apps.Order.EntryTypes.CatalogEntry.InitializeForm(Entry entry) +728
   Mediachase.Commerce.Manager.Apps.Order.EntryTypes.CatalogEntry.LoadContext(IDictionary context) +264
   Mediachase.Commerce.Manager.Apps.Order.Modules.CatalogEntrySearchDialog.ConfigureButton_Click(Object sender, EventArgs e) +1082
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11798065
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1669

We have added two custom metal fields of property type longstring in the purchase order. We tried to find the reference for Mediachase.Commerce.Manager.Apps.Order.EntryTypes.CatalogEntry. please suggest what could be the issue?

We are facing issues when we are trying to add products as line item in commerce manager UI

Hi,

We are trying to add products which dont have any variants to line item. We are facing the below exception.

Input string was not in a correct format.

But we are successfully able to add variants we have created. Kindly correct us if we are trying some thing wrong.

We are able to products as line items to commerce manager using programatic approach but not using the UI. 

Is it mandatory to have atleast one variant for the product to add it to the line item ?

Regards,

Manik

Validation message (warning) on form Element

Hi is it possible in EpiServer Forms to create a validation message on a form element? I want to create a warning message when an element hasn't been set to required when publishing the element.

This is a validaton message in the episerver backend, not in the front end (website).


Indexcontent.aspx throwing permissions error on latest version

While setting up Search on a v11 instance, I noticed that clicking "Index content" in the admin section throws a permissions error. There was one other forum post which hinted at the admin role being the cause of the issue, but I'm not really doing anything crazy for mapped roles. Just one named AD group and thats it.

Edit --> I should add that Im currently using ADFS for authentication, dont know if that matters. 

Has anyone else ran across this before? Below is the detailed error

The assembly or AppDomain that failed was:
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Security.SecurityException: Request for principal permission failed.
   at System.Security.Permissions.PrincipalPermission.ThrowSecurityException()
   at System.Security.Permissions.PrincipalPermission.Demand()
   at System.Security.PermissionSet.DemandNonCAS()
   at EPiServer.UI.Admin.IndexContent..ctor()
   at ASP.episerver_episerver_search_cms_indexcontent_aspx..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\61a7374b\1e1d9993\App_Web_nea3ffuq.0.cs:line 0
   at __ASP.FastObjectFactory_app_web_nea3ffuq.Create_ASP_episerver_episerver_search_cms_indexcontent_aspx() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\61a7374b\1e1d9993\App_Web_nea3ffuq.1.cs:line 0
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.PrincipalPermission
The first permission that failed was:<IPermission class="System.Security.Permissions.PrincipalPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"><Identity Authenticated="true"
Role="WebAdmins"/><Identity Authenticated="true"
Role="Administrators"/></IPermission>
The demand was for:<IPermission class="System.Security.Permissions.PrincipalPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"><Identity Authenticated="true"
Role="WebAdmins"/><Identity Authenticated="true"
Role="Administrators"/></IPermission>

Custom URL for market/language combination

Situation: a multi lingual, multi market Commerce site. Currently we're using IP lookup to determine the market, but want to change that to include the market in the URL.

We would like to use /language-market/content/bla as a URL (so language and market combined in one url segment). Are there any pointers on how to implement this?

Custm ContentProvider throwing widget.js error after upgrade to episerver 11

Hi.

After upgrading to episerver 11 we are experiencing that one of our contentProviders are getting an error in the widget.js script. The error is this one:
TypeError: this.noDataMessages is null; can't access its "single" property[Learn More]widgets.js:2:558865

The error occures when i try to click on the root folder for the contentprovider, and no data is returned.
I have debugged through the contentprovider LoadChildrenReferencesAndTypes and LoadContent methods, and both are returning what is expected, but still no data in the cms. the initialization class is as follows:

[InitializableModule]
[ModuleDependency(typeof(InitializationModule))]
public class EmployeeDataProviderInitialize : IInitializableModule
{
public void Initialize(InitializationEngine context)
{
var contentRepository = context.Locate.ContentRepository();
var providerManager = context.Locate.Advanced.GetInstance<IContentProviderManager>();

var entryPoint = contentRepository.GetChildren<EmployeeRootFolder>(ContentReference.RootPage).FirstOrDefault();

if (entryPoint == null)
{
entryPoint = contentRepository.GetDefault<EmployeeRootFolder>(ContentReference.RootPage);
entryPoint.Name = EmployeeDataProviderSettings.ProviderDisplayName;
contentRepository.Save(entryPoint, SaveAction.Publish, AccessLevel.NoAccess);
}

var providerValues = new NameValueCollection
{
{ContentProviderElement.EntryPointString, entryPoint.ContentLink.ID.ToString()},
{ContentProviderElement.CapabilitiesString, ContentProviderElement.FullSupportString}
};

var employeeDataProvider = new EmployeeDataProvider();
employeeDataProvider.Initialize(EmployeeDataProviderSettings.Key, providerValues);
providerManager.ProviderMap.AddProvider(employeeDataProvider);

}

}

Has anyone else experienced this after upgrading? it was running on episerver 10.10.1, and are now running episever 11.10.1


In advance thanks for your help.
Best Regards
Pål

Import NodeEntryRelation through Service API Error

Hi, we have an issue which occurs when our customers daily sync from PIM to EPi is running. Almost all of the products are imported just fine, but lately a specific product has coused the import to fail. It happens when ne NodeEntry-relation is about to be set, which i find very strange. Other entries with relation to the same node is working perfectly fine. The error we receive from The Service API:

{"TimestampUtc":"2018-11-28T22:34:15.5474666Z","MessageType":5,"Message":"This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row.","StageName":"Exception","StageIndex":1,"StageCount":1,"StageProgress":1,"StageTotalProgress":1,"ExceptionMessage":"This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row.","ExceptionStackTrace":" at System.Data.DataRow.GetDefaultRecord()\r\n at System.Data.DataRow.get_Item(DataColumn column)\r\n at Mediachase.Commerce.Catalog.Dto.CatalogRelationDto.NodeEntryRelationRow.get_IsPrimary()\r\n at Mediachase.Commerce.Catalog.ImportExport.Import.NodeEntryRelationsReader.Read(ImportCatalogNodeCache relationCache)\r\n at Mediachase.Commerce.Catalog.ImportExport.Import.RelationsReader.Read(ImportCatalogNodeCache relationCache)\r\n at Mediachase.Commerce.Catalog.ImportExport.Import.Importer.Import(Stream stream, String sourceDirectory, Boolean overwrite)\r\n at Mediachase.Commerce.Catalog.ImportExport.CatalogImportExport.Import(String directoryPath, Boolean overwrite)\r\n at EPiServer.ServiceApi.Commerce.Jobs.CatalogImportJob.ExecuteJob(Guid jobId)"}

The relation XML-node from Import XML which fail:

<NodeEntryRelation><EntryCode>9723223</EntryCode><NodeCode>moj99lzdhusy</NodeCode><SortOrder>0</SortOrder><IsPrimary>True</IsPrimary></NodeEntryRelation> 

This however, which is the Noderelation just above in the XML does work:

<NodeEntryRelation><EntryCode>9723197</EntryCode><NodeCode>moj99lzdhusy</NodeCode><SortOrder>0</SortOrder><IsPrimary>True</IsPrimary></NodeEntryRelation>

What happens to the relation that fails is that the Enty is placed on ROOT in the catalog with no relations. Any idea what could be cousing this behaviour? We are running EPiServer Commerce 12.5 and Service API 5.1

Trim Content Versions job for Commerce catalog content

In CMS 11 we got the "Trim Content Versions" job for CMS content which uses the uiMaxVersions setting. 

Would be nice with a similar built-in job for Commerce content for cleaning up old previous versions of catalog entries. 

Viewing all 6894 articles
Browse latest View live