cf_signup
Signup form. Entice folks to register at your site by issuing
a store credit and/or percentage discount.
If the user is an existing customer and is logged in, this will allow them
to update their information.
Place this anywhere. You can use any condition to pull it up, such as
page=signup or put it in a page of it's own. Just specify the page that it's on
in the template variable. You may place the page text inside the first cfif
statement if you like and it won't appear for the rest of the signup process. To
limit store credit to a minimum purcase, add this line of code where it may be
read during the checkout process, either at the top of the cartpage template or
in application.cfm:
<cfset minimum_purchase_credit = 50>
Replace the 50 with the minimum required purchase to receive the credit.
Note, that if you use store credits for other purposes, such as issuing
a store credit as opposed to a refund for returns, you won't want that
customer to have to spend a minimum amount to receive the credit. In
that case, when you enter the credit into the customer's record, also
check the "Member" checkbox. This will allow the minimum purchase
requirement to be waived for this customer.
credit="10" will give a $10.00 store credit.
discount="10" will give a 10% customer discount. This is permanent and
will need to be set back to 0 after the customer's initial purchase if
you only want the discount applied to customer's first purchase. We will
likely make this automatic when we get some time.
Copy below and paste into template:
<cf_signup
template="#cartpage#"
cartpage="#cartpage#"
id="#variables.id#"
setup_id="#variables.setup_id#"
afid="#afid#"
cat="#cat#"
man="#man#"
shipcountry="#GetSetup.shipcountry#"
defaultcountry="#GetSetup.defaultcountry#"
affiliates="#GetSetup.affiliates#"
AKHI_local="#attributes.AKHI_local#"
usecookie="#attributes.enablepasswordcookie#"
privacy="#attributes.privacy#">
End copying.
Minimum required parameters:
template="[URL]" Set this to the url to the template this tag is in.
cartpage="#cartpage#" DO NOT REMOVE OR CHANGE!
id="#variables.id#" DO NOT REMOVE OR CHANGE!
setup_id="#variables.setup_id#" DO NOT REMOVE OR CHANGE!
cat="#cat#" DO NOT REMOVE OR CHANGE!
man="#man#" DO NOT REMOVE OR CHANGE!
afid="#afid#" DO NOT REMOVE OR CHANGE!
shipcountry="#GetSetup.shipcountry#" DO NOT REMOVE OR CHANGE!
defaultcountry="#GetSetup.defaultcountry#" DO NOT REMOVE OR CHANGE!
affiliates="#GetSetup.affiliates#" DO NOT REMOVE OR CHANGE!
AKHI_local="#attributes.AKHI_local#" DO NOT REMOVE OR CHANGE!
usecookie="#attributes.enablepasswordcookie#" DO NOT REMOVE OR CHANGE!
privacy="#attributes.privacy#" DO NOT REMOVE OR CHANGE!
Note that you should place the cf_login tag within your cartpage template and
have it load if the page value passed is "login". This is where we will link
to if someone tries to register with an e-mail address already in the database.
Optional parameters
credit="[number]" A dollar amount to issue as a store credit as a whole
number or decimal.
discount="[percentage]" A percentage discount as a whole number. ie; 10 = 10% discount.
page="#page#" If you are bringing up this tag in a section of a template
with a "page" condition, use this so it goes back to the
same spot.
oddcolor="[hex color]" See below.
evencolor="[hex color]" These attributes are used together if you would like to
alternate the row colors of the signup form. Do not use a #
in front of the 6 character hex code. Leave blank to use a
plain form.
border="[number]" Border width of the table cells. This defaults to "1" if
omitted. but you will probably want to set it to "0" if you
are using oddcolor/evencolor above.
Privacy Statement:
If you set attributes.privacy to "1" in application.cfm, you will need to paste
this into the header of the page that calls this tag. You will need to change the
path to reach the file in the ezcart folder if the calling template is not in the same
folder as the ezcart folder.
<SCRIPT LANGUAGE="JavaScript" SRC="ezcart/ezcartpopup.js"></SCRIPT>