Deleting A Coupon Using Javascript

General ShopSite user discussion

Deleting A Coupon Using Javascript

Postby Nathan » Thu Feb 01, 2007 3:52 pm

Hi,

Could someone please tell me how to delete a coupons using Javascriot? The code to add a coupons is:

window.open('http://www.bcay.com/cgi-bin/sc/order.cgi?storeid=*++++&rec=1&cpid=++++&function=add);

I would have thought that one could delete a coupons using the virtually the same code with the function=delete or function=remove, however neither of these work.

Thanks in advance for your help,

Nathan
Nathan
 
Posts: 5
Joined: Wed Jan 31, 2007 10:23 am
Location: Camarillo, Ca.

How Do You Delete a Coupon Using Javascript

Postby Nathan » Fri Feb 16, 2007 9:53 am

I am still looking for a way to delete a coupon using Javascript.

Thanks in advance for your help, Nathan
Nathan
 
Posts: 5
Joined: Wed Jan 31, 2007 10:23 am
Location: Camarillo, Ca.

Postby Jim » Fri Feb 16, 2007 2:09 pm

I really doubt that it can be done but you might check what the javascript involved in a remove or recalculate is doing. It may be that you could set the quantity field for the coupon to 0 and then do a recalculate. Most of the code to do calculations in the cart is done in a cgi not through javascript so there may be no way to do it.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 136 guests