Zen Cart Logo
Forums / General Questions / Cart login in page ??

Cart login in page ??

Views: 1,826

Results 1 to 20 of 23
22 Dec 2011, 6:41 PM
#1
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Cart login in page ??

Hi, I have set a cart to require user log in. Is there a way or setting I can use that will not offer the user I place to input his information and request access. I just want a log in with no other options or anything else on the page. I'm not sure this can be done.
Thanks,
Mark :smile:

22 Dec 2011, 8:18 PM
#2
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Cart login in page ??

Hi,
I posted this question twice now the first time you moved it to another question which was answered with a similar title but TOTALLY DIFFERENT. Then you deleted the second one I re-posted.

I have set a cart to require user log in. Is there a way or setting I can use that will not offer the user a place to input his information and request account access. I just want a log in with no other options or anything else on the page. I'm not sure this can be done.
Thanks,
Mark

22 Dec 2011, 9:53 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Cart login in page ??

Posting a question in multiple threads, especially when you hijack another Zenner's thread is, quite properly, frowned upon here.

You will need to edit tpl_login_default.php and tpl_modules_create_account.php.

22 Dec 2011, 10:44 PM
#4
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Cart login in page ??

Hi Stevesh,
I did not mean to keep re posting this question more than once. The first time I posted it I found it moved to a previous question I had posted that in fact YOU had answered for me. It was labeled "differint login ?" if you look at it you will see that this question was moved to the bottom of that question. Not sure why two different questions.
I re-posted the question and it was removed.
So I re-posted it again with the "Answer it - Stop move it" title because it was a different question I needed answered. I would never hack any one's question. If I did I have no idea how it happened.
In regards to this statement.

You will need to edit tpl_login_default.php and tpl_modules_create_account.php.

Are their items I need to toggle on and off?

Sorry if I got someone wound up. Trying to do things correctly just when I saw it moved to the old question I know from experience that no one would go back to it and answer the portion that was moved.

23 Dec 2011, 5:05 AM
#5
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Cart login in page ??

Why would you want your website login only if you don't want any customer information?

That is just silly

They have to create an account which asks identifying questions to be able to get log in info or you could have multiple johns and marys with the same passwords.

23 Dec 2011, 3:13 PM
#6
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Cart login in page ??

HI,
Well If you are using the cart to screen members to a private club or restricted content and you are going to use the admin to add the members their is no need for it and no place for lets say "people to play".
Their may be only 1 account name and password for access. This just removes confusion for some people. You can do many things with the cart. Just have to use your imagination. Just a great product.

23 Dec 2011, 3:54 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Cart login in page ??

The reason you are getting "strange" answers, is because we have no idea what you are trying to achieve.

True... you can use this software anyway you want to - it does not have to be for an eCommerce webshop...

... but unless we all KNOW what you are trying to achieve (and for what purpose), we cannot really offer any useful advice.

23 Dec 2011, 5:21 PM
#8
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Cart login in page ??

OK if you are a private club you set up an account and then give them the master user name and password.

If this does not work then shut up and use some other software as zen cart is not intended for a private club where customers log in to PLAY

23 Dec 2011, 5:28 PM
#9
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Cart login in page ??

Hi Schoolboy,
Thank for the reply. Sorry, I some times forget to say how I am using the cart. I WILL try to remember it next time I have a question. This will help those understand what I am trying to accomplish.
I am modifying a cart to enter a members area that will have content that only they can see. This way page content will be easy to change by none technical staff. I really only wanted the log in on the cart to appear.
I was hoping their was just a easy way to enable and dis-able this function. Looking at the code it does not look like a easy thing to change. If you want to point out what safely can be removed I will thank you in advance.
Mark :smile:

23 Dec 2011, 5:54 PM
#10
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Cart login in page ??

Hi usernamenone,
I think you should make sure you have your facts straight before you comment.

1st - No one is log in in to play anything. I just do not want anyone entering a bunch of crap in to the create an account and submitting it. Just more maintenance to do then to remove them. If it is not their it can not be done, Right.

2nd - I have a few dozen carts doing all kinds of thing including showing or selling products. All in your imagination on how to use it. I don't tell you how to use your software do I?

I come here where the experts who design this program can provide me with answers whether I can do what I'm attempting or not, or why it is not working the way it should. Not to have a fellow user tell me shut up and use another program.
Been working on PCs since 86 and one thing I have found is their is always more than one way to do something on a PC.

Happy Holidays,
Mark :smile:

23 Dec 2011, 6:01 PM
#11
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Cart login in page ??

No easy way, no. As I said, you will need to edit tpl_login_default.php and tpl_modules_create_account.php.

I've done this myself, and it isn't that difficult. Most of the Zencart template files are pretty well commented and you can see the various sections that you'll want to remove.

The beauty of the Zencart override system is that you can place those files in your override folders after editing them and, if you make a mistake, just remove them to restore your site.

23 Dec 2011, 7:27 PM
#12
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Cart login in page ??

Hi Stevesh,
Thanks for the reply on this eve of eves.
I will start with GO SPARTANS beat Georgia, though sure they would and should have beaten Wisconsin hands down for the Rose Bowl. I'm located between Jackson and Adrian. Sorry forum followers got side tracked.

So you are saying if I copy these 2 files to the override folder and edit them their they should produce the effect on the output and if they blow up the cart just delete them and all will be back and well?

I have started rem-ing out lines to see the effect on the cart page but have not gotten the results yet. If you have ideas what I need to do away with shoot them at me and I give them a try. All I care about is having the login ID box and password box show. All the rest is cannon fodder.

Thank you again for your patients and help.
Though it does not look like it will be white for us have a Merry Christmas. :smile:
Mark

23 Dec 2011, 7:48 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Cart login in page ??

Why not just enable the split-page-login switch in your admin?

23 Dec 2011, 7:50 PM
#14
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Cart login in page ??

Go Spartans (and also please root for Clemson against West Virginia - my nephew teaches there).

That's right. That's the whole idea of the override system.

Try this - remove everything from tpl_modules_create_account.php except:

<?php
/**
 * Page Template
 *
 * Loaded automatically by index.php?main_page=create_account.<br />
 * Displays Create Account form.
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
 * @version $Id: tpl_modules_create_account.php 4822 2006-10-23 11:11:36Z drbyte $
 */
?>

<?php if ($messageStack->size('create_account') > 0) echo $messageStack->output('create_account'); ?>

and remove these three lines from tpl_login_default.php:

<?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);" id="createAccountForm"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
<fieldset>
<legend><?php echo HEADING_NEW_CUSTOMER; ?></legend>


<div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div>



<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT); ?></div>

and if you set Admin - Configuration - Customer Details - Customer Shop Status - View Shop and Prices to 1, you should see this on your main page:

http: //www.stevesh.org/demo

23 Dec 2011, 8:07 PM
#15
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Cart login in page ??

Hi Doc!! Been awhile!! Hope you have been well...
Well, I did try that but it still puts up the box New Customers with a sign up button.

New Customers
Create a Customer Profile with Devils Lake Yacht Club which allows you to shop faster, track the status of your current orders, review your previous orders and take advantage of our other member's benefits. SIGN UP

This would still offer someone the place to input information which is what I don't want to offer them. IF they don't already have the ID and password provided for them they don't get in.

Also Thank you Stevesh I will try your suggestion and see what I get. Again Thank you Sooooo much.

You Both have a Merry Christmas and a Happy Holiday.
Mark

23 Dec 2011, 8:59 PM
#16
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Cart login in page ??

Hi Stevesh,
That is just about perfect. I have to turn the split log in back off and that gave me what I wanted except can I remove the "forgot password" line and link also?
Thanks,
Mark

23 Dec 2011, 9:17 PM
#17
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Cart login in page ??

I'm thinking you don't want to do that. What happens if one of your 'customers' does in fact lose his/her password ?

23 Dec 2011, 9:23 PM
#18
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Re: Cart login in page ??

Hi Stevesh,
If some one loses the ID or password we want them to have to contact the club manager to get it. If they forget it we want that to be the only option they have.
Thanks. Mark

24 Dec 2011, 9:31 AM
#19
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Cart login in page ??

We did some modifications to a DEMO site and got THIS EFFECT

24 Dec 2011, 10:45 AM
#20
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Cart login in page ??

maperr55:

Hi Stevesh,
If some one loses the ID or password we want them to have to contact the club manager to get it. If they forget it we want that to be the only option they have.
Thanks. Mark

Assuming that they haven't already changed it (by logging in and going to My Account), in which case you won't have any way of knowing what it is. Passwords are encrypted in the database.

At any rate, you can remove this line from tpl_login_default.php:

<div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>