Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 08-31-2003 10:40:40

brichart
Member
Registered: 10-05-2002
Posts: 18

Discounts

Is there a way to make a custom sale script work only with a discount code? Such as - Save 10% on an order of $50.00 or more by entering this code ......... 

Thanks
Brad

Offline

 

#2 08-31-2003 14:04:44

EagleWolf
Member
From: Daytona Beach, FL
Registered: 07-27-2003
Posts: 979

Re: Discounts

<font size="1" color="#FF0000">LAST EDITED ON 08-31-03 AT 03:06 PM (EST)</font><p>I think this is what you are trying to do:

CCP Admin
Manage Custom Sale Method
Then there is one that says: Total Of X Save Y percentage

would that work?

Thanks,
Chris
http://www.site_name_deleted.com
http://www.equivity.com - e-Commerce Website hosting starting at $5.95/month


Chris
<a href='mailto:webmaster@equivity.com'>webmaster@equivity.com</a>
-

Offline

 

#3 08-31-2003 15:05:30

Guest
Guest

Re: Discounts

Using that method will make the discount automatically apply to everyone who orders from the store.  He is looking for a way to do that but using a coupon code, so it's not automatic.  I'm also interested in this.

Also, is there a way to make the custome sale method work with only certain products or categories?

 

#4 08-31-2003 16:53:48

brichart
Member
Registered: 10-05-2002
Posts: 18

Re: Discounts

You' right. What I want to do is apply the custom sales logic to the discount code. I'm surprised more people haven't asked this question. It's a basic for email advertising.

Brad

Offline

 

#5 09-01-2003 00:12:17

EagleWolf
Member
From: Daytona Beach, FL
Registered: 07-27-2003
Posts: 979

Re: Discounts

I did some searching in the forums and came up with this thread, IT IS FOR 5.0, so you might check with Nick or someone else before using it.

<A HREF="https://forum.kryptronic.com/viewtopic.php?id=1751">https://forum.kryptronic.com/viewtopic.php?id=1751</A>




Thanks,
Chris
http://www.site_name_deleted.com
http://www.equivity.com - e-Commerce Website hosting starting at $5.95/month


Chris
<a href='mailto:webmaster@equivity.com'>webmaster@equivity.com</a>
-

Offline

 

#6 09-01-2003 01:41:48

brichart
Member
Registered: 10-05-2002
Posts: 18

Re: Discounts

Thanks Chris,
I missed that one when I searched both forums. I'll compare the basic code in the modules for changes from 5.0 to tikki, but the discount codes seem to function the same. Thanks again for finding it!

Brad

Offline

 

#7 09-02-2003 21:48:14

brichart
Member
Registered: 10-05-2002
Posts: 18

Re: Discounts

Adding this to the routine 'ste_chkout_intro_proc'works but it discounts shipping and the sales tax is off.

###
&initialize_sub_require('ste_cart_get_info_proc');
&ste_cart_get_info_proc;
###
Right after those lines, add:
###
if ($tracking_subtotal <= "1000.00" && $tracking_discountcode eq "BULK") { $tracking_discountcode = "" }
######### End of if statement.
###

Anyone have an idea?

Brad

Offline

 

#8 09-05-2003 12:30:34

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Discounts

The mod:

if ($tracking_subtotal <= "1000.00" && $tracking_discountcode eq "BULK") { $tracking_discountcode = "" }

Will make the discount work just as all others.  What do you mean that taxes are off?

___________________________

Nick Hendler
Webmaster, Kryptronic, Inc.


Nick Hendler

Offline

 

#9 09-05-2003 22:12:01

brichart
Member
Registered: 10-05-2002
Posts: 18

Re: Discounts

<font size="1" color="#FF0000">LAST EDITED ON 09-05-03 AT 11:24 PM (EST)</font><p>The taxes after discount are off on a 90.00 dollar order by $0.12. Its minor but no matter how I twist my figures I can't come up with the amount it gives. The discount works but it discounts shipping also. I don't see why it would from the mod. Any help is truly appreciated. I just did a trial order for $166.44 on another computer and it discounted shipping. What's very strange is that the tax is off by $0.12 again.

Brad

Offline

 

#10 09-10-2003 11:24:54

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Discounts

The discounts are taken into consideration when taxes are applied.  If you have a $100.00 subtotal and a $10.00 discount, taxes are only applied to $90.00.  Is that what you're seeing?

___________________________

Nick Hendler
Webmaster, Kryptronic, Inc.


Nick Hendler

Offline

 

#11 09-10-2003 19:53:00

brichart
Member
Registered: 10-05-2002
Posts: 18

Re: Discounts

<font size="1" color="#FF0000">LAST EDITED ON 09-10-03 AT 08:53 PM (EST)</font><p>It's applying tax on the discounted subtotal, but the amount of tax is off by $0.12. Could something have been corrupted when I uploaded the upgrade? I've double checked all permissions, and my tax settings are correct in admin, so I'm stumped. I also can't see why it's discounting the shipping. Maybe I should re-upload the file without the mod and see what happens. I still haven't published the coupon so I'm able to do that. Ideas??

Thanks,
Brad

Offline

 

#12 09-15-2003 12:30:28

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Discounts

I'd try to re-upload ste_chkout.pl and see if there's still an issue.


Nick Hendler

Offline

 

#13 07-08-2005 07:09:23

about2flip
Member
Registered: 02-09-2002
Posts: 125

Re: Discounts

Hi:

Im trying to use this code and it is not working for me. I tried entering the code on an order for $2.99 and it still discounted. Did I place it in the right spot Here is the placement:

#########
######### Get important information out of the shopping cart.
#########

&initialize_sub_require('ste_cart_get_info_proc');

&ste_cart_get_info_proc;

if ($tracking_subtotal <= "7.98" && $tracking_discountcode eq "DAGWOOD") { $tracking_discountcode = "" }


######### End of if statement.

#########
######### Check to see if we have a discount code, and if so,
######### attempt to validate it and figure out what it's worth.
######### If we have one, but it's invalid, we present a message.

Thanks for your help

Offline

 

#14 07-08-2005 19:29:18

about2flip
Member
Registered: 02-09-2002
Posts: 125

Re: Discounts

Really need help on this... Anyone know what I did wrong.

Thanks

Offline

 

#15 07-17-2005 07:20:39

kidsandco
Member
Registered: 02-12-2005
Posts: 264
Website

Re: Discounts

I need help with what someone said earlier about having a custom sale method just on one category. Does anyone know how to do this?


K.R.
Kids & Co. Wholesale

Offline

 

Board footer