[ic] RE: Any direction, please... (daniel castro)

David Radovanovic dradovanovic at hvc.rr.com
Tue May 17 12:58:32 EDT 2005


> Date: Tue, 17 May 2005 14:55:59 +0000
> From: "daniel castro" <daniel_castro at hotmail.com>
> Subject: RE: [ic] Any direction, please...
> To: interchange-users at icdevgroup.org
> Message-ID: <BAY18-F6BA468395905F4EE86EFC83160 at phx.gbl>
> Content-Type: text/plain; format=flowed
> 
> 
> >
> >Sorry for the repeat post though if anyone could give a heads up, I 
> >sure would be grateful. After much searching I have yet to find an 
> >answer. To
> >repeat:
> >
> >The finalize.html page in the multipage checkout fails to show the 
> >payment_select_multi elements. When a user clicks to  "Place 
> Order" it 
> >advances to the receipt. Am I missing something here? Thanks for ANY 
> >input
> >:)
> 
> Can you show us your code?
> also what payments modes you have enabled?
> And any relevant info you can think off...
>

Daniel,

############ I'm running IC 5.2.0 on FreeBSD.
############ CC processing is done by hand (NOT REALTIME) through receipt of
encrypted (PGP) email message
############ The code on the finalize.html page is as follows:


@_BRAIN_ESSENTIALS_TOP_@
<!-- BEGIN CONTENT -->
[weight hide=1]

[comment]
	Form intro -- the input elements are largely in the
	individual tables in include/checkout/*
[/comment]
<form action="[area href="ord/finalize" secure=1]" method="POST"
name=checkout>
[form-session-id]
<input type=hidden NAME=mv_action        value=refresh>
<input type=hidden NAME=mv_nextpage      value="ord/finalize">
<input type=hidden NAME=mv_failpage      value="ord/finalize">

<table width="100%">
<tr>
  <td align="left" width="100%" align=center>

    [if type=explicit compare="[error all=1 show_var=1 keep=1]"]
	[tmp error_display]
    <P align=left>
        <B>[L]There were errors in your last submission[/L]:<br>
        <blockquote>
        <FONT color="__CONTRAST__">
                [error all=1 keep=1 show_error=1 show_label=1 joiner="<br>"]
        </font>
        </blockquote>
        </p>
        <p>
    [msg arg.0="<FONT color='__CONTRAST__'>" arg.1="</FONT>"]Please correct
the areas listed above which are highlighted in %sthis color%s in the
form.[/msg]</B>
    </p>
	[/tmp]
    [/if]

	</td>
  </tr>
  <tr>
	<td>

	<table align="center" cellspacing=0 width="__CHECKOUT_FORM_WIDTH__">
	  <tr>
		<td class="titletab_large">
			Review your order details
		</td>
	  </tr>
	  <tr>
		<td class=shadowbox style="padding: 12px">

        <table cellspacing="0" cellpadding="5" border="0" width="100%">
        <TR class="titletab_small">
          <td class="titletab_small">&nbsp;<b>[L]Remove[/L]</b></td>
          <td class="titletab_small" align="center"><b>[L]SKU[/L]</b></td>
          <td class="titletab_small"><b>[L]Description[/L]</b></td>
          <td class="titletab_small"><b>[L]Quantity[/L]</b></td>
          <td class="titletab_small" align="center"><b>[L]Price[/L]</b></td>
          <td class="titletab_small"><b>[L]Extension[/L]&nbsp;</b></td>
        </TR>
        <TBODY>

        [if items]
        [then]
        [item-list]

        <TR class="[item-alternate
2]cartdisplay[else]cartdisplay_alt[/else][/item-alternate]">
          <TD align=center valign=top>
            <INPUT TYPE=checkbox NAME="quantity0"
onClick="this.form.action='[process]', this.form.submit()" VALUE=0>
          </TD>
          <TD><b>[item-sku]</b></TD>
          <TD><a href="[area href="[item-sku]"]"
class="cartlink"><b>[item-description]</b></a>

                [table-organize cols=4 table=' ' font="size=1" pretty=1]
                    [item-options td=1 label=1 bold=1 price=1]
                [/table-organize]

            [if-item-field weight]
            [seti weight][summary amount=`[item-quantity] * [item-field
weight]`][/seti]
            [/if-item-field]
          </TD>
          <TD ALIGN=CENTER valign=top>
            <INPUT TYPE=text NAME="quantity0" VALUE="[item-quantity]"
SIZE=3>
          </TD>
          <TD ALIGN=RIGHT>
            [item-discount-price]
            [if discount [item-code]]<BR>[msg arg.0="[item-discount]"]Item
is discounted %s[/msg][/if]
          </TD>
          <TD ALIGN=RIGHT>[item-subtotal]</TD>
        </TR>
		[/item-list]
        [/then]
        [else]
        <TR>
          <TD ALIGN=CENTER COLSPAN=6 class="titletab_small">
            [L]No items at the moment.[/L]
          </TD>
        </TR>

        [/else]
        [/if]
        </table>

        <br clear=all>

        <table border="0" cellspacing="0" cellpadding="0" width="50%"
align=right>
        <TR>
          <td align="left">
                        [if items]
            <INPUT TYPE=submit VALUE="[L]Recalculate[/L]" class=button3>
                        [/if]
          </td>
          <td align="right">
            <table align="center" cellspacing="0" border="0">
            <tr>
              <td align=right class=contentbar1>[L]Subtotal[/L]: </TD>
              <td align=right class=contentbar1>[subtotal]</TD>
            </TR>
		[if config Levies]
			[levies recalculate=1 hide=1]
                        [levy-list]
            <tr>
              <td align=left class=contentbar1>[levy-param label]:</TD>
              <td align=right class=contentbar1>[levy-param cost]</TD>
            </tr>
                        [/levy-list]
		[else]
            <tr>
              <td align=right class=contentbar1>[L]Sales Tax[/L]:</TD>
              <td align=right class=contentbar1>[salestax]</TD>
            </tr>
            <tr>
              <td align=right class=contentbar1>[if scratch
total_weight]([shipping-desc]) [/if][L]Shipping[/L]:</TD>
              <td align=right class=contentbar1>[shipping]</TD>
            </Tr>
			[if value mv_handling]
            <TR>
              <td align=right class=contentbar1>[L]Handling[/L]:</TD>
              <td align=right class=contentbar1>[handling]</TD>
            </TR>
			[/if]
		[/else]
		[/if]
            <tr>
              <td align=right class="titletab_small">[L]TOTAL[/L]:</TD>
              <td align=right class="titletab_small">[total-cost]</TD>
            </tr>
            </table>
		</td>
	  </tr>
	  </table>
	</td>
  </tr>
  <tr>
	<td border=0>
		&nbsp;
		&nbsp;

	</td>
  </tr>
[if variable CHECKOUT_MAIL]
  <tr>
	<td>
	<table align="center" cellspacing=0 width="__CHECKOUT_FORM_WIDTH__">
	  <tr>
		<td class="titletab_large" style="padding: 12px;
border-bottom: 0">
			Mailing status
		</td>
	  </tr>
	  <tr>
		<td class=shadowbox style="padding: 12px">
			<table>
			<tr>
				<td width="30%">
			<SELECT NAME=email_copy>
			<OPTION VALUE="1">[L]Yes[/L]
			<OPTION [selected name=email_copy value=0]
VALUE="0">[L]No[/L]
			</SELECT>
				</td>
				<td>
				  <B>[L]Send an email copy of my
receipt[/L]</B>
				</td>
			</tr>
  [if variable CHECKOUT_MAIL_LIST]
			<tr>
				<td>
			[perl tables="mv_metadata"]
			return;
			[/perl]
			[input-filter name=mail_list
op=null_to_space][/input-filter]
			[display table=userdb type=multiple column=mail_list
key="[data session username]"]
				</td>
				<td>
					Add me to these mail lists
				</td>
			</tr>
  [/if]
	  		</table>
		</td>
	  </tr>
	  </table>
	</td>
  </tr>
  <tr>
	<td border=0>
		&nbsp;
		&nbsp;

	</td>
  </tr>
[/if]
  <tr>
	<td>

	<table align="center" cellspacing=0 width="__CHECKOUT_FORM_WIDTH__">
	  <tr>
		<td class="titletab_large">
			Payment and submit order
		</td>
	  </tr>
	  <tr>
		<td class=shadowbox style="padding: 12px">

		  <table width="100%">
		  <tr>
			<td style="padding: 5px">
					<table width="100%">
					<tr>
						<td style="[if scratch
dhtml_browser]padding: 5px[/if]" width="50%">
						[page
ord/shipping]<u><b>Ship [if value mv_same_billing]and bill[/if]
to</b></u></a>:<br>
						<blockquote>
						[value fname] [value
lname]<br>
						[value address1]<br>
						[if value address2][value
address2]<br>[/if]
						[value city][if value
state], [value state][/if]  [value zip]<br>
						[value country]
						</blockquote>
						</td>
						[if !value mv_same_billing]
						<td style="[if scratch
dhtml_browser]padding: 5px[/if]" width="50%">
						[page ord/billing]<u><b>Bill
to</b></u></a>:<br>
						<blockquote>
						[value b_fname] [value
b_lname]<br>
						[value b_address1]<br>
						[if value b_address2][value
b_address2]<br>[/if]
						[value b_city][if value
b_state], [value b_state][/if]  [value b_zip]<br>
						[value b_country]
						</blockquote>
						</td>
						[/if]
					</tr>
				</table>

			</td>
		  </tr>
		  <tr>
			<td>
					[include
include/checkout/payment_select_multi]
			</td>
		  </tr>
		  <tr>
			<td>
					<br>
					[if scratch old_browser]
					[include
include/checkout/old_browser_payment_multi]
					[else]
					[include
include/checkout/new_browser_payment_multi]
					[/else]
					[/if]
			</td>
		  </tr>

		  <tr>
			<td>
			<br>
			&nbsp;
			<br>
			&nbsp;
			<br>
			&nbsp;
			</td>
		  </tr>
		  </table>

		<div align=center>
			<input type=button onClick="
					this.form.mv_action.value='back';
	
this.form.mv_nextpage.value='[either][scratch
finalize_back][or]ord/shipmode[/either]';
					this.form.submit();
				"
				value="&lt;-- [L]Back[/L]" class=button3>
				[button text="[L]Place Order[/L]"
wait-text="-- Wait --"  class=button3 id=placebutton style="font-weight:
bold"]
					mv_todo=submit
				[/button]
		</div>

		  [if scratch error_display]
					<div style="padding-left: 10px">
[scratchd error_display]</div>
		  [/if]
		</td>
		</tr>
	  </table>

	</td>
  </tr>
</table>

	</td>
  </tr>
</table>

</form>

[tmp clear_errors][error all=1 comment="Clear errors"][/tmp]
<!-- END CONTENT -->
@_BRAIN_ESSENTIALS_BOTTOM_@


############ Payments Options include VISA, MC, DISC, AE, Online Check and
PO
############ I don't know if the profiles.order might be at fault though
here is the code:

__NAME__                            invalid
&fatal     = yes
mv_failpage= interact
&set       = mv_junk 0
__END__

__NAME__                            shipping_address

 __COMMON_ORDER_PROFILE__

&fatal = yes

email=email

__END__


__NAME__                            account_change

 __COMMON_ORDER_PROFILE__

&fatal = yes
email=email

__END__

__NAME__                            credit_card

__COMMON_ORDER_PROFILE__

&fatal = yes
email=required
email=email

&set = mv_payment Incomplete

[if variable MV_PAYMENT_MODE]
[value name=mv_payment_realtime set=""]
&credit_card=standard keep __CREDIT_CARDS_ACCEPTED__
&set=mv_payment Real-time Credit Card (%c -- [var MV_PAYMENT_MODE])
&set=mv_payment_realtime 1
[else]
&credit_card=standard __CREDIT_CARDS_ACCEPTED__
&set=mv_payment Credit Card (%c)
[/else]
[/if]

&calc = $Values->{mv_payment} =~ s/\%c/$Values->{mv_credit_card_type}/g; 1;
&final = yes
&setcheck=mv_email [value email]

__END__

__NAME__                            purchase_order

 __COMMON_ORDER_PROFILE__

&fatal = yes
email=required
email=email

&set = prof_po_accepted [var PO_ACCEPTED]

prof_po_accepted=required This site doesn't accept purchase orders. You
should not have been offered that option; please contact us.

project_id=required Please include your PO number

[if session logged_in]	[cgi name=logged_in_po set=1 hide=1]
[else]					[cgi name=logged_in_po set=""]
[/else]
[/if]
logged_in_po=mandatory Must have pre-existing account for PO.

[value name=mv_payment set="Incomplete" hide=1]
[tmp tmp_total][total-cost noformat=1][/tmp]
[tmp tmp_climit][data table=userdb col=credit_limit key="[data session
username]"][/tmp]
[calc]
	$CGI->{credit_limit_ok} = 1;
	my $total = $Scratch->{tmp_total};
	my $limit = $Scratch->{tmp_climit};
	return unless length($limit);
	Log("credit_limit=$limit total=$total");
	delete $CGI->{credit_limit_ok};
	if($limit >= $total) {
		$CGI->{credit_limit_ok} = 1;
	}
	return;
[/calc]
credit_limit_ok=mandatory Credit limit exceeded.
&set=mv_payment PO number [value project_id]

&final = yes
&setcheck=mv_email [value email]

__END__

__NAME__                            postal

 __COMMON_ORDER_PROFILE__

&set = prof_mode_accepted [var POSTAL_ACCEPTED]

prof_mode_accepted=required This site doesn't accept postal orders. You
should not have been offered that option; please contact us.

&fatal = yes
email=required
email=email

&set = mv_payment Check or Money Order (will call)
&final = yes
&setcheck=mv_email [value email]

__END__

__NAME__                            cod

 __COMMON_ORDER_PROFILE__

[cgi set="" name=not_po_box]
[if value address1 =~ /p\.?o\.?\s*box\b/i]
not_po_box=mandatory No PO boxes allowed for COD.
[/if]
[if value address2 =~ /p\.?o\.?\s*box\b/i]
not_po_box=mandatory No PO boxes allowed for COD.
[/if]

&set = prof_mode_accepted [var COD_ACCEPTED]

prof_mode_accepted=required This site doesn't accept COD orders. You should
not have been offered that option; please contact us.

&fatal = yes
email=required
email=email

&set = mv_payment COD
&calc = $Values->{mv_handling} .= "\0cod" unless $Values->{mv_handling} =~
/\bcod\b/; return 1;

&final = yes
&setcheck=mv_email [value email]

__END__

__NAME__                            online_check

 __COMMON_ORDER_PROFILE__

&set = prof_mode_accepted [var CHECK_ACCEPTED]

prof_mode_accepted=required This site doesn't accept online checks. You
should not have been offered that option; please contact us.
[value name=check_route filter=digits hide=1]
check_num=required You must supply a check number for us to use.
check_acct=required You must supply your checking account number.
check_route=required You must supply your bank's ABA routing number. They
are always 9 digits.
&and
check_route=length 9-9 ABA bank route numbers are always 9 digits.
check_bank_phone=required We need your bank's phone number.
&fatal = yes
email=required
email=email

&set = mv_payment Online check
&final = yes
&setcheck=mv_email [value email]

__END__

########## here is the catalog.cfg code:

# Cart, order, and route settings.

ParseVariables  Yes

ValuesDefault   country      __SHIP_DEFAULT_COUNTRY__
ValuesDefault   mv_shipmode  __SHIP_DEFAULT_MODE__
DefaultShipping __SHIP_DEFAULT_MODE__

MailOrderTo     __ORDERS_TO__

AlwaysSecure    ord/checkout login change_password

## Set this if you have a different secure server
#AlwaysSecure   order ord/checkout ord/basket login change_password process

ifndef COMMON_ORDER_PROFILE
Variable COMMON_ORDER_PROFILE <<EOV
	fname=required
	lname=required
	address1=required
	city=required
	country=required
	state=multistate
	zip=multizip
	&or phone_night=phone, phone_day=phone Must have day or evening
phone number
	email=required
EOV
endif

## Payment-related stuff

EncryptKey  __PGP_KEY__
EncryptProgram __PGP__

########## THANKS ###############

David Radovanovic
WhatsTheBigIdea.com, Inc.
-- Bright ideas for the Web!
249 Partition Street
Saugerties, New York 12477
(845) 247-0909
http://www.WhatsTheBigIdea.com










More information about the interchange-users mailing list