Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to change "Submit" button Properties to different url?

How to change "Submit" button Properties to different url?

Locked

Views: 9,152

Results 1 to 20 of 28
This thread is locked. New replies are disabled.
3 Oct 2007, 10:08 AM
#1
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

How to change "Submit" button Properties to different url?

Hi. Is there a way to change the properties of the "Submit" button to make it go straight to checkout?

9 Oct 2007, 1:32 PM
#2
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

Re: How to change "Submit" button Properties to different url?

actorxfactor:

Hi. Is there a way to change the properties of the "Submit" button to make it go straight to checkout?

Sorry to bump this but I am totally stuck on this problem, and I can't progress any further with my site until it's resolved.

To go into a bit more detail, on my site, when you checkout and click on "submit" it takes the customer back to the main site, and in order to complete the checkout you have to click on "Checkout" I presume this is the default settings for zencart, but this poses a problem for me as the customer is then able to view members only pages without having actually paid for the suscription. Consequently I need the "submit" button to be changed so that the it takes the customer straight to checkout where they will enter their payment details, and then be allowed to access the members only pages.

Any suggestions will be greatly appreciated,
Thanks,
Gordon.

https://www.actorxfactor.co.uk

9 Oct 2007, 3:21 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: How to change "Submit" button Properties to different url?

actorxfactor:

To go into a bit more detail, on my site, when you checkout and click on "submit" it takes the customer back to the main site, and in order to complete the checkout you have to click on "Checkout" I presume this is the default settings for zencartNo, it is not the default.

What's different between your site and a fresh install?
What addons/contributions are installed?
What version of Zen Cart?
What payment modules are active?
Please explain in a lot more detail what you mean with what's happening at every click.

Zen Cart's checkout is:
a) add to cart
b) review shopping cart
c) begin checkout: login if necessary, or create an account
d) specify shipping
e) specify payment choice
f) confirm order
g) order-success confirmation
h) logout or go to my account to review order history, or do new shopping

How does your site differ from this, and why?
What customizations have you made to handle "subscriber only" content? Sounds like something in that is creating confusion and breaking the normal flow.

9 Oct 2007, 4:19 PM
#4
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

Re: How to change "Submit" button Properties to different url?

Addons/contributions: Applezen Template
Zen Cart version 1.3.7
Credit Card payment module active
(No shipping - virtual product)

I have set up EZ pages so that they can only be accessed by a customer who is logged in using information from this thread:
http://www.zen-cart.com/forum/showthread.php?t=63890&highlight=members+pages

  1. Customer selects an audition by clicking on "Apply Now" which is an html button/link in the product description
    2)This takes the customer to the main login page, customer is given the choice of sign up or login
    3)By clicking "Sign Up" button customer is taken to the product page which has 4 options (type of membership
    1 month, 1 year etc)
  2. Customer selects option (by check box) and clicks "Subscribe" button (which is "add to cart" button renamed)
    this takes customer to review shopping cart page
  3. Customer clicks "Go to Checkout" button which takes them to "enter personal details" page
    customer enters name/address/email/password
    6)Customer clicks "submit" button and this takes them to an EZ page which is the details of the audition that I
    want to be seen only by logged in paid up members.

This is where the problem lies because the customer can now view any EZ pages because they are logged in but haven't
completed the checkout process.

Any help would be greatly appreciated:)
Gordon

9 Oct 2007, 10:25 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: How to change "Submit" button Properties to different url?

actorxfactor:

  1. Customer selects an audition by clicking on "Apply Now" which is an html button/link in the product description
    2)This takes the customer to the main login page, customer is given the choice of sign up or login
    3)By clicking "Sign Up" button customer is taken to the product page which has 4 options (type of membership
    1 month, 1 year etc)
  2. Customer selects option (by check box) and clicks "Subscribe" button (which is "add to cart" button renamed)
    this takes customer to review shopping cart page
  3. Customer clicks "Go to Checkout" button which takes them to "enter personal details" page
    customer enters name/address/email/password
    6)Customer clicks "submit" button and this takes them to an EZ page which is the details of the audition that I
    want to be seen only by logged in paid up members.

I haven't even visited your site, and you have me confused.
In step (2) am I looking at the Zen Cart login screen or some other screen?
In step (5) am I looking at the Zen Cart login screen as part of checkout, or something else? What is the "enter personal details" page, and how is it different from the previous screens?
In step (6) what is the "submit" button all about? Zen Cart's buttons are labelled "continue" and "confirm". Also, why would you be taking them to an EZ-Page at this stage anyway? You shouldn't take them anywhere until they've completed checkout with payment.
Additionally, without reading the thread you linked, I'm uncertain whether you've got any security around the viewing of the EZ-Page for "subscribed" members vs "any logged-in" member. Maybe that's an additional part of the problem.

10 Oct 2007, 9:11 AM
#6
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

Re: How to change "Submit" button Properties to different url?

I haven't even visited your site, and you have me confused.
In step (2) am I looking at the Zen Cart login screen or some other screen?
In step (5) am I looking at the Zen Cart login screen as part of checkout, or something else? What is the "enter personal details" page, and how is it different from the previous screens?
In step (6) what is the "submit" button all about? Zen Cart's buttons are labelled "continue" and "confirm". Also, why would you be taking them to an EZ-Page at this stage anyway? You shouldn't take them anywhere until they've completed checkout with payment.
Additionally, without reading the thread you linked, I'm uncertain whether you've got any security around the viewing of the EZ-Page for "subscribed" members vs "any logged-in" member. Maybe that's an additional part of the problem

Hi, Thanks for your reply.

Sorry to have confused you.

In step (2) You are looking at the zen cart login screen
In step (5) You are looking at the Zen Cart login screen as part of checkout
The Enter personal Details page is the "Create Account" page of zen cart checkout where you would enter Name/Address/Email etc (Sorry, that was not clear)
The "Submit" Button is at the bottom of the create account page. Is that not standard? I don't recall making any changes there? Maybe an applezen template thing?

Also, why would you be taking them to an EZ-Page at this stage anyway? You shouldn't take them anywhere until they've completed checkout with payment.

Herein lies my problem, I don't want this button to go to the EZ page I want it to continue with the checkout

Additionally, without reading the thread you linked, I'm uncertain whether you've got any security around the viewing of the EZ-Page for "subscribed" members vs "any logged-in" member. Maybe that's an additional part of the problem.

Actually I want the EZ pages only to be viewed by subscribed members but surely you can't login unless you have paid the subscription (Subscribed)

Here is the code that I added to make the EZ pages accessible only by logged in members:

// all ez-pages will direct visitors to login unless the ez-page's id's are included in this 'if' statement
if ($ezpage_id == 48 || $ezpage_id == 49) {
} else if (!$_SESSION['customer_id']) {
$_SESSION['navigation']->set_snapshot();
zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
}

In this example, if I have 100 ez-pages, all of them will redirect to the login page except for the two with id's 48 and 49.

I really hope you can make some sense of all this, thanks for trying to help:smile:

10 Oct 2007, 10:38 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: How to change "Submit" button Properties to different url?

You're using ez-pages as product pages, and product pages as information pages.
You've got the function of checkout buttons reprogrammed somehow.
You've got some sort of very confusing changes to normal flow whereby starting checkout (even if already logged in) asks you to log in again.

I'm not sure what you've done to get this confused flow. There have been some very odd decisions made about what to do where and when, and customers are going in endless loops.
I have no idea how to tell you how to fix it ... and afraid to even try ...

Additionally, your logic is flawed with respect to being able to see certain things only if logged in. When a customer creates an account in order to checkout, they are logged in. If you want to ensure that the person has paid their membership before being able to see certain content, you're going to have to use some other sort of method. Perhaps make them a member of a certain customer group using the Customer Group Pricing facility. You don't have to give them any discounts, just create a group. Then if the logged-in-customer is a member of the group, let them see the pages, rather than just checking if they're logged in. It appears that you're allowing folks to sign up with any old credit card value, so you'll probably be manually adding folks to the group after you've verified payment etc.

11 Oct 2007, 7:02 PM
#8
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

Re: How to change "Submit" button Properties to different url?

DrByte:

You're using ez-pages as product pages, and product pages as information pages.
You've got the function of checkout buttons reprogrammed somehow.
You've got some sort of very confusing changes to normal flow whereby starting checkout (even if already logged in) asks you to log in again.

I'm not sure what you've done to get this confused flow. There have been some very odd decisions made about what to do where and when, and customers are going in endless loops.
I have no idea how to tell you how to fix it ... and afraid to even try ...

Additionally, your logic is flawed with respect to being able to see certain things only if logged in. When a customer creates an account in order to checkout, they are logged in. If you want to ensure that the person has paid their membership before being able to see certain content, you're going to have to use some other sort of method. Perhaps make them a member of a certain customer group using the Customer Group Pricing facility. You don't have to give them any discounts, just create a group. Then if the logged-in-customer is a member of the group, let them see the pages, rather than just checking if they're logged in. It appears that you're allowing folks to sign up with any old credit card value, so you'll probably be manually adding folks to the group after you've verified payment etc.

Thanks a lot for taking the time to check it all out. I think starting again from scratch is the only option. The customer group pricing option looks like a possibility.

What I need to be able to do is this:

(My products will be (4) different membership options.)

  1. Have a list of auditions (broken down into categories) which can be browsed by anyone
  2. For each audition I need a separate page which will have the details of how to apply for the audition. (this is to be accessible only by paid-up members)

Is this possible using zen cart!

Damn I hope so :smile:

12 Oct 2007, 3:09 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: How to change "Submit" button Properties to different url?

You'll need to write code to track subscription status vs expiry, and then come up with a way to show protected content only if the viewer is logged in and has a valid subscription.

You could create a second product description which contains the protected content, and only show that content if authorized. You'd have to repeat the audition information for each talent opportunity, but that's a minor issue. The nice thing about having it all on one page would be the ease of printing it off and knowing "what" the audition details apply to, vs the more generic approach I currently see on your site.

The coding of a second product description would be a custom job. There's a "product short description" mod available in the downloads area that could be adapted ... you wouldn't need the product-listing portion of it ... instead, use the extra field for displaying the protected content under the right circumstances.

In cases where the viewer is not authorized, you could present a button which links to the buy-a-membership page, perhaps with a bit of descriptive text explaining that the button will be replaced with audition details once they've subscribed and payment has been validated.

Your custom subscription code could even include a way to send emails to notify subscribers if their subscription is coming to an end in the next month, with a link to the buy-a-membership page.

Those are some thoughts of ways you could address your needs based on how I interpret them to mean.

16 Oct 2007, 9:39 PM
#10
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

Re: How to change "Submit" button Properties to different url?

DrByte:

You'll need to write code to track subscription status vs expiry, and then come up with a way to show protected content only if the viewer is logged in and has a valid subscription.

You could create a second product description which contains the protected content, and only show that content if authorized. You'd have to repeat the audition information for each talent opportunity, but that's a minor issue. The nice thing about having it all on one page would be the ease of printing it off and knowing "what" the audition details apply to, vs the more generic approach I currently see on your site.

The coding of a second product description would be a custom job. There's a "product short description" mod available in the downloads area that could be adapted ... you wouldn't need the product-listing portion of it ... instead, use the extra field for displaying the protected content under the right circumstances.

In cases where the viewer is not authorized, you could present a button which links to the buy-a-membership page, perhaps with a bit of descriptive text explaining that the button will be replaced with audition details once they've subscribed and payment has been validated.

Your custom subscription code could even include a way to send emails to notify subscribers if their subscription is coming to an end in the next month, with a link to the buy-a-membership page.

Those are some thoughts of ways you could address your needs based on how I interpret them to mean.

Hi.
I have started the site from scratch on my localhost, and you'll be pleased to know that I have made NO alterations to the shopping cart flow. I think I'm getting close to cracking it but there's one issue which is still bugging me. Is it possible when a customer clicks "Login" that only the login/password fields are seen and not the New? Please Provide Your Billing Information section? If so that would solve the members only pages issue, as the only way you can be logged in is if you have purchased a membership and completed the checkout.

16 Oct 2007, 9:45 PM
#11
drbyte avatar

drbyte

Sensei

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

Re: How to change "Submit" button Properties to different url?

actorxfactor:

Hi.
I have started the site from scratch on my localhost, and you'll be pleased to know that I have made NO alterations to the shopping cart flow. I think I'm getting close to cracking it but there's one issue which is still bugging me. Is it possible when a customer clicks "Login" that only the login/password fields are seen and not the New? Please Provide Your Billing Information section? If so that would solve the members only pages issue, as the only way you can be logged in is if you have purchased a membership and completed the checkout.

Try flipping the switch at: Admin->Configuration->Layout Settings->Use split-login page:> Use split-login page

The login page can be displayed in two modes: Split or Vertical.
In Split mode, the create-account options are accessed by clicking a button to get to the create-account page. In Vertical mode, the create-account input fields are all displayed inline, below the login field, making one less click for the customer to create their account.
Default: False
Options:
-True
-False

17 Oct 2007, 1:36 AM
#12
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

Re: How to change "Submit" button Properties to different url?

DrByte:

Try flipping the switch at: Admin->Configuration->Layout Settings->Use split-login page:

I've already tried that, it doesn't change anything except placing login and create account side by side rather than one above the other. Actually I'm in exactly the same position as I was with my first attempt except the cart is still intact..which I guess is a step forward:smile:

17 Oct 2007, 2:38 AM
#13
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: How to change "Submit" button Properties to different url?

I will try to help you in the morning.
nomad

17 Oct 2007, 3:13 AM
#14
drbyte avatar

drbyte

Sensei

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

Re: How to change "Submit" button Properties to different url?

actorxfactor:

Hi.
I have started the site from scratch on my localhost, and you'll be pleased to know that I have made NO alterations to the shopping cart flow. I think I'm getting close to cracking it but there's one issue which is still bugging me. Is it possible when a customer clicks "Login" that only the login/password fields are seen and not the New? Please Provide Your Billing Information section? If so that would solve the members only pages issue, as the only way you can be logged in is if you have purchased a membership and completed the checkout.
I'm not convinced it'll solve your members-only issue completely.

However, if you want to remove all create-account capabilities from the login page, create a tpl_login_default.php file in your template override folder, and put this in it:

<div class="centerColumn" id="loginDefault">

<h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

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

<?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
<fieldset>
<legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>

<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?>
<br class="clearBoth" />

<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?>
<br class="clearBoth" />
</fieldset>

<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div>
<div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div>
</form>
<br class="clearBoth" />

<?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . 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>

<?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>

</fieldset>

<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT); ?></div>
</form>
<br />
<?php if ($ec_button_enabled) { ?>
  <div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div>
<?php } ?>

</div>
17 Oct 2007, 12:54 PM
#15
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

Re: How to change "Submit" button Properties to different url?

DrByte:

I'm not convinced it'll solve your members-only issue completely.

However, if you want to remove all create-account capabilities from the login page, create a tpl_login_default.php file in your template override folder, and put this in it:

<div class="centerColumn" id="loginDefault"> <h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?> <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?> <fieldset> <legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>

<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?> <br class="clearBoth" />

<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>

<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?> <br class="clearBoth" /> </fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div> <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div> </form> <br class="clearBoth" /> <?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . 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> <?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?> </fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT); ?></div> </form> <br /> <?php if ($ec_button_enabled) { ?> <div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div> <?php } ?> </div> ```

Hi I did as you said but it has changed nothing i'm afraid.

17 Oct 2007, 3:56 PM
#16
drbyte avatar

drbyte

Sensei

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

Re: How to change "Submit" button Properties to different url?

DrByte:

create a tpl_login_default.php file in your template override folder, and put this in it ...

actorxfactor:

Hi I did as you said but it has changed nothing i'm afraid.

What is the name of your active template?
What folder did you place the customized tpl_login_default.php file in?

17 Oct 2007, 5:47 PM
#17
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

Re: How to change "Submit" button Properties to different url?

DrByte:

What is the name of your active template?
What folder did you place the customized tpl_login_default.php file in?

Applezen is the active template,
I placed the file in includes/templates/apple_zen/templates

17 Oct 2007, 9:24 PM
#18
drbyte avatar

drbyte

Sensei

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

Re: How to change "Submit" button Properties to different url?

Oh good grief ... I musta had the wrong stuff on my clipboard when I pasted that.

Try this:```

<div class="centerColumn" id="loginDefault"> <h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?> <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?> <fieldset> <legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>

<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?> <br class="clearBoth" />

<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>

<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?> <br class="clearBoth" /> </fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div> <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div> </form> <br class="clearBoth" /> <?php if ($ec_button_enabled) { ?> <div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div> <?php } ?> </div> ```
17 Oct 2007, 10:51 PM
#19
actorxfactor avatar

actorxfactor

New Zenner

Join Date:
Aug 2007
Posts:
84
Plugin Contributions:
0

Re: How to change "Submit" button Properties to different url?

DrByte:

Oh good grief ... I musta had the wrong stuff on my clipboard when I pasted that.

Try this:```

<div class="centerColumn" id="loginDefault"> <h1 id="loginDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if ($messageStack->size('login') > 0) echo $messageStack->output('login'); ?> <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?> <fieldset> <legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend>

<label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>

<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?> <br class="clearBoth" />

<label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label>

<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?> <br class="clearBoth" /> </fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div> <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div> </form> <br class="clearBoth" /> <?php if ($ec_button_enabled) { ?> <div class="center"><?php require(DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/tpl_ec_button.php'); ?></div> <?php } ?> </div> ```

Great thanks, it works beautifully. Except now it's impossible to complete the checkout as when you click checkout it takes you to login full stop!

17 Oct 2007, 11:04 PM
#20
drbyte avatar

drbyte

Sensei

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

Re: How to change "Submit" button Properties to different url?

actorxfactor:

Great thanks, it works beautifully. Except now it's impossible to complete the checkout as when you click checkout it takes you to login full stop!

Well, yes, that would be a problem.

... which leads me back to my prior statement ... using login or existence of an account as your only security check is flawed.

You need to let anyone create an account.
And then simply restrict non-authorized-users from accessing certain areas ... via the Group feature I mentioned previously.