This commit is contained in:
2026-03-28 11:33:56 +01:00
parent 412e235512
commit aa8e21862d
132 changed files with 24381 additions and 10882 deletions

View File

@@ -16,8 +16,10 @@ if ( $a == 'cookie_categories' )
if ( $a == 'save_categories_order' )
{
$response = [ 'status' => 'error', 'msg' => 'Podczas zapisywania kolejności kategorii wystąpił błąd. Proszę spróbować ponownie.' ];
if ( \admin\factory\ShopCategory::save_categories_order( \S::get( 'categories' ) ) )
$categoryRepository = new \Domain\Category\CategoryRepository( $mdb );
if ( $categoryRepository->saveCategoriesOrder( \S::get( 'categories' ) ) )
$response = [ 'status' => 'ok' ];
echo json_encode( $response );