Author Topic: Registration Form layout  (Read 3591 times)

raunhar

  • Jr. Member
  • **
  • Posts: 241
Registration Form layout
« on: January 22, 2016, 06:33:43 am »
Joomla 3.4.8
VM: 3

http://pinkstory.in/index.php/component/virtuemart/user.html?Itemid=233

The register Button is at the top of the form, which is quiet awkward.

How can we show the buttons at the end of the form.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28314
  • Always on vacation
    • Jenkin Hill Internet
Re: Registration Form layout
« Reply #1 on: January 22, 2016, 23:43:10 pm »
The register button is at the bottom of the form........    But it is not a default VM template so see http://forum.virtuemart.net/index.php?topic=108212.0
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart  4.0.2 10661 on Joomla 3.10.9 PHP 7.4.29

raunhar

  • Jr. Member
  • **
  • Posts: 241
Re: Registration Form layout
« Reply #2 on: January 23, 2016, 06:04:35 am »
That was taken care of by the Template Developer, but he could not bring Captcha above the buttons.

Spiros Petrakis

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 103
    • yourgeek.gr
  • VirtueMart Version: Always latest Stable
Re: Registration Form layout
« Reply #3 on: January 24, 2016, 16:07:05 pm »
Open edit_address.php file and find this code (if your template has overrides for this file it should be in templates\YOUR_TEMPLATE\html\com_virtuemart\user folder )

Code: [Select]
<?php renderControlButtons($this,$rview); ?>

now move it just before this code

Code: [Select]
<input type="hidden" name="option" value="com_virtuemart"/>
Joomla templates and extensions development
https://www.yourgeek.gr

raunhar

  • Jr. Member
  • **
  • Posts: 241
Re: Registration Form layout
« Reply #4 on: January 25, 2016, 06:10:41 am »
Did the changes, but the captcha remained below the action buttons.

Spiros Petrakis

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 103
    • yourgeek.gr
  • VirtueMart Version: Always latest Stable
Re: Registration Form layout
« Reply #5 on: January 25, 2016, 09:03:51 am »
Sorry my fault, the files you need to modify are

1) edit.php - copy this code to use it in step two then  comment or remove it from edit.php

Code: [Select]
// captcha addition
if(VmConfig::get ('reg_captcha')){
JHTML::_('behavior.framework');
JPluginHelper::importPlugin('captcha');
$dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('onInit','dynamic_recaptcha_1');
?>
<div id="dynamic_recaptcha_1"></div>
<?php
}
// end of captcha addition

2) edit_shopper.php - i assume from your link that the buttons are already in the correct place so you need to add the above code just after this

Code: [Select]
if ($this->userDetails->JUser->get('id') ) {
  echo $this->loadTemplate('address_addshipto');
}
 

These changes will work if the template is using the standard vm3 view files but because it wont be easy to do the changes if you are not familiar with php and maybe you dont properly close the php tags  i have attached the modified files. 
Please first backup the original files before make any changes or replace them with the attached.
Joomla templates and extensions development
https://www.yourgeek.gr