Status Change on admin/catalog.php

Open to all! Ask other shopowners for help.
merah
Member
Posts: 9
Joined: Mon Jun 03, 2024 2:47 pm
Phoenix Version: v1.0.9.6

Re: Status Change on admin/catalog.php

Post by merah »

i changed the fields and even if you look what is behind the icon (the link https://my_.nl/admin/catalog.php?cPath=881_647_658&pID=20926&action=set_flag&flag=0) does not work

in the flag stands this $db->query("UPDATE products SET products_status = " . (int)$_GET['flag'] . ", products_last_modified = NOW() WHERE products_id = " . (int)$_GET['pID']);

return $Admin->link('catalog.php', ['cPath' => $_GET['cPath'], 'pID' => (int)$_GET['pID']]);

it seems there is no update on the table but i have no idea why
You do not have the required permissions to view the files attached to this post.


Join The Code Co-op to get access to your library in the Code Co-op Forum
merah
Member
Posts: 9
Joined: Mon Jun 03, 2024 2:47 pm
Phoenix Version: v1.0.9.6

Re: Status Change on admin/catalog.php

Post by merah »

Sorry, my mistake, i changed catalog.php and made a mistake on the valid actions

$always_valid_actions = ['set_flag', 'set_flag1', 'set_flag2', 'set_flag3', 'set_flag4', 'set_flag5', 'set_flag6', 'set_flag7', 'set_flag8', 'set_flag9', 'set_flag10', 'set_flag11', 'set_flag12' ];

Case solved and thanks for the support Bert


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply