There's a little issue, I'm testing buying items on shop and I can see players can recive their purchase but at shop history table still marks as "not realized yet." What am I doing wrong?
View attachment 45239
Yep, sorry for not to mention it... but just as I said, player are reciving their purchases in-game... the only one issue is that state "not realized yet" from table doesn't changehave you added the gesior-shop-system file to globalevents? and edited globalevents.xml?
Find in shop web files, tables that show on site. In database it use shop_history, and in web files is shop_history_item or something like that..Yep, sorry for not to mention it... but just as I said, player are reciving their purchases in-game... the only one issue is that state "not realized yet" from table doesn't change
I think here's the problem but I can't guess what is it... it's "show-history.html.twig" fileFind in shop web files, tables that show on site. In database it use shop_history, and in web files is shop_history_item or something like that..
There's a little issue, I'm testing buying items on shop and I can see players can recive their purchase but at shop history table still marks as "not realized yet." What am I doing wrong?
View attachment 45239
nope, it isnt... it only updates on 'z_shop_history_item' table not on z_shop_historyIs this piece of code executing and updating correctly?slawkens/myaac-gesior-shop-system
This is shop system taken from Gesior, modified for MyAAC. - slawkens/myaac-gesior-shop-systemgithub.com
That's what I think, but have no idea how to fix...Did it change in database in z_shop_history table? If so, it might be a problem with Twig template you posted.
Here I found a posibly solutionIs this piece of code executing and updating correctly?slawkens/myaac-gesior-shop-system
This is shop system taken from Gesior, modified for MyAAC. - slawkens/myaac-gesior-shop-systemgithub.com
doQuery("UPDATE `z_shop_history` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE comunication_id = " .. id .. ";")
doQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";")
thats what i was talking aboutnope, it isnt... it only updates on 'z_shop_history_item' table not on z_shop_history
That's what I think, but have no idea how to fix...
Here I found a posibly solution
gesior-shop-system.lua:Line 240
changed
Code:doQuery("UPDATE `z_shop_history` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE comunication_id = " .. id .. ";")
for
Code:doQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";")
View attachment 45272
Lol ure right, sorry my english is very badthats what i was talking about
im using myaac 0.8.1View attachment 45296
Are you using the latest version?
I meant the latest version of the plugin as it was renamed a number of versions ago according to the changelog.Lol ure right, sorry my english is very bad
im using myaac 0.8.1