Using ssl w/ checkout.php. Need to add "Remove" bu

Problems installing or using the NOP Design Free Shopping Cart. **ARCHIVE** Please post new topics to one of the groups below.

Moderator: scott

Using ssl w/ checkout.php. Need to add "Remove" bu

Postby webfrog » Fri Feb 14, 2003 8:13 pm

Hello!
I'm using ssl with checkout.php (because I couldn't get it to work using checkout.html so I used the suggestion posted below from a Nov. post)

Before using this method the cart wouldn't work when trying to go from managecart.html to the secure https://www.domainname/ssl/filename/checkout.html (pages are actually secure and I've been working with the system admin. All files are in the same directory)

The solution worked, however, now I don't have the "remove" item buttons, which is great if people never changed their minds. ;)

I've been able to add the "This cart is empty" into the CheckoutCart function in the nopcart.js file by referencing the ManageCart function, but I can't get the remove button in without "breaking" the cart.

Can someone please help?



going from http to https using managecart.htm > checkout.php
winkphoto wrote:Greetings.

When you say you are putting the "s" for http, are you sure that the server you have the files locatedon has a SLL layer?

You can't just "add" the s to make https, and bingo, it's secure.

That being said, You can do a number of things. If you are sure that the server has a security certificate installed, try just calling the checkout.pl file you can get here on NOP. that would be in the form of:
Code: Select all
<form action="https://www.yourdomain.com/cgi-bin/checkout.pl" method="POST" onSubmit="return CheckForm(this)">
    <NOBR>
    <SCRIPT>
        CheckoutCart();
    </SCRIPT>
    </NOBR>

Now, if your hosting company has everything set up to accept an HTTPS request, this should take the data you have and run it through the checkout.pl file (which is being called via the HTTPS method, so it's secure).
Just make sure that the page that you put this code in has all of the info you want to process, meaning all names, addresses, credit card numbers, etc. are on this page.

Here is an example of the "elements" I use:

Code: Select all
<form action="https://www.yourdomain.com/cgi-bin/checkout.pl" method="POST" onSubmit="return CheckForm(this)">
    <NOBR>
    <SCRIPT>
        CheckoutCart();
    </SCRIPT>
    </NOBR>
<br>


<hr>

<b>Please fill out the following information below to complete your order.</b>
<br>
<br>



<b><font class="greetext">Billing Information:</font></b><P>

<TABLE class="blacktext">
<TR><TD>Name:  (first, last)  </TD><TD><input type="text" size="18" name="b_first"> <input type="text" size="15" name="b_last"></TD></TR>
<TR><TD>Address: </TD><TD><input type="text" size="37" name="b_addr"> </TD></TR>
<TR><TD>Address: </TD><TD><input type="text" size="37" name="b_addr2"></TD></TR>
<TR><TD>City:    </TD><TD><input type="text" size="21" name="b_city"> </TD></TR>
<TR><TD>State:   </TD><TD><input type="text" size="1"  name="b_state"> </TD></TR>
<TR><TD>Zip:     </TD><TD><input type="text" size="5"  name="b_zip"></TD></TR>
<TR><TD>Phone:   </TD><TD><input type="text" size="37" name="b_phone"></TD></TR>
<TR><TD>Fax:     </TD><TD><input type="text" size="37" name="b_fax"></TD></TR>
<TR><TD>Email:   </TD><TD><input type="text" size="37" name="b_email"> </TD></TR>
</TABLE>
<p>


<b>Credit Card Information:</font></b>
<TABLE>
<TR><TD>Cardholder Name:  (first,last)  </TD><TD><input type="text" size="18" name="cc_first"> <input type="text" size="15" name="cc_last"></TD></TR>
<TR><TD>Card Type: </TD><!--<TD><INPUT type=TEXT NAME="Card Type"></TD>--><BR>
    <TD><select name=CARDTYPE>
        <option value="VISA"> VISA
        <option value="MASTERCARD"> MASTERCARD
            </select></TD></TR>
<TR><TD>Card Number: (no spaces or dashes)   </TD><TD><input type="text" size="18" name="cc_cnumber"> </TD></TR>
<TR><TD>Expiration Date: (month/year) </TD><TD><input type="text" size="8" name="cc_expry"></TD></TR>
<TR><TD></TD></TR>

</TABLE>

</p>
<FONT class="blacktext">
<b><font class="greetext">Comments/Special Instructions:</font></b><P>
<TEXTAREA NAME="comment" ROWS=6 COLS=40>
</TEXTAREA>
</font>
<br>
<br>

<input type=submit Value="Submit Order"> <INPUT type=RESET value="  Clear Form  ">

    </FORM>




I hope this helps.

Regards,

Marc
webfrog
 
Posts: 4
Joined: Wed Feb 12, 2003 7:52 pm

Postby justin » Sat Feb 15, 2003 9:50 pm

post an url to your site my friend.
justin
 
Posts: 53
Joined: Fri Nov 29, 2002 4:35 pm
Location: UK

Postby Steven Nyland » Sun Feb 16, 2003 11:52 pm

Hey webfrog

Not quite sure what you mean. You say that managecart.html calls checkout.html which is on a secure server, but the remove buttons are missing because of this?

The cart on the checkout.html page does NOT have any remove item buttons. If you want users to alter cart contents then I would place a link back to the managecart.html on your checkout.html page. The cart displayed on the checkout page is there for sales confirmation purposes only.

Steven
[ If it ain't Dutch ... it ain't Much ]
Steven Nyland
Guru
 
Posts: 274
Joined: Thu Jan 02, 2003 1:20 pm
Location: Still here ...

I'll backup...

Postby webfrog » Mon Feb 17, 2003 6:03 pm

Let me backup here and try again. I've restored the site to the original setup and it's using checkout.php instead of checkout.pl

When I set the managecart.html page to go to the secure path (https://www.domain.com/ssl/username/checkout.html) the checkout.html page loads but doesn't carry the purchase info over. The table is there but the "purchased" items aren't.

Thanks for your help! Webfrog
webfrog
 
Posts: 4
Joined: Wed Feb 12, 2003 7:52 pm


Return to Installation and Setup Problems

Who is online

Users browsing this forum: No registered users and 0 guests

cron