News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Register button should be AFTER account details, not before

Started by isurfedthere, March 21, 2014, 01:37:18 AM

Previous topic - Next topic

isurfedthere

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

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

I have the same issue, but cannot find the right file.
Joomla! 4.3.4
VirtueMart 4.2.4 10922

GJC Web Design

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MAD King

Joomla! 4.3.4
VirtueMart 4.2.4 10922

GJC Web Design

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MAD King

I just read the whole text after captcha. Thank you.
VM 3 is a little bit different.
Joomla! 4.3.4
VirtueMart 4.2.4 10922

ch1vph

Add code below in file edit_vmshopper.php located at components/com_virtuemart/views/user/tmpl


<?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

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

aftertaf

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