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
