Quantcast
Channel: Customized Commerce 13 and earlier versions
Viewing all 9642 articles
Browse latest View live

Access to Commerce tab in episerver

$
0
0

Hey,

I would like to create user accounts for the sales group which can have the full access to following view in episerver (Commerce part).

Commerce tab 
- Catalog 
- Marketing 
- Commerce Manger (every view excepts "Administration")

I tried with CommerceAdmins role but it doesn't work if the user is not WebAdmins or Administrators.

<add name="CommerceAdmins" type="EPiServer.Security.MappedRole, EPiServer.Framework" roles="WebAdmins, Administrators" mode="Any"/>

Which administer groups shall the sales be member of?

Do I need to create a new role for this scenario? If so, any suggestions?

Thanks, 

ChiChing


Catalog Import tool - Other options than CSV

$
0
0

Hi 

Is there any any alternate catalog import tool available which allows you to import catalog data using lesser files.

At the moment the CSV method takes 5 or 6 diferent files to import all data.

I am aware that we can write our own import tool but was wondering if someone has writte any generic tool to replace the csv import.

Thanks

Kind Regards

Sandeep

Deleted variant still in cart? [12.8]

$
0
0

Hi!

If I place a variant in my shopping cart and the delete the variant from the catalog the variant is still loaded into the cart.  Even if I restart everything the variant is still loaded.

This code gives me the deleted variant:

var lineItems = cart.GetAllLineItems();
var variantReferences = _referenceConverter.GetContentLinks(lineItems.Select(l => l.Code))
                .Select(c => c.Value).Where(c => !ContentReference.IsNullOrEmpty(c));
var variants = _contentLoader.GetItems(variantReferences,_preferredCulture).OfType<EntryContentBase>().ToList();

These validations are run:

cart.ValidateOrRemoveLineItems((item, issue) => issues.AddValidationIssues(item, issue), _lineItemValidator);
cart.UpdateInventoryOrRemoveLineItems((item, issue) => issues.AddValidationIssues(item, issue), _inventoryProcessor);
cart.ApplyDiscounts(_promotionEngine, new PromotionEngineSettings());
cart.UpdateInventoryOrRemoveLineItems((item, issue) => { }, _inventoryProcessor);       

I get all information about the variant even though it is deleted, but I can't get an url to the item which I guess is how it is supposed to be.

Is this Episerver standard or maybe I'm missing something here?

/Kristoffer

Deleted variant still in cart? [12.8]

$
0
0

Hi!

If I place a variant in my shopping cart and the delete the variant from the catalog the variant is still loaded into the cart.  Even if I restart everything the variant is still loaded.

This code gives me the deleted variant:

var lineItems = cart.GetAllLineItems();
var variantReferences = _referenceConverter.GetContentLinks(lineItems.Select(l => l.Code))
                .Select(c => c.Value).Where(c => !ContentReference.IsNullOrEmpty(c));
var variants = _contentLoader.GetItems(variantReferences,_preferredCulture).OfType<EntryContentBase>().ToList();

These validations are run:

cart.ValidateOrRemoveLineItems((item, issue) => issues.AddValidationIssues(item, issue), _lineItemValidator);
cart.UpdateInventoryOrRemoveLineItems((item, issue) => issues.AddValidationIssues(item, issue), _inventoryProcessor);
cart.ApplyDiscounts(_promotionEngine, new PromotionEngineSettings());
cart.UpdateInventoryOrRemoveLineItems((item, issue) => { }, _inventoryProcessor);       

I get all information about the variant even though it is deleted, but I can't get an url to the item which I guess is how it is supposed to be.

Is this Episerver standard or maybe I'm missing something here?

/Kristoffer

Discount Exclusions

$
0
0

Commerce version 12.5.0

Hi All,
On the quicksilver sample site I've setup two "Buy Products for Discount on All Selections" discounts.  The first has the selection criteria as the "Mens" catalog node and the second as the "Womens".  I've then set these so all other discounts are excluded.

If I add a product from "Mens" I can see my discount applied.  Similarly, if I add a product from "Womens" I can see that discount applied to my cart.  However if I add them both to the cart, only one discount is applied.  I would have expected that since these are of type "EntryPromotion" and each product added to the cart is a separate lineitem, that each discount is applied.  If I remove the exclusions in Marketing, I can see both discounts applied in the cart.  I thought that the exclusions would prevent multiple discounts from being applied to the same lineitem, not separate lineitems in the cart.

In the site I'm building there are mulitple discounts that can apply to the same lineitem, but with the use of Priorities and Exclusions I can prevent this from occurring, I still however require that mulitple discount can be applied to a single order.

Is there a way I can achieve this?

discount1: Buy at least 1 item from Mens, Excludes discount 2
discount2: Buy at least 1 item from Womens, Excludes discount 1

lineitem1: discount1
lineitem2: discount2

Thanks
Mark

Howto edit dynamic properties in EPiServer 11

$
0
0

Hi

I have upgraded our intranet to EPiServer 11 (11.10.6.0). Now I can not edit dynamic properties. What have I missed?

Configuration:


   ...
  
     ...
    
     ...
  
   ...

The page for editing dynamic properties is still available:

But when on the page-property-form and selecting tools I only have the following options:

  • Language Settings
  • Manage Expiration and Archiving
  • Permanently Mark as Being Edited

Before upgrading (EPiServer 10, 10.10.4.0) the following were available:

  • Dynamic Properties
  • Language Settings
  • Manage Expiration and Archiving
  • Permanently Mark as Being Edited

Regards Hans

Form data not sent to Pardot

$
0
0

Hello guys,

I'm trying to connect episerver to pardot but i'm facing some issues while sending data. I managed to connect them (I can see prospect fields in the mappings tab) but when submiting the form there is nothing changed in pardot. Do I miss something?

I did everything described in the marketing-automation/pardot addon page.

For example I tried to create a form containing a textbox mapped to email field, a textbox mapped to website of the prospect and a submit button. If I add a new email, the prospect is not created. If I add an existing email, the prospect is not updated. The form submissions are stored in episerver but not synced with Pardot.

Geolocation and Profile options not working for Hidden visitor profiling

$
0
0

I have encountered an issue with Episerver Forms when using the Visitor Data Hidden Element Block.

When this block is added to a for the two other options work correctly and record the data correctly. Unfortunately, when the Geo and Profile option is selected, no data seems to get recorded in the form submissions.

Has anyone else encountered this issue or know of a solution?

Thanks!


Problems finding the page tree after upgrade to 9.12.5

$
0
0

Hi,

I have encountered a problem after a CMS upgrade from 7.19.2 to 9.12.5 in production.

Edit-mode
The problem is as follows.
The page tree cannot be found in edit-mode.

The following errors are shown in the console:







Admin-mode
In Admin-mode the database information says there are x number of pages in the database (which is correct).
When trying to set access rights in Admin-mode I get the following error:




In Config > Manage websites there is a start page greyed out. When trying to point out a new start page I get the error "An add-on for this website failed to run" and



No errors are shown in the console.
Neither can I remove the current website and create it anew.
The add-ons that are installed are: EPiServer Add-On Store Platform 3.0.1845 and EPiServer Add-On Store UI 3.0.1845


Only in production
Please note that I don't get this error in other environments: not locally, not in dev, not on stage. Only in production.
The only difference between production and i.e. stage is that the Windows versions, IIS versions and SQL Server version differ.

Help
Has anyone encountered this type of problem before or have any suggestions?
Thanks in advance.

EPi Find vs Load Testing

$
0
0

We're having issues during load testing of our website, and all the pages invloved are using Find to list the parent page's children. We load tested with 350 concurrent users, and the site seriously slowed to an unacceptable level, and combined with "all pages using find throwing errors", we are wondering what sort of load Find can handle?

Feels a bit silly for asking, as the main reason we are using EPi Find is because it's suppose to be able to handle the load better than listing children from the database instead, but it is the common demoninator in all the errors. What is everyone else's milage been like regarding EPi Find and load testing?

Obtain a ContentReference from a string

$
0
0

Hi

How is it possible to obtain a ContentReference object from an Id in a string?

I need to run the following command:

private IContentRepository _repLoad;
_repLoad = repo; // repo is injected from constructor
IEnumerable children = _repLoad.GetChildren("content link in a string");

Thanks,

EPi CMS 7.5 to 9.0 upgrade results in structuremap exception

$
0
0

Following is the exception. Please help to resolve this issue. Thank you !

Server Error in '/' Application.

Method not found: 'StructureMap.IContainer EPiServer.ServiceLocation.ServiceConfigurationContext.get_Container()'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.MissingMethodException: Method not found: 'StructureMap.IContainer EPiServer.ServiceLocation.ServiceConfigurationContext.get_Container()'.

Source Error: 

[No relevant source lines]


Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\61f0f580\3fbea218\App_global.asax.0.cs    Line: 0 

Stack Trace: 

[MissingMethodException: Method not found: 'StructureMap.IContainer EPiServer.ServiceLocation.ServiceConfigurationContext.get_Container()'.]
   EPiServer.Mail.Core.EPiServerMailModule.ConfigureContainer(ServiceConfigurationContext context) +0
   EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key) +58
   EPiServer.Framework.Initialization.ModuleNode.ConfigureContainer(ServiceConfigurationContext context) +150
   EPiServer.Framework.Initialization.InitializationEngine.ConfigureContainer(HostType hostType) +251
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +112
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +455
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +100
   EPiServer.Global..ctor() +108
   EPiServer.Templates.RelatePlus.Global..ctor() +37
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\61f0f580\3fbea218\App_global.asax.0.cs:0
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +139
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1431
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +184
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +79
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +178
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +341
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +523
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +688

zh-Hans or zh-CN for simplified chinese?

$
0
0

Hi, I want to add Chinese simplified language to the website and I'm not sure which version to choose zh-Hans or zh-CN. I'm not sure if it's at all important - I saw in debugging that zh-Hans is equivalent to zh-CN for .NET CultureInfo. Could you advise?

Tag user in Project comment not working when using external authentication provider.

$
0
0

Hi. We are using an external authentication provider (Azure AD B2C), which is working fine.

But when trying to "tag" a user (by typing @) in a Projects comment no users are found. The only users found are the local SQL db users that existed before adding the external authentication.

The users from AD B2C are shown if I use the "Set access rights"-tool in Admin mode, so they appear to be synced ok when a user log in.

Is this a bug, or is there something we are missing?

Why "Send email after form submission" is not a culture specific?

$
0
0

I am creating a form which should be sent to an email and the form should be localizable in multiple languages. The email subject and body should also be translatable. The email from field value should be different for different languages too.

How localization should be set up in this case for Episerver Forms? Is there any way to achieve it?


Content Approvals With Azure AD

OutputCache Implementation Help

$
0
0

Hi there,

Trying to set up outputcache but failing so far.

I have ensured that I have the following in my web.config:









And:

Next, I added [ContentOutputCache] to my StartPageController.cs like so:

[ContentOutputCache]
public class StartPageController : PageControllerBase
{
public ActionResult Index(StartPage currentPage)

{

var model = PageViewModel.Create(currentPage);

if (SiteDefinition.Current.StartPage.CompareToIgnoreWorkID(currentPage.ContentLink)) // Check if it is the StartPage or just a page of the StartPage type.
{
//Connect the view models logotype property to the start page's to make it editable
var editHints = ViewData.GetEditHints, StartPage>();
editHints.AddConnection(m => m.Layout.Logotype, p => p.SiteLogotype);
editHints.AddConnection(m => m.Layout.Footer, p => p.FooterBlock);
}

return View(model);
}
}

But it does not appear to be working. I have ensured that I am not logged in during testing. But when looking at the headers in the browser I see under cache-control: private.

In the article it mentions:

The next part of the process is to enable the response headers on your page.  If you don't do this you will see a no-cache set in your HTML requests response header.  To do this is pretty simple.  At some point on a page load you need to add the following code:

        public void SetResposneHeaders()
        {
            HttpContext.Current.Response.Cache.SetExpires(DateTime.Now.AddMinutes(2.0));
            HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public);
            HttpContext.Current.Response.Cache.SetValidUntilExpires(true);
        }

But I am unsure where to place this bit, and how to call it.

Extend UI Custom Scheduled Job

$
0
0

Hello everyone

Is there a way to extend the UI for additionnal parameters of a custom Scheduled Job created from C# code? If so, how? If not, how would you recommand to pass user input to the scheduled job?

Regards,

Martin Ouimet

How to set editor access right for a specific language of a site

$
0
0

Hi, 

I would like to set access right for an editor group so that they have ONLY access to read/create/change/delete/publich a specific language branch. 

If I set as WedEditor, the user have access to all languages. How shall I do to solve this?

Thanks,

ChiChing

Wrong URLs on indexed content on load balanced site with edit server

$
0
0

Im having a problem with the URLs going to our edit-server.

We have two web fronts and one edit server, and the problem is that indexed content gets the URL to the edit server.

So for example: www_out-site_com  <- this is the address i want on the urls, but instead i get www_out-edit-server_com >->

Is there an easy way to fix this?

Viewing all 9642 articles
Browse latest View live