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 10-21-2003 16:50:05

PinkPanther
Member
From: USA
Registered: 07-11-2003
Posts: 216

Discounts And Shipping Fees

Hi all,

I have searched, but did not see an answer so I am asking -- incase I missed a thread dealing with the question I am about to ask I apologize.

I have discounts/coupons which our customers use, however I have noticed that the shipping also gets discounted. Is there a way I can keep shipping fees from being discounted as well?

Thanks,
Kay

Offline

 

#2 10-22-2003 12:37:27

PinkPanther
Member
From: USA
Registered: 07-11-2003
Posts: 216

Re: Discounts And Shipping Fees

No takers on the topic? Oh man sad

I will work around it by adding discount amount as handling on shipping fee I guess, but then I will have to deduct this from none discount users..pain...pain!

*I thought if I create some drama, someone may be take pity on me* Is it working? smile

Kay 

Offline

 

#3 10-27-2003 11:21:38

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

Re: Discounts And Shipping Fees

To exclude shipping costs, you will need to edit the file ./cgi-bin/library/modules/ste_chkout.pl.  Look in the routine 'ste_chkout_discount_proc' for:

Code:


$discount_tracking_subtotal = ($tracking_subtotal - $tracking_saletotal + $tracking_shippingtotal);

And change to:

Code:


$discount_tracking_subtotal = ($tracking_subtotal - $tracking_saletotal);


Nick Hendler

Offline

 

#4 02-13-2006 14:13:37

celdirect
Member
From: UK
Registered: 04-01-2005
Posts: 782

Re: Discounts And Shipping Fees

Edit

Last edited by celdirect (05-01-2008 14:46:36)

Offline

 

#5 09-11-2006 09:36:13

cryogenicz
Member
Registered: 05-07-2006
Posts: 23

Re: Discounts And Shipping Fees

how is this last mod done? I dont quite understand.

Offline

 

#6 05-01-2008 14:55:22

celdirect
Member
From: UK
Registered: 04-01-2005
Posts: 782

Re: Discounts And Shipping Fees

Hi,

I made the changes above ages a go -  I have since put the 2 bits of code back and it seems to be only 1/2 working.

if i use discount code 123456 £25 voucher at checkout  it will discount the product and shipping but displays like so

Subtotal:     £16.99

Discount:     -£16.99   (this should show -£18.99)

(Options:     £4.48) it does not discount this mod for order options, which is fine)
           
Shipping:     £2.00
           
Total:                £4.48


So the customer has to pay 4.48 and is charged that but the gift vouchers remain balance is 8.01  in stead of 6.01

Also the order email is like so


Item Subtotal:              £14.99   (this should show 16.99)
Order Options:              £4.48
Shipping:                      £2.00
LESS: Discount:            £16.99  (this should be 18.99)
Total Amount:               £4.48


I have played around with different bits in the ste_chkout.pl and cart.pl and nothing makes any difference (so files back as they were, with just the 2 bits of code added back in)

I have been on this all day and need a fresh view to it.

Offline

 

#7 05-01-2008 17:08:31

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Discounts And Shipping Fees

This has to do with the way CCP stores the totals... it doesn't actually store the subtotal anywhere - it only stores the total, the discount, and the shipping.  Then it has to work backwards to ge the item subtotal using subtraction and evidently, that subtraction isn't working very well in at least two places.  Unfortunately, with all the mods you've got (the order options mod in particular looks sticky), I'm not sure how to diagnose it from here.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

Board footer