Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Checkout removing 'change your address' button

Checkout removing 'change your address' button

Locked

Views: 5,993

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
25 Jul 2008, 1:10 PM
#1
quality_beads avatar

quality_beads

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Checkout removing 'change your address' button

I want to remove the *'change your address' *button from 'step 1 of 3' and 'Step 2 of 3' from the checkout process.......

ALSO from step 3 of 3 in checkout process. I would like to remove the heading 'Billing/Payment Information' and the customers address that goes with it......

PLEASE HELP........ I NEED HELP SO I CAN SLEEP

https://www.quality-beads.com

25 Jul 2008, 1:23 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

To sleep, perchance to dream-
ay, there's the rub.
Hamlet

The default in zencart is to allow the customer up to 5 alternate addresses. If you set this to 0 in ADMIN>>>CONFIGURATION>>>MAXIMUM VALUES>>>Address Book Entries, then they will not be able to add alternative addresses.

I'll think about the second part to your query... but can't understand why this is losing you sleep?

25 Jul 2008, 1:37 PM
#3
quality_beads avatar

quality_beads

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

I been sitting at my computer for hours and hours trying to change sizes of font, colour of fonts etc etc. Now i'm nearly done, last step is the checkout process...... then I do not need to stay up until the wee hours of the morning.

Please help with removing the heading 'Billing/Payment Information' and the address that goes with it.

PLEASEEEEEE!!:blush:

25 Jul 2008, 1:57 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

Two steps to follow:-

  1. open the following file for editing:-

/includes/languages/english/checkout_payment.php

Find:-

define('TEXT_SELECTED_BILLING_DESTINATION', 'Your billing address is shown to the left. The billing address should match the address on your credit card statement. You can change the billing address by clicking the <em>Change Address</em> button.');

Change to what is shown below, and then save file to your template folder:-

/includes/languages/english/YOUR-TEMPLATE/checkout_payment.php

define('TEXT_SELECTED_BILLING_DESTINATION', ''); 

In other words, remove all the text between the ' ' delimiters, making sure NOT to delete the delimiters themselves!


  1. In stylesheet.css

Add the following to the bottom of the stylesheet:-

#checkoutPaymentHeadingAddress,  #checkoutBillto {
display: none;
}
25 Jul 2008, 2:11 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

OOPS...

Just re-read your post.

What I suggest above reacts with stage 2 of 3 in checkout

You want stage 3 of 3

In which case, simply add this to the bottom of the stylesheet:-

#checkoutConfirmDefaultBillingAddress,  #checkoutBillto {
display: none;
}

If you want both shipping and billing to go:-

#checkoutConfirmDefaultBillingAddress,   #checkoutConfirmDefaultShippingAddress, #checkoutBillto,  #checkoutShipto {
display: none;
}
26 Jul 2008, 6:53 AM
#6
quality_beads avatar

quality_beads

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

Gee, if you were next to me right now.... i'd kiss you.
Thanks heaps. Good night.:clap:

26 Jul 2008, 7:03 AM
#7
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

quality-beads:

Gee, if you were next to me right now.... i'd kiss you.

Are you a boy:yuck: or a girl:smile: ?

26 Jul 2008, 7:26 AM
#8
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

:lol:

Tina

26 Jul 2008, 7:34 AM
#9
quality_beads avatar

quality_beads

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

How do I centre the address thats left?? On 3 of 3 of the checkout process I removed the Billing address but left the shipping address but it remains on the right side of the page. How do I centre it?
Thanks AGAIN. Kim ( a girl)

26 Jul 2008, 7:48 AM
#10
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

Hello Kim

Fairestcape here :cool:

To center this MAY require some changes to the php template. I'm not sure. I'll see if I can work out what to do.

26 Jul 2008, 7:55 AM
#11
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

It may look better shifted LEFT - in which case the fix is easy...

Add this to the bottom of the stylesheet...

#checkoutConfirmDefaultShippingAddress,  #checkoutShipto {
float: left;
} 
28 Jul 2008, 4:30 PM
#12
quality_beads avatar

quality_beads

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

Hi Tina. I would really appreciate it. Thanks KIM

29 Jul 2008, 5:40 AM
#13
quality_beads avatar

quality_beads

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

Hi Tina
Thanks for your quick reply, I did what you said to align it to the left but it is not all aligned, looks pretty messy.

Could I possibly add a picture to the left side of it?

OR does anyone know how I could centre it, as that is what I would really prefer.

Thanks KIM

25 Sep 2008, 3:36 AM
#14
matchmanhattan avatar

matchmanhattan

New Zenner

Join Date:
Mar 2008
Location:
Montreal, Canada. Manhattan, New York, USA
Posts:
60
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

I did all you suggested, but in stage 2 of 3, it still says: "Your billing address is shown to the left. The billing address should match the address on your credit card statement. You can change the billing address by clicking the Change Address button. " , even though the change button is gone...

I then find it at the /includes/languages/english/checkout_shipping.php
and changed the wording to: "we will ship to the credit card billing address if you pay with credit card."

it gave me a blank page after I click proceed to step 3 of 3checkout. My site is: https://www.ftabonus.com

Help. Thanks. judy

25 Sep 2008, 3:39 AM
#15
matchmanhattan avatar

matchmanhattan

New Zenner

Join Date:
Mar 2008
Location:
Montreal, Canada. Manhattan, New York, USA
Posts:
60
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

I did all you suggested, but in stage 2 of 3, it still says: "Your billing address is shown to the left. The billing address should match the address on your credit card statement. You can change the billing address by clicking the Change Address button. " , even though the change button is gone...

I then find it at the /includes/languages/english/checkout_shipping.php
and changed the wording to: "we will ship to the credit card billing address if you pay with credit card."

it gave me a blank page after I click proceed to step 3 of 3checkout. My site is: https://www.ftabonus.com

Help. Thanks. judy


fairestcape:

Two steps to follow:-

  1. open the following file for editing:-

/includes/languages/english/checkout_payment.php

Find:-

define('TEXT_SELECTED_BILLING_DESTINATION', 'Your billing address is shown to the left. The billing address should match the address on your credit card statement. You can change the billing address by clicking the <em>Change Address</em> button.');

> 
> Change to what is shown below, and then save file to your template folder:-
> 
> /includes/languages/english/YOUR-TEMPLATE/checkout_payment.php
> 
> ```php
define('TEXT_SELECTED_BILLING_DESTINATION', ''); 

In other words, remove all the text between the ' ' delimiters, making sure NOT to delete the delimiters themselves!


  1. In stylesheet.css

Add the following to the bottom of the stylesheet:-

#checkoutPaymentHeadingAddress, #checkoutBillto {
display: none;
}

25 Sep 2008, 8:12 AM
#16
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

You have probably corrupted the php file during the edit. This happens if you edit using a program that is not a PLAIN TEXT editor, or if you neglect to follow PHP structure during the edit.

Edit PHP files with a PLAIN TEXT editor, (or a code editor, suitable for PHP).

Make sure you do not flout PHP structure rules.

26 Sep 2008, 3:17 AM
#17
matchmanhattan avatar

matchmanhattan

New Zenner

Join Date:
Mar 2008
Location:
Montreal, Canada. Manhattan, New York, USA
Posts:
60
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

How to fix it then?? Where can I get the file, checkout_shipping.php again? I tried to replace it with another file from zen cart with the same file name. It even got worse, I was not even pass through stage 1, it gave me a blank one when trying to open stage 2. Thank you very much.

fairestcape:

You have probably corrupted the php file during the edit. This happens if you edit using a program that is not a PLAIN TEXT editor, or if you neglect to follow PHP structure during the edit.

Edit PHP files with a PLAIN TEXT editor, (or a code editor, suitable for PHP).

Make sure you do not flout PHP structure rules.

26 Sep 2008, 6:17 AM
#18
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

When you downloaded Zencart from this site, you would probably have had to unzip it before you FTP'd it to your server. So, you should have a fresh copy of the file on your hard drive.

If you installed via Fantastico on your host server, then you will need to get a copy of the program (see home page on this site), download it and unzip it on your hard drive. Then read my first paragraph again.

25 Oct 2008, 4:13 PM
#19
beautyfx avatar

beautyfx

New Zenner

Join Date:
Oct 2008
Posts:
1
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

Following the steps I was able to remove the "change address" buttons in step 1 of 3 and step 2 of 3, but......

Step 3 of 3 still has these buttons, although it is not actual possible to change the address.

Anybody a clue on how to remove these buttons as well?

Greetings
Linda

26 Oct 2008, 2:02 AM
#20
matchmanhattan avatar

matchmanhattan

New Zenner

Join Date:
Mar 2008
Location:
Montreal, Canada. Manhattan, New York, USA
Posts:
60
Plugin Contributions:
0

Re: Checkout removing 'change your address' button

fairestcape:

When you downloaded Zencart from this site, you would probably have had to unzip it before you FTP'd it to your server. So, you should have a fresh copy of the file on your hard drive.

If you installed via Fantastico on your host server, then you will need to get a copy of the program (see home page on this site), download it and unzip it on your hard drive. Then read my first paragraph again.

Thank you very much for your help.

The change of address doesnt show anymore. That is great. Recently when I received my first 2 orders which were paid with paypal. There were no address shown to Paypal thus paypal said I ma not eligible the sellers protection.
Anything I have done wrong??

Thanks. Look forward to your insight.