Cancel button on the Contact Form

  • Posts: 152
  • Thank you received: 0
13 years 2 months ago #25072

Hi, Nicolas.

Please could you tell me what code I would add to the contact.php form to add a Cancel button just below the OK button. A site reviewer requested such a button to return the viewer to the Product Page if they decided not to send a message.

Thanks

Jim

Last edit: 13 years 2 months ago by Jims.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #25074

Hi,
You can edit the file "contact" via the menu Display->Views and add the code:
<button type="button" onclick="history.back();"><img src="<?php echo HIKASHOP_IMAGES; ?>cancel.png"/><?php echo JText::_('HIKA_CANCEL'); ?></button>

after the code:
<button type="button" onclick="submitform('send_email');"><img src="<?php echo HIKASHOP_IMAGES; ?>ok.png"/><?php echo JText::_('OK'); ?></button>

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

  • Posts: 152
  • Thank you received: 0
13 years 2 months ago #25077

Many thanks, Nicolas, for this and for your amazing, ongoing support.

Jim

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

Time to create page: 0.054 seconds
Powered by Kunena Forum