Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: How to remove email from Bill To display

How to remove email from Bill To display 5 years 10 months ago #13639

This is an odd one.
For some reason the address on the Bill to is showing as

Mr This email address is being protected from spambots. You need JavaScript enabled to view it.
John Smith
1 High Street
sometown
etc

I dont want the email address to show at all as i think it may be off putting for sales, can you tell me please how to remove it and have it correctly show the name at the top instead ?
many thanks

this is on www.topiary-balls.co.uk and i attach a screenshot to show this happening


Attachment topiary.png not found

The administrator has disabled public write access.

How to remove email from Bill To display 5 years 10 months ago #13650

Hi Richard,

Looks like you messed the sorting of fields via VM Backend >> Shopper Fields, "email" field comes after "title" field, but "first_name" should have come after the "title" field. Actually the sorting should have been:
  1. Email
  2. Title
  3. First Name
  4. Last Name
  5. and others...
You can change the sorting of fields via VM Backend >> Shopper Fields (so the email will be printed at the top)

If you insist on hiding the email (i would recommend you to leave it at the top), you need a hard coding. Apply this modification below to hide the "Email" from there:

1- open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/default_pricelist.php

2- Find these lines:
foreach($this->cart->BTaddress['fields'] as $item){
	 if(!empty($item['value'])){

3- Replace it with this:
foreach($this->cart->BTaddress['fields'] as $item){
	 if(!empty($item['value']) and $item['name'] != 'email'){

4- That's all. the email won't be printed there.

Regards.
Last Edit: 5 years 10 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.141 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo