I would like to put in a request for a Login button, where the checkout button would be, for Commerce when setup for instances, when a store requires that one must be logged in and a member to purchase from the site. Otherwise if setup for logged in users only to use, users will only see a view cart button, thought a log in link would add userfriendlyness.

Obviously sites that do not require someone to be logged in to purchase would not require such functionality as they are already shown a checkout button, in which case it would be hindrance instead if the login button could not be removed or even automatically removed. So a "log in button", would only need to be enabled on sites set up for "logged in" purchasing only.

Comments

rszrama’s picture

Do you suppose this could become part of the Checkout Login module instead?

jlhs’s picture

I guess a module would be the most ideal Ryan, that way the module would dictate if the user login was to be shown or not (Requiring a simpler setup I presume).

As for the http://drupal.org/project/commerce_checkout_login Checkout Login module. Thanks for pointing this out. It looks real useful and see myself using it soon. Since the module seems to be orientated around anonymous users, would perhaps a separate module just for making the link for logged in users be the go (Unless the checkout login module has a framework in it, that is already a base for such functionality?), a module dedicated to setups that only allow purchases from logged in users? I would write the module myself, but am not at a module writing level. But anyhow. Thought the log in link (Button), might be an interesting concept to throw out there, if it happens to be of interest to others.

rszrama’s picture

It could easily be an option added to the Checkout Login module I think. Those buttons / links are defined and access controlled via a hook, so Checkout Login can provide them disabled by default and when enabled only show them if the permissions are such that login is required before checkout. That should accomplish it, right?

jlhs’s picture

It sounds like it would accomplish it. It sounds like the Checkout Login module would be the base for such functionality from what you have said, particularly with the permissions being checked or not.

rszrama’s picture

Title: Login button, where checkout button normally would be, for non logged in users for sites that must require login to purchase » Add buttons / links to enforce login prior to checkout
Project: Commerce Core » Commerce Checkout Login
Version: 7.x-1.1 » 7.x-1.x-dev
Component: Line item » Code

Great, let's move this feature request there and see what happens. : )

legolasbo’s picture

Issue summary: View changes

Closing this as a duplicate of #2009986: Add capability to require login for existing and new users which has been more active.

legolasbo’s picture

Status: Active » Closed (duplicate)