Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Custom promotion that round to nearest divisible by X

$
0
0

I'm creating a sort of "incognito" custom promotion that looks like original prices in the UI and I want the discounted prices to be divisible by 5 (USD) or 10 (SEK). Since it's a percentage discount some prices could end up as some random number like 112,50 kr which doesn't fit in as a standard price.

I have a custom processor but it seems like the evaluate-method runs with a blanket percentage for the entire order. I might need to set custom percentage per item to get them all to a nice round number. Is there a way to force Evaluate(...) to run on individual items or should I go another route?


Viewing all articles
Browse latest Browse all 8020

Trending Articles