28 Posts
shellok
6 years ago
6
Topic

Please help. Show materials list. I bought a package of 5 plugins. Want to solve the issue by updating information in the database by clicking on a button in the list.

Get a Book for SEBLOD
4229 Posts
Kadministrator
6 years ago
3
Level 1

It is a bit unclear what is your problem

28 Posts
shellok
6 years ago
2
Level 2

в таблице содержания щелкните на кнопке и изменить значение в базе данных. Например, было "0" станет "1"

4229 Posts
Kadministrator
6 years ago
1
Level 3

To save single value on click you would need ajax solution, this is not something you can do with code plugins.

28 Posts
shellok
6 years ago
0
Level 4

Я не против "Аякса". Но я бы для начала поставил просто использовать в PHP, чтобы обновить значения, когда пользователь нажимает на кнопку. Вопрос-И как это реализовать? Maybe I missed something, but I would be very grateful if You give me a working Board

4229 Posts
Kadministrator
6 years ago
1
Level 1

If you append some variable to the free button you can then change this variables value in the beforeStore (if current value is 0 make it 1 and reverse), but form will need to be reloaded. 

You need to write actual code yourself or you can use https://www.seblod.com/store/services

28 Posts
shellok
6 years ago
0
Level 2

Thank you for trying to help me I appreciate it. No problems with the code, I want to understand how to attach this code to the button

Get a Book for SEBLOD