- Posts: 86
- Thank you received: 11
Success message when Vote
-- Joomla version -- : 3.8.7
I've tried to add a simple success message to the onclick event for sending a review and rating in but when the success message is added, the comment function ceases functioning. Can someone help me add a "Message Received" alert or <p> element to the vote/form file?
Here is my existing code that "should" work but doesn't:
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
I just tested your modification and it worked fine on my end so you're probably having a JavaScript error on your website which prevent your JavaScript code to be triggered.
Best regards,
Mohamed Thelji.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
We would need to see the page with the issue to be able to say more.
Right now, without the code modified and with the form only available if you already purchased the product, we can't see anything.
If you can't do it on your live website, then try making a copy of the website so that we can look at the issue on the copy.
Also, I would recommend something simpler like:
That's why everything you see in the code of HikaShop is prefixed with hikashop so that there is no conflict with something else.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
What do you exactly mean by :
Alert displays just fine but its like it won't allow the comment to send some how. I'm at a loss.
Can you give us more information about it through some screenshots for example ?
Also can you give us a link where we can reproduce and test the issue you are having ?
Thank you.
Please Log in or Create an account to join the conversation.
Here's the new code if anyone else wants to replicate:
Please Log in or Create an account to join the conversation.
Can you help us add the necessary code?
Please Log in or Create an account to join the conversation.
Please do not duplicate your posts.
www.hikashop.com/forum/install-update/89...er-hasn-t-rated.html
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
The solution for that customization will probably be to directly customize the "Mini" file of the "Vote" view of your front-end template but also the "vote.js" file.
Best regards,
Mohamed Thelji.
Please Log in or Create an account to join the conversation.