passworded/coupon discounts

Completed modifications to the NOP Shopping Cart. Additions, modifications, and more.

Moderators: Koibito, Stefko, Randy, Rosey

passworded/coupon discounts

Postby WebRecka » Tue Apr 08, 2003 7:16 pm

Echelon design (webrecka) has made a coupon modification that works very well! Information is found here:
http://forums.echelondesign.net/YaBB.cg ... 1049806983

Or if your 2 lazy to click:
http://downloads.echelondesign.net/

You MUST use this checkout.pl with your shopping cart, if you need to use worldpay or authorize.net or anything else LET ME KNOW! Dont spend time getting frustrated because its not working! I repeat, do NOT edit any of the setup variables without asking me as they may cause somethings to not work! If you know what you are doing then by all means try it, but if not, dont. In nopcart.js the variables :
OutputItemId = 'ID_';
OutputItemQuantity = 'QUANTITY_';
OutputItemPrice = 'PRICE_';
OutputItemName = 'NAME_';
OutputItemShipping = 'SHIPPING_';
OutputItemAddtlInfo = 'ADDTLINFO_';
OutputOrderSubtotal = 'SUBTOTAL';
OutputOrderShipping = 'SHIPPING';
OutputOrderTax = 'TAX';
OutputOrderTotal = 'TOTAL';

MUST MUST MUST NOT CHANGE!!!!!!!!!!!!!!!!!!!!!!!

You can manage the coupons the users can use with coupons.pl, Good luck!
WebRecka
Guru
 
Posts: 37
Joined: Sat Mar 15, 2003 7:58 pm

Works GREAT !!!

Postby tammy507 » Sat Apr 26, 2003 4:53 am

Two thumbs up!!!

With some much appreciated help from webrecka, my coupon discount is up and running! Great work.

Question.... is anyone else using this coupon mod? And if so, how do you get around the final order/payment sequence?

As is:
1) add product to cart
2) look at cart (managecart.html).. everything looks ok so you click continue.
3) Now your on the Name, Address, etc page. (checkout)
You fill in your name etc.. and click continue
4) Coupon page (If you have a cpn enter it here, if not click continue)
5) If you entered a coupon.. the page says "coupon successful" and then it shows the original price (your grand total including shipping) the new price (new total with coupon savings).. you click continue and
6) your on the Thank You page.


I'm trying to figure out if there is a way to change the order of things so it would look like this:
1) add to cart
2) look in cart
3) coupon page
4) Checkout page with Name, Address, etc... showing your coupon discount .... select method of payment (paypal, check, moneyorder)
5) If paypal...you would be taken to paypal pay page
If check/moneyorder you would be given a page with instructions on where to send, etc.

Maybe Im looking at this from the wrong angle, but it just looks to me like (as a customer) I would want to know/see my coupon savings on the order before pproceeding to give my name/address and checking out.

Any help would be greatly appreciated!!!
Thanks
Tammy
tammy507
 
Posts: 2
Joined: Sat Apr 26, 2003 4:27 am

Postby WebRecka » Sat Apr 26, 2003 12:58 pm

Done :-D Its on your site now.
WebRecka
Guru
 
Posts: 37
Joined: Sat Mar 15, 2003 7:58 pm

Postby Steven Nyland » Sat Apr 26, 2003 3:16 pm

Great mod WebRecka!
[ 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 ...

Thank You

Postby tammy507 » Sat Apr 26, 2003 6:55 pm

Wow! Talk about fast!

This coupon Mod is wonderful! Thank you sooooo much!!
Tammy
tammy507
 
Posts: 2
Joined: Sat Apr 26, 2003 4:27 am

Postby JJGaming » Wed May 28, 2003 11:43 pm

Ok, I have not been able to get the newest script to work without some modifications to exactly what you stated not to mod. Here is my code.

Code: Select all
OutputItemId          = 'ID_';
OutputItemQuantity    = 'QUANTITY_';
OutputItemPrice       = 'PRICE_';
OutputItemName        = 'NAME_';
OutputItemShipping    = 'SHIPPING_';
OutputItemAddtlInfo   = 'ADDTLINFO_';
OutputOrderSubtotal   = 'SUBTOTAL';
OutputOrderShipping   = 'SHIPPING';
OutputOrderTax        = 'TAX';
OutputOrderTotal      = 'x_amount';
OutputOrderDesc      = 'x_description';
AppendItemNumToOutput = true;
HiddenFieldsToCheckout = true;


In order to adapt this script to the Authorize.net gateway the changes above were required. Is there a way to modify this coupon script to work with the mods above?

http://www.jjgaming.com
JJGaming
 
Posts: 18
Joined: Thu Oct 24, 2002 4:41 am
Location: Idaho

Ok, now a different problem

Postby JJGaming » Thu May 29, 2003 12:55 am

Well, I have modified my other scripts to allow the actual use of the nopcart script. Now whenever I try to add a coupon, It will give me the "coupon creation successful" message, but when I try to view coupons, there is nothing there. Any help with this will be greatly appreciated.
JJGaming
 
Posts: 18
Joined: Thu Oct 24, 2002 4:41 am
Location: Idaho

Postby WebRecka » Thu May 29, 2003 2:10 am

Some servers require that there be permissions set on the .ech files, look for coupons.ech that file in particular might need special file permissions.

Btw, nice site :-D
WebRecka
Guru
 
Posts: 37
Joined: Sat Mar 15, 2003 7:58 pm

Turns out that was my fault

Postby JJGaming » Fri May 30, 2003 4:33 am

Ya, the error above was my bad, I had the file named the wrong thing. Oops. Thanks for the compliment to the site, me and my partner have put quite a bit of work into it. Hopefully it starts to payoff soon.

I do still have one problem though. I am working on converting everything over to the checkout.pl file instead of using the AUTH.net files. The only problem I have now is that whenever I try to load the checkout.pl file supplied by Echelon, all I get is a blank screen. It will not execute any code. I have looked over the code a bit, and I do not see anything wrong with it, but it definately does not give the desired output. I am going to try a complete reinstall tomorrow to see if that will clear some things up, but if not I will let you know. If you could just think about it and let me know of any possibilities to correct that problem.

Justin
JJGaming
 
Posts: 18
Joined: Thu Oct 24, 2002 4:41 am
Location: Idaho

Postby WebRecka » Fri May 30, 2003 8:28 pm

Make sure u have that template.pl, u have chmodded correctly and checkout.pl can make files without being restricted by server permissions.
WebRecka
Guru
 
Posts: 37
Joined: Sat Mar 15, 2003 7:58 pm

It works now

Postby JJGaming » Fri May 30, 2003 10:39 pm

Well, I did a complete reinstall today, and now the script works fine. Had to be something with my server or something. I only have one other question now. What lines will I need to edit to redirect he script to my own cgi script after the coupon is entered. I need it to then process my sim.cgi script to get the fingerprint and send the user to Auth.net. Also, I think I will need to edit the variables in this script to be able to send them to AUTH.net. They have a different format for variables. What will I need to edit there to make everything post to AN. IE: the name, address, etc. If the user fills out the info there, they will not want to fill it out again at the auth.net form. Let me know if there is anything I can do here, or if I need to make my pages secure.

Justin
JJGaming
 
Posts: 18
Joined: Thu Oct 24, 2002 4:41 am
Location: Idaho

One problem

Postby JJGaming » Fri May 30, 2003 10:56 pm

This one is a little bit harder to explain, whenever a coupon is entered into the script, it is not finding the total amount. Here is the link you can follow so that you can see what I am talking about.

http://www.jjgaming.com/test/testitem.php

Add that test item to your cart and then follow the steps. When you come to the coupon entry page enter this coupon.

xcXg4phZ6v

Then click to confirm the code. Here is where the problem is. There is no total cost in this. Therefore the cust does not get the item they wanted and they get a huge discount. Please let me know what I need to fix to correct this problem as well as the one above. Thanks again for your help with this.

Justin
JJGaming
 
Posts: 18
Joined: Thu Oct 24, 2002 4:41 am
Location: Idaho

Well, figured that last on out

Postby JJGaming » Sun Jun 01, 2003 5:11 pm

Ok, I have that last post figured out now. You cannot use the Auth.net that is built into the script to change the output of the NOPCART. I will have to figure out how to get around this. This is a nice script now that I have it working. Thanks for all the hard work that was put into this script.

Justin
JJGaming
 
Posts: 18
Joined: Thu Oct 24, 2002 4:41 am
Location: Idaho

Auth.net

Postby cherbert » Wed Jun 25, 2003 2:12 pm

Justin,

Are you using the posted Auth.net mod to communicate with Auth.net or are you using WebLink?
cherbert
 
Posts: 29
Joined: Wed Aug 07, 2002 4:07 pm

Auth.net Mod

Postby JJGaming » Wed Jun 25, 2003 6:46 pm

I no longer have to use the AUTH.net mod that was posted above. Version 4.4 of the cart fixed the problems we were having with that. We now use V4.4 as it is packaged. The problem I am having is when you use the auth net variables that are built in to the cart, the coupon script will not recognize them and edit the variables as needed. I am working on a php mod that will correct this, but so far have had very little luck with this. Any help would be appreciated greatly. We could really use this script.

Justin
JJGaming
 
Posts: 18
Joined: Thu Oct 24, 2002 4:41 am
Location: Idaho

Next

Return to Modifications

Who is online

Users browsing this forum: No registered users and 0 guests