Forums / Managing Customers and Orders / I want to remove the LOGOFF button

I want to remove the LOGOFF button

Locked

Views: 2,924

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
24 Apr 2008, 9:37 PM
#1
gifro10 avatar

gifro10

New Zenner

Join Date:
Mar 2008
Location:
Kelowna, BC
Posts:
34
Plugin Contributions:
0

I want to remove the LOGOFF button

Please see attachment - I've managed to edit all text the way I want on the checkout success page, but I can't get rid of the LOGOFF button.

If someone could let me know how that would be great, even if it means just replacing that button with a white one to make it "disappear". Not sure where to start.

I tried removing the following code from checkout_success.php but it accomplished nothing.

define('TEXT_CHECKOUT_LOGOFF_GUEST', '');
define('TEXT_CHECKOUT_LOGOFF_CUSTOMER', '');

Thanks!

Attachment #3835

25 Apr 2008, 3:38 AM
#2
ariana avatar

ariana

New Zenner

Join Date:
Nov 2007
Posts:
11
Plugin Contributions:
0

Re: I want to remove the LOGOFF button

There are two checkout_success.php files

1)includes/languages/english/checkout_success.php
2)includes/languages/english/html_includes/CUSTOM/define_checkout_success.php

-->Avoid modifying checkout_success.php as this may break the modular structure of your code.
-->You could modify the define_checkout_success.php through the admin control page as follow:

  1. Login to admin
  2. Select tools
  3. Select Define Page editor
  4. From the pulldown select define_checkout_success and edit the provided area with whatever you need.

Note: make sure you have the right permissions to edit and save to the file.

I hope this would help.

Take care

25 Apr 2008, 5:39 AM
#3
gifro10 avatar

gifro10

New Zenner

Join Date:
Mar 2008
Location:
Kelowna, BC
Posts:
34
Plugin Contributions:
0

Re: I want to remove the LOGOFF button

Thanks for replying, but define_checkout_success.php only allows for simple text edits, that's why I've looked for other options.

I've accomplished a lot so far that can't be done in the Define Page Editor, but yes I know that backing up files is important.

If anyone else knows how to hide that logoff button please let me know.

25 Apr 2008, 7:06 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: I want to remove the LOGOFF button

Why are you wanting to remove the button? It's there to remind customers to log out when they're finished shopping, rather than possibly leaving themselves logged in so someone can snoop in their personal data.

As to "where", it's in the template file for the checkout success page: tpl_checkout_success_default.php
OR, you could just hide it by adding the following in your stylesheet: ```
#checkoutSuccessLogoff {display: none;}

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

25 Apr 2008, 4:04 PM
#5
gifro10 avatar

gifro10

New Zenner

Join Date:
Mar 2008
Location:
Kelowna, BC
Posts:
34
Plugin Contributions:
0

Re: I want to remove the LOGOFF button

First off, thanks for letting me know where to find the logoff button code. Removing some code in that template file worked fine.

My users don't login at all with Zencart. I wanted to avoid all of that and just have them pay through PayPal - so I removed any options after the add to cart page except for PayPal Express.

That being said, will I run into problems having taxes and shipping show up correctly since users only ever login to PayPal and not to Zencart? Should the proper information transfer over correctly?

I'll post my tax issues elsewhere... :D

Thanks again

25 Apr 2008, 4:09 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: I want to remove the LOGOFF button

Of course you'll have problems with shipping and taxes ... Zen Cart uses the customer details to calculate those.
You're using it in a way it was not designed to operate.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

25 Apr 2008, 4:14 PM
#7
gifro10 avatar

gifro10

New Zenner

Join Date:
Mar 2008
Location:
Kelowna, BC
Posts:
34
Plugin Contributions:
0

Re: I want to remove the LOGOFF button

OK. I've just found that they are filling out so much information when all they need to do is pay and download.

I'll have to revert back and try to tweak how much info they need to provide. From what I read it's difficult to make certain fields not mandatory?

Thanks