SAVE 30% OFF on New Purchases, Renewals - No Minimum!
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest

Contact form in menu
(1 viewing) (1) Guest
Userguide, Report Bugs, New Ideas...
  • Page:
  • 1

TOPIC: Contact form in menu

Contact form in menu 6 years, 2 months ago #9883

Hello,

I am trying to make a contact form exactly like the one in your Restaurant template demo (a contact form which appears when I pass my mouse on the menu voice).
I've made a contact module with Youtech contact module and I assigned it to my menu voice, however I really can't figure out why it is not working....
Can you please help me to understand where I do wrong?

Thank you in advance for your help.

Laura
The topic has been locked.

Re: Contact form in menu 6 years, 2 months ago #9898

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Dear Laura Pierobon,

Could you please send your site url to us?

Thanks
Ticket System | Join our Clubs to download our extensions and templates
The topic has been locked.

Re: Contact form in menu 6 years, 2 months ago #9908

Hi,

I've submitted all site access data.
If you need anything else, just ask.

Thanks again for your help.

Laura
The topic has been locked.

Re: Contact form in menu 6 years, 1 month ago #9952

Dear Laura Pierobon,

Please go to Template Manager, choose Default Menu Style field is Mega menu in Top Menu Settings tab.

Then, please go to yoursite/templates/sj_restaurant25/html/mod_yt_contact/default.php and find:

function ytc_isValidEmail(email_str) {
			var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
			if (emailPattern.test(email_str)) {
				alert('<?php echo $thankyou; ?>);
				$currentForm.submit();
			} else {
				alert('<?php echo $emailerror; ?>');
			}
		}

=>
function ytc_isValidEmail(email_str) {
			var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
			if (emailPattern.test(email_str)) {
				alert("<?php echo $thankyou; ?>");
				$currentForm.submit();
			} else {
				alert("<?php echo $emailerror; ?>");
			}
		}


Because in your language, $emailerror=L'indirizzo email inserito non è valido, ti preghiamo di verificarlo
=>
alert('L'indirizzo email inserito non è valido, ti preghiamo di verificarlo '); will occur structure js error.

I fixed that, please go to your site to check again.

Thanks
The topic has been locked.
The following user(s) said Thank You: lula86

Re: Contact form in menu 6 years, 1 month ago #9978

Hi,

thank you very much, now all works fine!

Bye,

Laura
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.37 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Suggested Posts

(/)
Result not found!
SAVE 30% OFF on New Purchases, Renewals - No Minimum

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes