Can anyone tell me how to remove the address from the register form on this template?
http://www.opencartstore.com/index.php? ... duct_id=84
On my store i will be selling digital downloads so there is no need for the address fields. Im not the best with thit code so could you pleases tell me what code i remove and what file(s) i remove it from.
Thank you James.
http://www.opencartstore.com/index.php? ... duct_id=84
On my store i will be selling digital downloads so there is no need for the address fields. Im not the best with thit code so could you pleases tell me what code i remove and what file(s) i remove it from.
Thank you James.
To make it faster , you should use the search .
Here it is http://forum.opencart.com/viewtopic.php?f=20&t=28523
All the respect!
Here it is http://forum.opencart.com/viewtopic.php?f=20&t=28523
All the respect!
That was tha 1st think i looked at but the code is not the same as in my template.florinsith wrote:To make it faster , you should use the search .
Here it is http://forum.opencart.com/viewtopic.php?f=20&t=28523
All the respect!
Thanks James.
Hi florinsith here is the code from the create.tpl fileflorinsith wrote:Well , post your create.tpl , and lets see.
All the respect!
Code: Select all
<?php } ?></td>
</tr>
<tr>
<td><span class="required">*</span> <?php echo $entry_confirm; ?></td>
<td><input type="password" name="confirm" value="<?php echo $confirm; ?>" />
<?php if ($error_confirm) { ?>
<span class="error"><?php echo $error_confirm; ?></span>
<?php } ?></td>
</tr>
</table>
</div>
<b style="margin-bottom: 2px; display: block;"><?php echo $text_newsletter; ?></b>
<div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;">
<table>
<tr>
<td width="150"><?php echo $entry_newsletter; ?></td>
<td><?php if ($newsletter == 1) { ?>
<input type="radio" name="newsletter" value="1" checked="checked" />
<?php echo $text_yes; ?>
<input type="radio" name="newsletter" value="0" />
<?php echo $text_no; ?>
<?php } else { ?>
<input type="radio" name="newsletter" value="1" />
<?php echo $text_yes; ?>
<input type="radio" name="newsletter" value="0" checked="checked" />
<?php echo $text_no; ?>
<?php } ?></td>
</tr>
</table>
</div>
<?php if ($text_agree) { ?>
<div class="buttons">
<table>
<tr>
<td align="right" style="padding-right: 5px;"><?php echo $text_agree; ?></td>
<td width="5" style="padding-right: 10px;"><?php if ($agree) { ?>
<input type="checkbox" name="agree" value="1" checked="checked" />
<?php } else { ?>
<input type="checkbox" name="agree" value="1" />
<?php } ?></td>
<td align="right" width="5"><a onclick="$('#create').submit();" class="button"><span><?php echo $button_continue; ?></span></a></td>
</tr>
</table>
</div>
<?php } else { ?>
<div class="buttons">
<table>
<tr>
<td align="right"><a onclick="$('#create').submit();" class="button"><span><?php echo $button_continue; ?></span></a></td>
</tr>
</table>
</div>
<?php } ?>
</form>
</div>
<div class="bottom">
<div class="left"></div>
<div class="right"></div>
<div class="center"></div>
</div>
</div>
<script type="text/javascript"><!--
$('select[name=\'zone_id\']').load('index.php?route=account/create/zone&country_id=<?php echo $country_id; ?>&zone_id=<?php echo $zone_id; ?>');
$('#postcode').load('index.php?route=account/create/postcode&country_id=<?php echo $country_id; ?>');
//--></script>
<?php echo $footer; ?>
Thanks James.
It does not seem to me like that is all the code. Unless is continuationfor another file used to register. Please post all your files from the account folder (just their names).
All the respect!
All the respect!
All files inside account folder.florinsith wrote:It does not seem to me like that is all the code. Unless is continuationfor another file used to register. Please post all your files from the account folder (just their names).
All the respect!
password.tpl
newsletter.tpl
login.tpl
invoice.tpl
history.tpl
forgotten.tpl
edit.tpl
download.tpl
create.tpl
addresses.tpl
address.tpl
account.tpl
James.
Those are the same as in default.
Ask the theme developer how the Register works on that template.
All the respect!
Ask the theme developer how the Register works on that template.
All the respect!
florinsith wrote:Those are the same as in default.
Ask the theme developer how the Register works on that template.
All the respect!
Hi florinsith i did ask the theme developer...been waiting 4days for reply now.
Thats why i posted on here.
Thanks for looking James.
florinsith wrote:James , contact me at flo@shop-carts.net.
All the respect!
Ok i have sent you email thank you James.
For those of you that needs to remove the adress from the register form field , I allready modified the files and put them into your archive. You may backup the 3 files before overwrite them.
It should be compatible with all 149x
All the respect!
It should be compatible with all 149x
All the respect!
Attachments
Hello and thanks for this file.florinsith wrote:For those of you that needs to remove the adress from the register form field , I allready modified the files and put them into your archive. You may backup the 3 files before overwrite them.
It should be compatible with all 149x
All the respect!
It works fine
I used it before and I was not in open cart to write about it !
Thank you.
In catalog/language/english/checkout/guest_step.phprudhro_bd wrote:how to rename Guest Checkout form's fields?? in which files i'll need to edit??
i'm quite new in open cart, and also have very few code knowledge. currently i use oc v1.4.9.5.
with regards.
Just did the same thing on my 1.5.1.1 OC installation since I want to sell downloads and don't need addresses too.
For now I removed the fields from the checkout form.
First I removed error checks in catalog/controller/checkout/register.php, i.e. commented out
I wanted to keep the form as simple as possible so I only kept first name and email intact.
Then I had a choice to either hide the input fields in the default/template/checkout/register.tpl template or substitute it with my own template.
Since I was using vqmod to do my modifications, it was easier for me to make the controller load a different template instead of modifying the default one, so I changed the following lines in catalog/controller/checkout/register.php from
to
After that I copied the template register.tpl and added a style="display: none" to the fields I don't want to appear, including the whole "Address" div. I didn't remove them since I still need them to exist so they get passed to the controller and I don't get any undefined index warnings.
Basically that's it. Since I used vqmod for my modifications, all I need to do to revert everything back to normal is delete the xml file.
If you want to remove the fields from the account registration screen too, you'll need to do the same for controller/account/register.php and the corresponding template.
For now I removed the fields from the checkout form.
First I removed error checks in catalog/controller/checkout/register.php, i.e. commented out
Code: Select all
$json['error']['lastname'] = $this->language->get('error_lastname');
$json['error']['telephone'] = $this->language->get('error_telephone');
$json['error']['address_1'] = $this->language->get('error_address_1');
$json['error']['city'] = $this->language->get('error_city');
$json['error']['postcode'] = $this->language->get('error_postcode');
$json['error']['country'] = $this->language->get('error_country');
$json['error']['zone'] = $this->language->get('error_zone');
Then I had a choice to either hide the input fields in the default/template/checkout/register.tpl template or substitute it with my own template.
Since I was using vqmod to do my modifications, it was easier for me to make the controller load a different template instead of modifying the default one, so I changed the following lines in catalog/controller/checkout/register.php from
Code: Select all
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/checkout/register.tpl')) {
$this->template = $this->config->get('config_template') . '/template/checkout/register.tpl
$this->template = 'default/template/checkout/register.tpl';
Code: Select all
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/checkout/register-lite.tpl')) {
$this->template = $this->config->get('config_template') . '/template/checkout/register-lite.tpl';
$this->template = 'default/template/checkout/register-lite.tpl';
Basically that's it. Since I used vqmod for my modifications, all I need to do to revert everything back to normal is delete the xml file.
If you want to remove the fields from the account registration screen too, you'll need to do the same for controller/account/register.php and the corresponding template.
Actualy it is. At some point paypal is going to question some transactions because of the missing adress. Happened to me.
Who is online
Users browsing this forum: Bing [Bot] and 4 guests