Skip to main content

problem with save button using 'dropdown list'

More
11 years 4 months ago - 11 years 4 months ago #201887 by reders
-- 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
Last edit: 11 years 4 months ago by reders.

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

More
11 years 4 months ago #201905 by Jerome
Hi,

You can override the view "address | show" and move that part of
Code:
} 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
Code:
}
And then add the content
Code:
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
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.

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

Time to create page: 0.202 seconds
Powered by Kunena Forum