problem with save button using 'dropdown list'

  • Posts: 100
  • Thank you received: 1
10 years 1 week ago #201887

-- url of the page with the problem -- : www.totalpipes.co.uk/
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.40
-- Browser(s) name and version -- : All browsers

Hi,

We built an ecommerce website using Hikashop, and are using the 'Dropdown List' for the address selector.

There is a serous usability issue that we need to fix.

In checkout, when someone unchecks 'Use the same address as for billing', the address form appears - which is good.

The problem is that the 'save' button appears at the top of the form!

So we've done some user testing and, when a user fills in their details, they naturally click 'Next' instead of the 'save' button.

I need to move the save button underneath the form, but this appears to be impossible because the form and save button seem to be loaded dynamically.

How do I go about moving the save button underneath the form?

Many thanks

Attachments:
Last edit: 10 years 1 week ago by reders.

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

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 1 week ago #201905

Hi,

You can override the view "address | show" and move that part of

	} else {
?>		<div class="hika_edit">
			<a href="<?php echo hikashop_completeLink($save_url, true);?>" onclick="return window.hikashop.form(this,'<?php echo $this->fieldset_id; ?>');"><img src="<?php echo HIKASHOP_IMAGES; ?>ok.png" alt=""/><span><?php echo JText::_('HIKA_SAVE'); ?></span></a>
			<a href="<?php echo hikashop_completeLink($show_url, true);?>" onclick="return window.hikashop.get(this,'<?php echo $this->fieldset_id; ?>');"><img src="<?php echo HIKASHOP_IMAGES; ?>cancel.png" alt=""/><span><?php echo JText::_('HIKA_CANCEL'); ?></span></a>
		</div>
<?php
	}
You can replace it by
	}
And then add the content
	if(!isset($this->edit) || $this->edit !== true ) {
?>		<div class="hika_edit">
			<a href="<?php echo hikashop_completeLink($save_url, true);?>" onclick="return window.hikashop.form(this,'<?php echo $this->fieldset_id; ?>');"><img src="<?php echo HIKASHOP_IMAGES; ?>ok.png" alt=""/><span><?php echo JText::_('HIKA_SAVE'); ?></span></a>
			<a href="<?php echo hikashop_completeLink($show_url, true);?>" onclick="return window.hikashop.get(this,'<?php echo $this->fieldset_id; ?>');"><img src="<?php echo HIKASHOP_IMAGES; ?>cancel.png" alt=""/><span><?php echo JText::_('HIKA_CANCEL'); ?></span></a>
		</div>
<?php
	}
below in the view, like just before that code
if(isset($this->edit) && $this->edit === true) {
	echo '<input type="hidden" name="data['.$name.'][address_id]" value="'.$this->address_id.'"/>';
	echo JHTML::_( 'form.token' );
}
Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.221 seconds
Powered by Kunena Forum