-
Post is under moderation
Hi, I guess thats correct, so I would add a new controller and add my custom logic in there, and that way it should protect you as much as possible. Darren...
Stream item published successfully. Item will now be visible on your stream. -
-
Post is under moderation
I cant recommend Microsoft VSCode enough for this. Lightweight, heaps of plugins, fast startup times, multi platform, overall a fantastic editor. Easy to setup with XDEBUG so you can step through the code line by line in debug mode. Git integrat...
Stream item published successfully. Item will now be visible on your stream. -
-
Post is under moderation
Hi check /catalog/controller/module/cart.php for these functions. Darren...
Stream item published successfully. Item will now be visible on your stream. -
-
Post is under moderation
Re: Invalid CSRF Token
Those are the event names you are seeing, so for example postAppRoute resolves to event name post.app.route. Or rather event post.app.route resolves to the function. I use vscode for dev with php plugins and i simply do a search for the string, so...
Stream item published successfully. Item will now be visible on your stream. -
-
Post is under moderation
Those are the event names you are seeing, so for example postAppRoute resolves to event name post.app.route. Or rather event post.app.route resolves to the function. I use vscode for dev with php plugins and i simply do a search for the string, so...
Stream item published successfully. Item will now be visible on your stream. -
-
Post is under moderation
Make sure you activate debug mode as well, as this (I believe) will show the events that are fired and will make troubleshooting much easier. https://arastta.org/docs/how-to/how-to-activate-debug-mode From the event name, you can translate this...
Stream item published successfully. Item will now be visible on your stream. -
-
Post is under moderation
oops forgot to mention in /event/app/crsf.php the event exists that sets the token. class EventAppCsrf extends Event { private $token_name = 'csrf_token'; public function postLoadView(&$output, $template) { // Che...
Stream item published successfully. Item will now be visible on your stream. -
-
Post is under moderation
Hi, Events are discussed here https://arastta.org/docs/developers/event-system Looks like the /system/library/app.php file listens for a post.app.route event fired in /system/library/app/catalog.php on all route requests. Note the even...
Stream item published successfully. Item will now be visible on your stream. -
-
Post is under moderation
Remember as mentioned here under the controller section it can be a functiom. https://arastta.org/docs/developers/quick-start So i am not at my pc now but i believe it calls the success method on the checkout controller....
Stream item published successfully. Item will now be visible on your stream. -
-
Post is under moderation
Looking at the code I have inherited it seems that language/EN-GB/common/cart.php file is where its grabbing the value from. I would expect its the associated common/cart.php controller where its defined. But of course I could be wrong ...
Stream item published successfully. Item will now be visible on your stream. -