Author Topic: Register button should be AFTER account details, not before  (Read 1523 times)

isurfedthere

  • Beginner
  • *
  • Posts: 10
Register button should be AFTER account details, not before
« on: March 21, 2014, 01:37:18 am »
I find this quite odd, and am wondering how to fix it. Check out this page, the "Register" and "Cancel" buttons come before all of the input fields:
https://hotrodgaragesale.com/web-store/my-account

It makes more sense (and is commonly accepted practice) for them to be the last items on the page after entering all of the relevant info. How can I change this?

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 834
  • VirtueMart Version: VM3 on J3
Re: Register button should be AFTER account details, not before
« Reply #1 on: March 23, 2014, 20:46:51 pm »
Simply make a template override for the user views and move the buttons to the end of the form. It's the same way like Joomla template overrides.

MAD King

  • Jr. Member
  • **
  • Posts: 289
  • VirtueMart Version: 3.0.6
Re: Register button should be AFTER account details, not before
« Reply #2 on: January 10, 2015, 23:23:11 pm »
I have the same issue, but cannot find the right file.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7654
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Register button should be AFTER account details, not before
« Reply #3 on: January 10, 2015, 23:45:14 pm »
Hmm - your not the hottest on the search -- search "register buttons" gave me plenty

e.g. http://forum.virtuemart.net/index.php?topic=127559.msg437322#msg437322
components\com_virtuemart\views\user\tmpl\edit_address.php
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MAD King

  • Jr. Member
  • **
  • Posts: 289
  • VirtueMart Version: 3.0.6
Re: Register button should be AFTER account details, not before
« Reply #4 on: January 10, 2015, 23:49:04 pm »
I found that and it was about captcha.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 7654
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.2
Re: Register button should be AFTER account details, not before
« Reply #5 on: January 11, 2015, 00:01:32 am »
and also included the full file and the changed code to put the buttons at the bottom
the name of the file is at the top of the code
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MAD King

  • Jr. Member
  • **
  • Posts: 289
  • VirtueMart Version: 3.0.6
Re: Register button should be AFTER account details, not before
« Reply #6 on: January 11, 2015, 00:03:34 am »
I just read the whole text after captcha. Thank you.
VM 3 is a little bit different.

ch1vph

  • Beginner
  • *
  • Posts: 21
  • A beginner
Re: Register button should be AFTER account details, not before
« Reply #7 on: July 22, 2017, 17:44:37 pm »
Add code below in file edit_vmshopper.php located at components/com_virtuemart/views/user/tmpl


Code: [Select]
<?php
/**
 *
 * Modify user form view, User info
 *
 * @package VirtueMart
 * @subpackage User
 * @author Oscar van Eijk
 * @link ${PHING.VM.MAINTAINERURL}
 * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * @version $Id: edit_shopper.php 9413 2017-01-04 17:20:58Z Milbo $
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

if(!
$this->userDetails->user_is_vendor){ ?>

<div class="buttonBar-right">
<button class="button" type="submit" onclick="javascript:return myValidator(userForm, true);" ><?php echo $this->button_lbl ?></button>
&nbsp;
<button class="button" type="reset" onclick="window.location.href='<?php echo JRoute::_('index.php?option=com_virtuemart&view=user'FALSE); ?>'" ><?php echo vmText::_('COM_VIRTUEMART_CANCEL'); ?></button>
</div>

<?php }
if( 
$this->userDetails->virtuemart_user_id!=0) {
    echo 
$this->loadTemplate('vmshopper');
}

echo 
$this->loadTemplate('address_userfields');

if (
$this->userDetails->JUser->get('id') ) {
  echo 
$this->loadTemplate('address_addshipto');
}

if(!empty(
$this->virtuemart_userinfo_id)){
echo '<input type="hidden" name="virtuemart_userinfo_id" value="'.(int)$this->virtuemart_userinfo_id.'" />';
}
?>

<input type="hidden" name="task" value="saveUser" />
<input type="hidden" name="address_type" value="<?php echo $this->address_type?>"/>

<div class="buttonBar-right">
<button class="button" type="submit" onclick="javascript:return myValidator(userForm, true);" ><?php echo $this->button_lbl ?></button>
&nbsp;
<button class="button" type="reset" onclick="window.location.href='<?php echo JRoute::_('index.php?option=com_virtuemart&view=user'FALSE); ?>'" ><?php echo vmText::_('COM_VIRTUEMART_CANCEL'); ?></button>
</div>

aftertaf

  • Jr. Member
  • **
  • Posts: 157
    • sO couture
  • VirtueMart Version: 3.2.8
Re: Register button should be AFTER account details, not before
« Reply #8 on: October 12, 2017, 14:42:41 pm »
can this view be overridden ?
if so what should the path to it be in the template ?

i'm trying to split the New user / existing user parts into 2 columns, but i cant find the files i need to override
Webmaster for my wife (link in my profile ;)
Extensions / plugins : POSForWebshops, TemplatecreatorCK ,MaximenuCK, and PageBuilderCK, VM BatchEdit Pro, VM CustomFilters Pro, Awocoupon Pro, slogin, supersaas,  among other things...
Joomla! 3.8.3//VM 3.2.8//PHP7.0.18 & mariadb 10.1.22 on Debian
big up to notepad++!!!!

aftertaf

  • Jr. Member
  • **
  • Posts: 157
    • sO couture
  • VirtueMart Version: 3.2.8
Re: Register button should be AFTER account details, not before
« Reply #9 on: October 12, 2017, 17:31:58 pm »
ok, i found out srt of how to do it.
combination of overridden edit.php and login.php
edit, in sublayouts folder in template, login in user folder.

Now il need to apply the 'button at bottom' thing you mentioned before i semihijacked the thread...
And get the titles to appear in the right columns.

i did the column thing by creating a new wrapper div and 2 'sub' divs, one per form. That and some CSS to set styles to the names divs, in the overridden LTR.css.

If anyone cares/is interested, ill document what i did once i'm happy with the result
Webmaster for my wife (link in my profile ;)
Extensions / plugins : POSForWebshops, TemplatecreatorCK ,MaximenuCK, and PageBuilderCK, VM BatchEdit Pro, VM CustomFilters Pro, Awocoupon Pro, slogin, supersaas,  among other things...
Joomla! 3.8.3//VM 3.2.8//PHP7.0.18 & mariadb 10.1.22 on Debian
big up to notepad++!!!!