Hikashop developing a payment plugin gateway

  • Posts: 48
  • Thank you received: 0
9 years 10 months ago #185823

I added this:

$mailer->isHTML(true);
to helper.php in modifyOrder() just before, $mailer->Send();
All good ,thanks.

I need to work on that javascript validation now

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 0
9 years 10 months ago #186567

Thank you for everything,
I added this code to hikashop.js:

if(type=='address' && typeof varform.elements['data[address][email]'] != 'undefined')
      {
	  var efield=varform.elements['data[address][email]'];
      var efilter = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
	  if(efield.value.length > 0 && !efilter.test(efield.value))
		  {alert("Bad email !");return false;}
      
      }

And now I have email filter in the address form.
Anyway, when you enter the address it doesn't show the extra fields I added in the address info displayed on the checkout page, it only shows the original data, name phone street and so on!

How can I get it to also display the new fields?

Last edit: 9 years 10 months ago by Saiah.

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 0
9 years 10 months ago #186569

Ok,
I have edited the address view and it all worked out, thanks.

Last edit: 9 years 10 months ago by Saiah.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum