Quantcast
Channel: Optimizely Search & Navigation
Viewing all 6894 articles
Browse latest View live

Item Level Promotion.

$
0
0

Hi Team,

Below is my requirement.

Item

Qty more than

gg-5656

115 

gg-5678-PSK

50

gg-3456-PS

115

gg-6789-PLSK

50

XX-3030

50

XX-3030-TSLS

50 

 

If add "XX-3030" 50 quantity & get 5% discount.So how to achieve this using epi promotion. or How to do customization in epi item type promotion. (Selected variation or category should equal to discount qualified  quantity and the only qualified product will get discount .)

Please help me out,

Advance Thanks,

Karthik


Specified payment method " {payment.PaymentMethodId)}" has not been defined.

$
0
0

Hi All,

We are seen strange error when try to get 'Payment Methods' from the episever CMS site for some users. Please see error details as follow,

ERROR MESSAGE:

Server Error in '/' Application.
Specified payment method "{payment.PaymentMethodId)}" has not been defined.
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: Specified payment method "{payment.PaymentMethodId)}" has not been defined.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[MissingMethodException: Specified payment method "{payment.PaymentMethodId)}" has not been defined.]
EPiServer.Commerce.Order.DefaultPaymentProcessor.CreatePaymentGatewayProvider(IPayment payment) +760
EPiServer.Commerce.Order.DefaultPaymentProcessor.ProcessPayment(IOrderGroup orderGroup, IPayment payment, IShipment shipment) +151
System.Linq.WhereSelectListIterator`2.MoveNext() +117
System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) +526
EPiServer.Commerce.Order.IOrderGroupExtensions.ProcessPayments(IOrderGroup orderGroup, IPaymentProcessor paymentProcessor, IOrderGroupCalculator orderGroupCalculator) +558
GreenCrossHealth.EpiServer.Services.Commerce.CartService.ProcessPayment(ICart currentCart, PaymentDetailsForm paymentDetailsForm) in E:\build-dir\11665409\GXH-BFD-BC\Source\GreenCrossHealth.EpiServer.Services\Commerce\CartService.cs:657

We are using EpiServer Ver 11.

Could you please help me to resolve this issue?

Thanks

"Cache cleared" and EPiServer Application Reboot

$
0
0

I have a website where I use Episerver CMS 11 and also Commerce. I have an issue on my site where it is occasionally unresponsive for up to a couple of minutes. When recovered from this period of unresponsiveness, I have noticed the following line consistently in my log:

2018-12-13 00:14:15,167 [1] WARN EPiServer.Core.Internal.ContentCacheRemover: Cache cleared

The mystery-cache-clear is logged about 4-8 times per day, and seems to follow no pattern (except on 03:00 every day when I recycle app-pool in IIS). For example, this 24-hour period:

2018-11-11 03:00:27,079
2018-11-11 08:03:05,568
2018-11-11 12:12:04,301
2018-11-11 16:36:37,739
2018-11-11 19:48:09,106
2018-11-11 22:48:15,181

In my dev environment, I can trigger the "Cache cleared" message by running an iisreset.

I have noticed a warning event logged in windows Event Viewer -- under System -- for most of the periods of unresponsiveness, but not all.

Source: WAS, ID: 5011, Message:
A process serving application pool 'MyPool' suffered a fatal communication error with the Windows Process Activation Service. The process id was '3788'. The data field contains the error number.
Source: WAS, ID: 5010, Message:
A process serving application pool 'MyPool' failed to respond to a ping. The process id was '4500'.

My questions:
1. When/why does EPiServer log the "Cache cleared" message?
    1.a Is the message logged consistently on startup?
2. My theory is that the EPiServer app is rebooted, and that the cache is cleared on initialization.
    2.a Under what conditions can I expect EPi to reboot itself?
    2.b Under what conditions can I expect IIS to reboot EPi?
3. Other theories?

Generation of URL segment for content

$
0
0

Hello

When a page is created an URL is auto-generated that changes ø to o. Is there any way to change this behaviour so that ø becomes oe?

Thanks in advance.

Regards,
Benjamin

Use key fom key/value selection fom input insted of value as placeholder

$
0
0

Hi,

In the end of a multi step form before post we whant to show the user the selections he/she made.

This we can solve with placeholders for most cases but for select key/value selections the placeholder shows the value and not the key.

The values in our form are codes that is gibrish to the user.

Is there a way to add a custom placeholder between steps or some another way to get around this?

Best regards
/Jesper

Exclude specific catalog entries from a Promotion

$
0
0

Hello everybody,

A customer I'm working on has for a while asked us to implement a feature where they can create a promotion, select which content they want to be the condition and then select some content that should not be a part of the promotion. I've not really theorized a solution for this, so we've done some workarounds that worked well enough to fulfill the use case they had. However, I want to reach out and see if someone can help me suggest a way of implementing this nicely.

Before anyone asks "Why not just include what should be included in the promotion?", I think I'm safe to say a very common usage of promotions is have one that affects the entire assortment or large portions of it, but that a few products are too "premium" to be affected by a discount.

Way 1: The obvious way

Create a custom promotion processor for the promotion. You can do whatever logic you want from in there, right? Well, this feature should be for all promotions, so that'd mean we'd have to create a custom promotion for every existing built in promotion. A class that inherits the data class for that specific promotion adding the list of exluded content and a processor that overrides the old promotion processor and somewhere injects the logic to exclude the products selected in the list of excluded content. 

So in the end the solution is quite ugly, will have to mean creating tons of code that "already existed" and if Epi releases a new promotion implementation, we will have to manually build that one as well.

Way 2: EntryFilterSettings to our rescue?

The fairly new way of excluding products from promotions, does look very promising, just by looking at the description. However it doesn't fit this use case, as this should be promotion specific. Maybe promotion A should exclude product P1 and promotion B should exclude P2. We can't solve that by the EntryFilterSettings, since that one is used in the promotion engine, removing the items before the engine starts running the specific promotion processors.

So this method is unfortunately a no-go. Even though we do use EntryFilterSettings for a lot of other purposes, such as always excluding gift cards from promotions!

Way 3: Make Epi implement a way!

innocent

In all seriousness I'm looking for a way of implementing this. Am I missing something, am I tunneled visioned and there is an super easy way of achieving this? Currently I'm leaning to implementing it as Way 1, but not super excited about it. 

Item Level Discount is not being applied while calculating Order level Discount

$
0
0

Hello everyone,

    We made a custom order level discount processor as there was a business rule to exclude certain products from order level discount. But what we found out was while calculating the total amount of lineitems which are included in order level discount, item level discount of those line items are not being applied. 

Let's say we have a cart with 2 lineItems, Product A of price 10$(included in order discount/ Also have an individual 10% item discount), Product B (excluded from order discount). In our SpendAmountGetOrderDiscountCustomProcessor class, lineitem is 10$ but technically it should be 9$ (taking item level into consideration), so we are applying order level discount to 10$ instead of 9$. 

I need help to figure out a way to include item level discount while calculating order level discount. Any help would be appreciated.

Thanks,

Venkata

Stop Words in Unified Search

$
0
0

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


EPiServer Find (13.0.1) Sort by Date. The returned Hits is not properly sorted by the sort value

$
0
0

{
"_index": "index15455-en",
"_type": "SeriesNode",
"_id": "CatalogContent_70d204e7-487d-4a41-91d0-52affe791681_en",
"_score": null,
"fields": {},
"sort": [
1549027800000
]
},
{
"_index": "index15455-en",
"_type": "SeriesNode",
"_id": "CatalogContent_24073783-ba86-4c6e-8ac6-5153860f5f5b_en",
"_score": null,
"fields": {},
"sort": [
1548871200000
]
}

If you check the Hits from find. the sort value is not properly ordered by teh value. 1548871200000 < 1549027800000 for above case, then the document having sort value of 1549027800000 should be behind the document having sort value of 1548871200000 

Does current AlloyDemoKit require SQL Local DB 2017?

$
0
0

I am trying to bring up the most current version of the Alloy Demo Kit from GitHub to help with our upgrade from 10 to 11. 

I did all the steps in the wiki page using IISExpress. After making it past an error with CSC.exe needing to be copied to output, I now get an error about the database needing to be version 869. 

I am using Visual Studio 2017 15.9 so I'm not behind at all. What gives?

The database 'alloydemokit' cannot be opened because it is version 869. This server supports version 852 and earlier. A downgrade path is not supported.
Could not open new database 'alloydemokit'. CREATE DATABASE is aborted.
Cannot attach the file 'C:\Users\MISOAdmin\Source\Repos\Alloy_Demo\src\AlloyDemoKit\App_Data\alloydemokit.mdf' as database 'alloydemokit'.

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.Data.SqlClient.SqlException: The database 'alloydemokit' cannot be opened because it is version 869. This server supports version 852 and earlier. A downgrade path is not supported.
Could not open new database 'alloydemokit'. CREATE DATABASE is aborted.
Cannot attach the file 'C:\Users\MISOAdmin\Source\Repos\Alloy_Demo\src\AlloyDemoKit\App_Data\alloydemokit.mdf' as database 'alloydemokit'.

Upload file by user

$
0
0

I would like to upload file from user form. When I search for the solution, I found that EpiServer.Forms support file upload but we are not using Forms for the pages and created programmatically.

For example, we are creating a page element using the following code

[Editable(true)]
[Display(
Name = "Name",
GroupName = SystemTabNames.Content,
Order = 10)]
public virtual string userName { get; set; }

Is there any way to upload file from user forms?

Also, Geta.Epi.MediaReferenceSelector can be used with following UI hints

[UIHint("ResponsiveMedia")]
[UIHint("ivpropertymedia",PresentationLayer.Edit)]

What is the variable type to use for MediaReferenceSelector?

Disable .FilterOnCurrentSite() for UnifiedSearch

$
0
0

Is there a way to disable the default filtering .FilterOnCurrentSite() for UnifiedSearch?

I'm building a search feature where it will be optional to filter by site.

This post describes a way of doing it but I wonder if there's a way to just disable that specific filter without have to redefine the rest?

https://world.episerver.com/forum/developer-forum/EPiServer-Search/Thread-Container/2015/6/unifiedsearch-with-multiple-sites/

Caching images from assets

$
0
0

Hello

We are scaling our images from global assets using ?width=X&height=Y etc. The output of this is cached. How do I invalidate the cache when a new picture is added or overwritten in global assets?

Thank you in advance!

Regards,

Benjamin

Use "Add placeholder" selection button in custome propery template

$
0
0

Hi

I want to create a actor for sending a confirmation email to the poster of a form. I would like the template to look and behave like the built in template for sending post as email without the recipient propery.

I have gotten all the properies in place with a custom Model inheriting from IPostSubmissionActorModel but I cant figure out how to get the "Add placeholder" button in the top right corner.

Is there a good way to do this?

Default credential not working for Commerce

$
0
0

I tried to log in failed for Commerce (version 12) for the first time and i used both default credentials (username=admin, password=store) and also windows credential but did not work for me. I was following the following link.

https://world.episerver.com/documentation/developer-guides/commerce/getting-started/creating-your-project/


Alloy as front end project for Commerce?

$
0
0

To create a commerce site (I am using version 12), is it fine to use alloy site as front end? The below link suggests to create an empty project. As there is already so many initial code setups in Alloy which is not available in Empty CMS, I want to use Alloy to avoid so many code setups. In the beginning, it is very confusing what are things needed to be configured and setup. Or, is there any other way to get started a new project? Suggestion please.

https://world.episerver.com/documentation/developer-guides/commerce/getting-started/creating-your-project/

Issue with EPiServer.Web.Routing.UrlResolver.GetUrl for Commerce content versions

$
0
0

Hi,

When using the EPiServer.Web.Routing.UrlResolver.GetUrl method to get the url of multiple content versions (published and previous published) of the same Commerce content it always return the same url. The url of first content version (content link id and work id) used in EPiServer.Web.Routing.UrlResolver.GetUrl will be the url that is returned from the rest.

This is not an issue with CMS content. Here we get the correct url for each content version.

I did a test in latest version of the Quicksilver demo-site.

  1. Change "Name in URL" (RouteSegment) for Fashion Node and publish so you have min. two content version with different "Name in URL" (RouteSegment).
  2. Retrieve all content version of Fashion Node and use EPiServer.Web.Routing.UrlResolver.GetUrl on each.

Did the same for CMS content.

The result can be seen here:

https://imgur.com/a/gr0ol53 (top image)

As you see in the image then we get the correct url for each version of the CMS content, but for the Commerce content we get the same even though that the RouteSegment is correct and different in each of the content versions.

As mentioned above is it the first that is retrived that decides it. If I recycle the app pool and changes the to get the content versions in .Reverse() then this is shown.

https://imgur.com/a/gr0ol53 (buttom image)

Looks like a bug or?

Routing with Angular 2 and EpiServer

$
0
0

Is it possible for Angular 2 to ignore whatever comes before a route/path? I'm using Angular 2 on my EpiServer website. When I press a link using Angular, it removes whatever path that comes before it.

For example:

  • User navigates to /jobs/application/step1.
  • He or she performs some action on the page, then presses a button to go to /jobs/application/step2.
  • Angular then removes /jobs/application/ from the path and the url becomes /step2.

Is it possible for Angular to continue using the current path and put the step 2 path on /jobs/application/step2?

Can not implement Epi find result return in correct order

$
0
0

Hi everyone

I am working with Episerver Find and use this for search function on my website. Everything work well till I received new requirement: 



The second item should be on top because term "Water" in sentence: "Water Landing Page" show ealier than in "Landing Page for water".

Here is my query

Any help would be apperciated!
Thank you!

Page Link Example Needed

$
0
0

Hello,

I am trying to figure out how to use IPageRouteHelper to get the current url a block is on.  I was directed to the page below for PageLink, but the Example section is empty.  Does anyone have an example handy?

https://world.episerver.com/documentation/class-library/?documentId=cms/10/7D323675

Viewing all 6894 articles
Browse latest View live