Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function edost_calculate_uc_line_item_alter(&$item, $order) {
- $mid = db_query("select mid from {uc_flatrate_methods} where title=:title", array(':title'=> $item['title']))->fetchField();
- // dsm($mid, 'db_query result');
- if (!$mid) {
- return;
- }
- if ($order->payment_method == 'qiwi' || $order->payment_method == 'uc_onpay') {
- if ($mid == 4) {
- $item['amount'] = 300;
- }
- else if ($mid == 5) {
- $item['amount'] = 350;
- }
- else if ($mid == 7) {
- $item['amount'] = 500;
- }
- else if ($mid == 8) {
- $item['amount'] = 700;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement