Commit e3eebde9c6fcc149ec456c7da7032b044439d4ab
1 parent
9586c455
base
Showing
3 changed files
with
27 additions
and
2 deletions
Show diff stats
src/app/backend/controllers/PromoCodesController.php
| ... | ... | @@ -26,8 +26,8 @@ class PromoCodesController extends Controller |
| 26 | 26 | 'page' => $page, |
| 27 | 27 | 'items_per_page' => \config::get( 'limits/admin_orders', 5), |
| 28 | 28 | 'total_items' => $total[0]['total'], |
| 29 | - 'url_for' => [ 'for' => 'promo_codes_index_paged', 'page' => $page ], | |
| 30 | - 'index_page' => 'promo_codes_index' | |
| 29 | + 'url_for' => [ 'for' => 'discount_index_paged', 'page' => $page ], | |
| 30 | + 'index_page' => 'discount_index' | |
| 31 | 31 | ], true |
| 32 | 32 | ); |
| 33 | 33 | } | ... | ... |
src/app/backend/views/partial/sidebar.php
| ... | ... | @@ -57,6 +57,7 @@ |
| 57 | 57 | <ul class="body"> |
| 58 | 58 | <li class="point4"><a href="<?= $this->url->get([ 'for' => 'reviews_index' ]) ?>" title="Акции">Отзывы</a></li> |
| 59 | 59 | <li class="point4"><a href="<?= $this->url->get([ 'for' => 'sales_index' ]) ?>" title="Акции">Акции основного сайта</a></li> |
| 60 | + <li class="point4"><a href="<?= $this->url->get([ 'for' => 'discount_index' ]) ?>" title="Промокоды">Discount</a></li> | |
| 60 | 61 | <li class="point4"><a href="<?= $this->url->get([ 'for' => 'promo_codes_index' ]) ?>" title="Промокоды">Промокоды</a></li> |
| 61 | 62 | <li class="point4"><a href="<?= $this->url->get([ 'for' => 'action_discount_index' ]) ?>" title="Акции">Акции для магазина</a></li> |
| 62 | 63 | <li class="point4"><a href="<?= $this->url->get([ 'for' => 'actions_index' ]) ?>" title="Пределы">Пределы акций для магазина</a></li> | ... | ... |
www-backend/index.php
| ... | ... | @@ -1067,6 +1067,30 @@ try |
| 1067 | 1067 | ) |
| 1068 | 1068 | ->setName('get_items_by_filter'); |
| 1069 | 1069 | |
| 1070 | + /* *************** discounts ************** */ | |
| 1071 | + | |
| 1072 | + $router->add | |
| 1073 | + ( | |
| 1074 | + '/discount_index', | |
| 1075 | + [ | |
| 1076 | + 'controller' => 'discount', | |
| 1077 | + 'action' => 'index' | |
| 1078 | + ] | |
| 1079 | + ) | |
| 1080 | + ->setName('discount_index'); | |
| 1081 | + | |
| 1082 | + $router->add | |
| 1083 | + ( | |
| 1084 | + '/discount_index/page/{page:[0-9]+}', | |
| 1085 | + [ | |
| 1086 | + 'controller' => 'promo_codes', | |
| 1087 | + 'action' => 'index' | |
| 1088 | + ] | |
| 1089 | + ) | |
| 1090 | + ->setName('discount_index_paged'); | |
| 1091 | + | |
| 1092 | + /* *************************************** */ | |
| 1093 | + | |
| 1070 | 1094 | $router->add |
| 1071 | 1095 | ( |
| 1072 | 1096 | '/sales_index', | ... | ... |