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.
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
No takers on the topic? Oh man
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?
Kay
Offline
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:
$discount_tracking_subtotal = ($tracking_subtotal - $tracking_saletotal + $tracking_shippingtotal);
And change to:
$discount_tracking_subtotal = ($tracking_subtotal - $tracking_saletotal);
Offline
Edit
Last edited by celdirect (05-01-2008 14:46:36)
Offline
how is this last mod done? I dont quite understand.
Offline
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
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.
Offline