Close "Ask A Question" Popup

Phoca Cart - complex e-commerce extension
cesarsupport
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 26 May 2018, 14:53

Close "Ask A Question" Popup

Post by cesarsupport »

Hi.
I would like it when a person sends a question.
After receiving the message "Success", the "Ask A Question" Popup is closed.

I hope you can help me.

Kind regards.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Close "Ask A Question" Popup

Post by Jan »

Hi, I think the solution should be some javascript which will close the window in some time :idea:

Code: Select all

<script type='text/javascript'>
setTimeout(function () { window.close();}, 1000);
</script>
in question view. But it will be not so easy, it should close only in case the message was sent with success and to get such information, e.g. some variable in return string should be used :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply