Skip to main content

Move OK & Cancel Buttons

More
6 years 11 months ago #312415 by Uriel
-- 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.

More
6 years 11 months ago #312427 by nicolas
Replied by nicolas on topic Move OK & Cancel Buttons
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.178 seconds
Powered by Kunena Forum