Move OK & Cancel Buttons

  • Posts: 89
  • Thank you received: 2
5 years 4 months ago #312415

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : None

Hey!

I would like to move the OK & Cancel Buttons on the Contact Form and I placed this code:
<div class="toolbar" id="toolbar" style="float: right;">
<button class="hikabtn hikabtn-success" type="submit"><i class="fa fa-check"></i> <?php echo JText::_('OK'); ?></button>
<?php if(hikaInput::get()->getCmd('tmpl', '') != 'component') { ?>
<button class="hikabtn hikabtn-danger" type="button" onclick="history.back(); return false;"><i class="fa fa-times"></i> <?php echo JText::_('HIKA_CANCEL'); ?></button>
<?php } ?>
</div>

at the Bottom of the Product / Contact - View file.
It works and moved the Buttons to the bottom but the form posting stops functioning.
Could you please point me in the correct direction?

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

  • Posts: 83410
  • Thank you received: 13503
  • MODERATOR
5 years 4 months ago #312427

Hi,

You can indeed to that.
However, you need to move the HTML just before the tag </form>
Otherwise, if the buttons are outside the contact form form tag, the buttons won't do anything when you click on them.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum