How to assign correct profit margin?

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
I need to add a certain profit margin to various prices, i.e.

£1 - £20 Add £2 profit;
£20.01 - £50 Add £3.50 profit;
£50.01 - £100 Add £5 profit.

I'm able to calculate the profit ok, but what's the best way to check the price brackets? i.e. check if £17.55 will go into £1 - £20?
 

HuangXiangCai(黄祥财)

Administrator
Команда форума
Регистрация
03.10.2012
Сообщения
21
Благодарностей
14
Баллы
3
use the Javascript and logic judge action.
the var:y can take as your profits.
hope to see some more better method in following.
var x={-Variable.price_old-}; var y=2; x+y;
var x={-Variable.price_old-}; var y=3.5; x+y;
var x={-Variable.price_old-}; var y=5; x+y;
 

Вложения

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 180
Баллы
113
My suggestion when things is coming to prices is you take and convert any price in cents thats price x 100

Then just use checking by ranges and add your needed profit.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)