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.
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
<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
Offline
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?
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
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
Offline
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
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
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.
Offline
<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
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.
Offline
<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
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
Really need help on this... Anyone know what I did wrong.
Thanks
Offline