Jump to content
kgt

[Contribution] Discount Coupon Codes

Recommended Posts

Hi there,

 

I have one of those tax problems. I want to display all prices with tax. If I choose "Display discount with discounted tax applied" and make a coupon with percentage everything is calculated fine. But when I choose a fixed amount I have to enter the amont without Tax when i make i Coupon, thats not so fine becaue all of my fixed coupons are with tax.

 

I tryed a little, but i have no good PHP and JS skills. The thing that there is only on field for fixed n percentage amounts made me stuck. :-D

 

Well it´s not so urgent, but it would be nice for everyone who has Coupons with tax.


life long and knusper

Share this post


Link to post
Share on other sites

First thing is to make sure whether or not the code for this contribution is changing any pages that have also been changed by another contribution. If so, you need to manually make the changes and not just upload the files. If the other contributions you have are easier to install, then I would suggest grabbing a stock osC 2.2 and uploading the files for the DCC Contribution - make sure that is functioning properly, and then add the other contributions. A program like WinMerge would probably be a big help for you and your friend ;)

 

Btw - using 2.2 osc

And I am one version behind on DCC. If I add that new file (orders.php) it blows the whole store up.

In checkout - it just throws a blank screen.

Right now - it appears functional to the customer. But the codes won't actually deduct anything (the test code).

And, I cannot add new ones so it's just in a half-functional state at the moment.

 

Thanks!

 

--Jeff


~Tracy
 

Share this post


Link to post
Share on other sites

Hi, I'm having a bit of trouble with this module in our store. I've tried to search this thread but didn't find an answer, I do apologize if I missed a post and re posted this question. We are running osc 2.2 MS2 and DCC 3.34. I'm pretty familiar with the base osCommerce files but not so much with the Order Totals modules.

 

The install went fine and we've been using the module for about a month now, but this week the store owner decided to have a tiered sale where if you spend $25 you get 20% off, at $75 it jumps to 25% off and at $100 it jumps to 30% off. This seemed to working fine at first but now that I've tested it some more I find that I can get 30% off when I only have $16 in my cart. The order minimum doesn't seem to be getting enforced. I have added some additional debug messages to the top of each function so that I can trace the progress and I never see finalize_discount or check_coupons_min_order get called. I suspect that this is part of my issue, but I can't seem to find why they aren't being called.

 

Thanks for any help.

 

-Ed

 

Here is the debug info from the module

[coupon] => Array

(

[coupons_id] => 30off

[coupons_description] => 30% Off Orders Over $100

[coupons_discount_amount] => 0.30

[coupons_discount_type] => percent

[coupons_date_start] => 2009-11-25 00:00:00

[coupons_date_end] => 2010-01-01 00:00:00

[coupons_max_use] => 0

[coupons_min_order] => 100.0000

[coupons_min_order_type] => price

[coupons_number_available] => 0

 

[cart_info] => Array

(

[valid_products] => Array

(

[count] => 2

[line_items] => 2

[total] => 16.98

)

 

[total_products] => Array

(

[count] => 2

[line_items] => 2

[total] => 16.98

)

 

 

[debug] => Array

(

[0] => smithec: entering constructor

[1] => smithec: entering get_coupon

[2] => INFO: DISPLAY_PRICE_WITH_TAX = false

[3] => INFO: MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING = false

[4] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS = true

[5] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_SUBTOTAL = true

[6] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_SORT_ORDER = 0

[7] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_TYPE = true

[8] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_TAX = None

[9] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_EXCLUDE_SPECIALS = false

[10] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_RANDOM_CODE_LENGTH = 6

[11] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_LINES = false

[12] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_ALLOW_NEGATIVE = false

[13] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_USE_LANGUAGE_FILE = false

[14] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_CONFIG = Discount Coupon [coupon_desc] applied

[15] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DEBUG = true

[16] => smithec: entering total_valid_products

[17] => smithec: entering is_allowed_product

[18] => smithec: entering is_allowed_product

[19] => smithec: entering calculate_discount

[20] => smithec: entering is_allowed_product

[21] => INFO: Product 3025 passed exclusion check. Discount 1.797 applied. (percent)

[22] => smithec: entering calculate_shown_price

[23] => INFO: Discount of 1.797 applied to product 3025 ($5.99).

[24] => smithec: entering apply_tax

[25] => INFO: Calculating tax on 4.193. Displayed price 4.193.

[26] => smithec: entering calculate_discount

[27] => smithec: entering is_allowed_product

[28] => INFO: Product 3014 passed exclusion check. Discount 3.297 applied. (percent)

[29] => smithec: entering calculate_shown_price

[30] => INFO: Discount of 3.297 applied to product 3014 ($10.99).

[31] => smithec: entering apply_tax

[32] => INFO: Calculating tax on 7.693. Displayed price 7.693.

[33] => smithec: entering verify_code

)

Share this post


Link to post
Share on other sites

I added all the code manually this time. I am still having to refresh the checkout_confirmation to get the coupon to show.

 

This happens with debug mode on or off.

 

The refresh codes for some reason bring me back to my sites homepage instead of just refreshing the page. I am not sure why. Very frustrating, I know this is hard to recreate and for the life of me I do not know why it is happening as it is working perfectly on another site of mine.

Share this post


Link to post
Share on other sites

I added all the code manually this time. I am still having to refresh the checkout_confirmation to get the coupon to show.

 

This happens with debug mode on or off.

 

The refresh codes for some reason bring me back to my sites homepage instead of just refreshing the page. I am not sure why. Very frustrating, I know this is hard to recreate and for the life of me I do not know why it is happening as it is working perfectly on another site of mine.

 

One more thing to say about this right now.. I am pretty sure the problem does not have to do with checkout_confirmation page so much as it does checkout_payment.

 

I say this because if I am in the same session after going to checkout confirmation once, then back to the card, I can change quantities and then the coupon code and checkout_confirmation will not require a refresh again. it takes the new coupon code.

 

Actually typing this out I don't think that narrows it to checkout payment. But just saying..

Share this post


Link to post
Share on other sites

Hi all,

 

Does someone have this contrib working when the order_total is null/zero/0? In my case it will just go to my payment provider, while I would like it to go to checkout_success directly (or something like that).

 

Besides not working, I will have another problem: the discount is applied in checkout_payment.php. The customer has to choose a method of payment here. That would be a bit strange when the order_total is going to be zero. The next question therefore is: how can I apply the discount earlier in the process, in for example checkout_shipping? Then skip checkout_payment and directly go to confirmation.

 

It i obvious that the most important problem to solve is the first one.

 

Ciao,

Tom

Share this post


Link to post
Share on other sites

One more thing to say about this right now.. I am pretty sure the problem does not have to do with checkout_confirmation page so much as it does checkout_payment.

 

I say this because if I am in the same session after going to checkout confirmation once, then back to the card, I can change quantities and then the coupon code and checkout_confirmation will not require a refresh again. it takes the new coupon code.

 

Actually typing this out I don't think that narrows it to checkout payment. But just saying..

I think the refresh is taking you back to the store home page, because you have the main catalog directory specified as your base href in your head section. I did some experimenting when I realized that this is the default osC setup. I tried commenting out the base href line from the head section and presto it works. I still think it is better to get to the root of the problem, but hey there is a temporary fix. You will have to discover for yourself what osC components are justifying that base href. I cannot find any for this page in particular. Perhaps there are other pages that require this, and it was simply apply site wide. I have no idea on that one, but this is apparently why you are having trouble with the refresh issue.


I run a completely customized osC2.2 RC1 shop with mostly custom modifications that replicate the features of many contributions available except in a way that the data is more easily synced with Quickbooks on a continuous basis.

Share this post


Link to post
Share on other sites

As far as I know DCC wasn't designed to do this. That would be a different contribution, but I am not sure at the moment what it would be called. I would search the word discount in the contributions and see what comes up - I know there is a price break discount module - maybe that is what you need for these types of sales?

 

Hi, I'm having a bit of trouble with this module in our store. I've tried to search this thread but didn't find an answer, I do apologize if I missed a post and re posted this question. We are running osc 2.2 MS2 and DCC 3.34. I'm pretty familiar with the base osCommerce files but not so much with the Order Totals modules.

 

The install went fine and we've been using the module for about a month now, but this week the store owner decided to have a tiered sale where if you spend $25 you get 20% off, at $75 it jumps to 25% off and at $100 it jumps to 30% off. This seemed to working fine at first but now that I've tested it some more I find that I can get 30% off when I only have $16 in my cart. The order minimum doesn't seem to be getting enforced. I have added some additional debug messages to the top of each function so that I can trace the progress and I never see finalize_discount or check_coupons_min_order get called. I suspect that this is part of my issue, but I can't seem to find why they aren't being called.

 

Thanks for any help.

 

-Ed

 

Here is the debug info from the module

[coupon] => Array

(

[coupons_id] => 30off

[coupons_description] => 30% Off Orders Over $100

[coupons_discount_amount] => 0.30

[coupons_discount_type] => percent

[coupons_date_start] => 2009-11-25 00:00:00

[coupons_date_end] => 2010-01-01 00:00:00

[coupons_max_use] => 0

[coupons_min_order] => 100.0000

[coupons_min_order_type] => price

[coupons_number_available] => 0

 

[cart_info] => Array

(

[valid_products] => Array

(

[count] => 2

[line_items] => 2

[total] => 16.98

)

 

[total_products] => Array

(

[count] => 2

[line_items] => 2

[total] => 16.98

)

 

 

[debug] => Array

(

[0] => smithec: entering constructor

[1] => smithec: entering get_coupon

[2] => INFO: DISPLAY_PRICE_WITH_TAX = false

[3] => INFO: MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING = false

[4] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS = true

[5] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_SUBTOTAL = true

[6] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_SORT_ORDER = 0

[7] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_TYPE = true

[8] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_TAX = None

[9] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_EXCLUDE_SPECIALS = false

[10] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_RANDOM_CODE_LENGTH = 6

[11] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_LINES = false

[12] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_ALLOW_NEGATIVE = false

[13] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_USE_LANGUAGE_FILE = false

[14] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_CONFIG = Discount Coupon [coupon_desc] applied

[15] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DEBUG = true

[16] => smithec: entering total_valid_products

[17] => smithec: entering is_allowed_product

[18] => smithec: entering is_allowed_product

[19] => smithec: entering calculate_discount

[20] => smithec: entering is_allowed_product

[21] => INFO: Product 3025 passed exclusion check. Discount 1.797 applied. (percent)

[22] => smithec: entering calculate_shown_price

[23] => INFO: Discount of 1.797 applied to product 3025 ($5.99).

[24] => smithec: entering apply_tax

[25] => INFO: Calculating tax on 4.193. Displayed price 4.193.

[26] => smithec: entering calculate_discount

[27] => smithec: entering is_allowed_product

[28] => INFO: Product 3014 passed exclusion check. Discount 3.297 applied. (percent)

[29] => smithec: entering calculate_shown_price

[30] => INFO: Discount of 3.297 applied to product 3014 ($10.99).

[31] => smithec: entering apply_tax

[32] => INFO: Calculating tax on 7.693. Displayed price 7.693.

[33] => smithec: entering verify_code

)


~Tracy
 

Share this post


Link to post
Share on other sites

You have to install another contribution that allows you to checkout with a zero dollar amount without requiring payment info. I believe it's called "Free of Charge".

 

Hi all,

 

Does someone have this contrib working when the order_total is null/zero/0? In my case it will just go to my payment provider, while I would like it to go to checkout_success directly (or something like that).

 

Besides not working, I will have another problem: the discount is applied in checkout_payment.php. The customer has to choose a method of payment here. That would be a bit strange when the order_total is going to be zero. The next question therefore is: how can I apply the discount earlier in the process, in for example checkout_shipping? Then skip checkout_payment and directly go to confirmation.

 

It i obvious that the most important problem to solve is the first one.

 

Ciao,

Tom


~Tracy
 

Share this post


Link to post
Share on other sites

Great contribution, I've been poking around in the module and it looks great. I've installed the module and unfortunately the only discounts that actually end up applying successfully to the order total are shipping discounts. Fixed Amount discounts and Percentage discounts appear... ex: -$5.00). But this math isn't applied to the final total...the total simply remains unchanged. Any ideas why a subtraction isn't taking place for just these to items? Or where I might look to check the math?

 

Currently using osc v 2.2 rc2

 

What the totaling area looks like:

 

2n9x4er.jpg

 

 

Thanks for putting this together. Any help would be greatly appreciated.

Edited by ablaidlaw

Share this post


Link to post
Share on other sites

Below is my debug information while attempting to apply a 25¢ test discount. (See post previous to this one for more details).

 

Thanks again.

 

-Shawn

 

 

[coupon] => discount_coupon Object

(

[messages] => Array

(

[debug] => Array

(

[0] => INFO: DISPLAY_PRICE_WITH_TAX = false

[1] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_TAX = None

[2] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_EXCLUDE_SPECIALS = true

[3] => INFO: MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING = false

[4] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_SUBTOTAL = true

[5] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_TYPE = true

[6] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS = true

[7] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_SORT_ORDER = 4

[8] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_RANDOM_CODE_LENGTH = 6

[9] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_LINES = true

[10] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_ALLOW_NEGATIVE = false

[11] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_USE_LANGUAGE_FILE = false

[12] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DISPLAY_CONFIG = Discount Coupon

 applied

[13] => INFO: MODULE_ORDER_TOTAL_DISCOUNT_COUPON_DEBUG = true

[14] => INFO: Percentage of discount applied to product 236{4}15: 0.000139182719074.

[15] => INFO: Fixed discount applied to product 236{4}15: 215.999860817.

[16] => INFO: Product 236{4}15 passed exclusion check. Discount 215.999860817 applied. (fixed)

[17] => INFO: Discount of 215.999860817 applied to product 236{4}15 ($216).

[18] => INFO: Calculating tax on 0.000139182719067. Displayed price 0.000139182719067.

[19] => INFO: Percentage of discount applied to product 187{4}17: 0.000139182719074.

[20] => INFO: Fixed discount applied to product 187{4}17: 185.899860817.

[21] => INFO: Product 187{4}17 passed exclusion check. Discount 185.899860817 applied. (fixed)

[22] => INFO: Discount of 185.899860817 applied to product 187{4}17 ($185.9).

[23] => INFO: Calculating tax on 0.000139182719067. Displayed price 0.000139182719067.

[24] => INFO: Percentage of discount applied to product 1{4}14: 0.000139182719074.

[25] => INFO: Fixed discount applied to product 1{4}14: 169.899860817.

[26] => INFO: Product 1{4}14 passed exclusion check. Discount 169.899860817 applied. (fixed)

[27] => INFO: Discount of 169.899860817 applied to product 1{4}14 ($169.9).

[28] => INFO: Calculating tax on 0.000139182719067. Displayed price 0.000139182719067.

[29] => INFO: Percentage of discount applied to product 187{4}16: 0.000139182719074.

[30] => INFO: Fixed discount applied to product 187{4}16: 169.899860817.

[31] => INFO: Product 187{4}16 passed exclusion check. Discount 169.899860817 applied. (fixed)

[32] => INFO: Discount of 169.899860817 applied to product 187{4}16 ($169.9).

[33] => INFO: Calculating tax on 0.000139182719067. Displayed price 0.000139182719067.

[34] => INFO: Percentage of discount applied to product 182{6}22: 0.000139182719074.

[35] => INFO: Fixed discount applied to product 182{6}22: 124.999860817.

[36] => INFO: Product 182{6}22 passed exclusion check. Discount 124.999860817 applied. (fixed)

[37] => INFO: Discount of 124.999860817 applied to product 182{6}22 ($125).

[38] => INFO: Calculating tax on 0.000139182719067. Displayed price 0.000139182719067.

[39] => INFO: Percentage of discount applied to product 186{4}15: 0.000139182719074.

[40] => INFO: Fixed discount applied to product 186{4}15: 185.899860817.

[41] => INFO: Product 186{4}15 passed exclusion check. Discount 185.899860817 applied. (fixed)

[42] => INFO: Discount of 185.899860817 applied to product 186{4}15 ($185.9).

[43] => INFO: Calculating tax on 0.000139182719067. Displayed price 0.000139182719067.

[44] => INFO: Percentage of discount applied to product 186{4}17: 0.000139182719074.

[45] => INFO: Fixed discount applied to product 186{4}17: 185.899860817.

[46] => INFO: Product 186{4}17 passed exclusion check. Discount 185.899860817 applied. (fixed)

[47] => INFO: Discount of 185.899860817 applied to product 186{4}17 ($185.9).

[48] => INFO: Calculating tax on 0.000139182719067. Displayed price 0.000139182719067.

[49] => INFO: Percentage of discount applied to product 187{4}15: 0.000139182719074.

[50] => INFO: Fixed discount applied to product 187{4}15: 185.899860817.

[51] => INFO: Product 187{4}15 passed exclusion check. Discount 185.899860817 applied. (fixed)

[52] => INFO: Discount of 185.899860817 applied to product 187{4}15 ($185.9).

[53] => INFO: Calculating tax on 0.000139182719067. Displayed price 0.000139182719067.

[54] => INFO: Percentage of discount applied to product 1{4}31: 0.000139182719074.

[55] => INFO: Fixed discount applied to product 1{4}31: 185.899860817.

[56] => INFO: Product 1{4}31 passed exclusion check. Discount 185.899860817 applied. (fixed)

[57] => INFO: Discount of 185.899860817 applied to product 1{4}31 ($185.9).

[58] => INFO: Calculating tax on 0.000139182719067. Displayed price 0.000139182719067.

[59] => INFO: Percentage of discount applied to product 184{4}33: 0.000139182719074.

[60] => INFO: Fixed discount applied to product 184{4}33: 185.899860817.

[61] => INFO: Fixed adjustment for product 184{4}33: difference: -1795.94860817 unadjusted applied_discount: 185.899860817

[62] => INFO: Product 184{4}33 passed exclusion check. Discount -1610.04874736 applied. (fixed)

[63] => INFO: Discount of -1610.04874736 applied to product 184{4}33 ($185.9).

[64] => INFO: Calculating tax on 1795.94874736. Displayed price 1795.94874736.

)

 

)

 

[coupon] => Array

(

[coupons_id] => test

[coupons_description] => test coupon

[coupons_discount_amount] => 0.250000000000

[coupons_discount_type] => fixed

[coupons_date_start] =>

[coupons_date_end] =>

[coupons_max_use] => 1

[coupons_min_order] => 0.0000

[coupons_min_order_type] => price

[coupons_number_available] => 100

)

 

[applied_discount] => Array

(

[unknown tax rate] => 0.25

)

 

[cart_info] => Array

(

[valid_products] => Array

(

[count] => 10

[line_items] => 10

[total] => 1796.2

)

 

[total_products] => Array

(

[count] => 10

[line_items] => 10

[total] => 1796.2

)

 

[exclusions] => Array

(

[categories] => Array

(

)

 

[products] => Array

(

)

 

[manufacturers] => Array

(

)

 

)

 

)

 

[discount_tax] => Array

(

[unknown tax rate] => 0

)

 

)

 

)

 

End Discount Coupons DEBUG-->

Share this post


Link to post
Share on other sites

Hi,

I installed the Discount Coupon Codes Contribution yesterday and it is exactly what I was looking for!

 

Still I have one issue I was not able to solve yet...

 

As I have the "low order fee" module activated and my customers are charged a little amount if their order is lower then 10.00EUR this causes a problem now with the discount coupon module. If someone use a coupon and the overall prize is then less then the 10.00 EUR the customer will be charged with the low order fee.

 

So the question is if there is a way that the low order fee is checked before the coupon is calculated or is it possible to turn off the low order fee if someone uses a coupon code?

 

Thanks!

Share this post


Link to post
Share on other sites

I would use the code that double checks whether or not shipping charges should change based on the subtotal after discount to try and write the code to check the low order fee and see if that needs to be added after discount. This would require custom programming and some knowledge of PHP.

 

Hi,

I installed the Discount Coupon Codes Contribution yesterday and it is exactly what I was looking for!

 

Still I have one issue I was not able to solve yet...

 

As I have the "low order fee" module activated and my customers are charged a little amount if their order is lower then 10.00EUR this causes a problem now with the discount coupon module. If someone use a coupon and the overall prize is then less then the 10.00 EUR the customer will be charged with the low order fee.

 

So the question is if there is a way that the low order fee is checked before the coupon is calculated or is it possible to turn off the low order fee if someone uses a coupon code?

 

Thanks!


~Tracy
 

Share this post


Link to post
Share on other sites

I would use the code that double checks whether or not shipping charges should change based on the subtotal after discount to try and write the code to check the low order fee and see if that needs to be added after discount. This would require custom programming and some knowledge of PHP.

 

yes, if nobody else has coded a solution so far I will have to give it a try... though my skills are limited ;)

I guess I have to start with /includes/classes/discount_coupon.php right?

Share this post


Link to post
Share on other sites

As far as I know DCC wasn't designed to do this. That would be a different contribution, but I am not sure at the moment what it would be called. I would search the word discount in the contributions and see what comes up - I know there is a price break discount module - maybe that is what you need for these types of sales?

 

Why do you say that? DCC has all the features I need as the end users have to just use different codes. The main issue for me is making sure that the Minimum Order $ amount is met before a coupon get's applied. This morning I had a user buy $9 and use a DCC Code that had a minimum order amount of $25. If I can just get the Minimum order check working I'll be fine with DCC.

 

-Ed

Share this post


Link to post
Share on other sites

Hi guys!

 

i installed it today!

 

it is all that i need!

 

But i have some problems....

 

The discount is ok... as..

 

subtotal: 50,00

discunt: -10,00

total: 40,00

 

but when it redirects to the payment service page (i use PagSegur from brazil) the price becomes 50,00 again...

 

sorry about my english... =[

 

 

what should i have to do to fix it??

 

thank you guys!

Share this post


Link to post
Share on other sites

I've had this addon for over a year now and it works well, but there are a couple of oddities i would like to see if they can be cleared up to make it better.

 

1. customer exclusion - if i choose a group of customers to be allowed the coupon code, it works fine. but anyone who registers an account after i do this gets automatically added to the list of allowed people. now they probably will not know the code, but it makes it difficult if i am trying to track who has used their discount and who has not.

 

2. Multiple coupons. sometimes, due to the events we sponsor etc, someone gets more than one voucher. so they may get a $20 voucher and a $10 voucher. is there anyway that they can use both in one order? i know on someone elses store (not sure what platform) i was able to do this when i had two vouchers, but it does not seem to work on OSC. obviously percentage discounts are not going to be multiples, but fixed amounts would be good. at the moment they either have to do two orders, or email me to get them combined, which slows down the transaction time.

 

3. Discount useage report. the report does not always actually count what coupons have been used etc. any thoughts on this?

 

anyway it all works very well, but if there is a way to tidy up those minor issues, it would be great.

 

Cheers,

 

Alan

Edited by Ironhalo

Share this post


Link to post
Share on other sites

Hi,

I installed the Discount Coupon Codes Contribution yesterday and it is exactly what I was looking for!

 

Still I have one issue I was not able to solve yet...

 

As I have the "low order fee" module activated and my customers are charged a little amount if their order is lower then 10.00EUR this causes a problem now with the discount coupon module. If someone use a coupon and the overall prize is then less then the 10.00 EUR the customer will be charged with the low order fee.

 

So the question is if there is a way that the low order fee is checked before the coupon is calculated or is it possible to turn off the low order fee if someone uses a coupon code?

 

Thanks!

 

I think I got it... I switch off the "low order fee" if any coupon code is entered by adding this code into ot_loworderfee.php:

 

   function ot_loworderfee() {
     $this->code = 'ot_loworderfee';
     $this->title = MODULE_ORDER_TOTAL_LOWORDERFEE_TITLE;
     $this->description = MODULE_ORDER_TOTAL_LOWORDERFEE_DESCRIPTION;
     $this->enabled = ((MODULE_ORDER_TOTAL_LOWORDERFEE_STATUS == 'true') ? true : false);
     $this->sort_order = MODULE_ORDER_TOTAL_LOWORDERFEE_SORT_ORDER;

     $this->output = array();
// add this
     if (tep_session_is_registered('coupon')) $this->enabled = false;
// end
   }

 

Can use this workaround? My tests work out so far...

Share this post


Link to post
Share on other sites

I said that because I did not know you have separate discount codes for the different price breaks. The way I had read the post I replied to was that you wanted the discount to change based on the dollar amount of the order - not that the customer would use different codes based on the dollar amount of their order.

 

What is the minimum order check doing currently? I don't believe I ever had problems with this function, so I'm not sure what the fix would be - but if I know the error you are getting I may be able to find a fix.

 

Why do you say that? DCC has all the features I need as the end users have to just use different codes. The main issue for me is making sure that the Minimum Order $ amount is met before a coupon get's applied. This morning I had a user buy $9 and use a DCC Code that had a minimum order amount of $25. If I can just get the Minimum order check working I'll be fine with DCC.

 

-Ed


~Tracy
 

Share this post


Link to post
Share on other sites

If it's working it's great! I see no reason not to use it :) The only scenario I can think of would be if their subtotal before the coupon is applied qualifies for the low order fee and they use a coupon too - then they won't be charged the low order fee. As long as that isn't a problem then I'd say "Problem Solved!" ;)

 

I think I got it... I switch off the "low order fee" if any coupon code is entered by adding this code into ot_loworderfee.php:

 

   function ot_loworderfee() {
     $this->code = 'ot_loworderfee';
     $this->title = MODULE_ORDER_TOTAL_LOWORDERFEE_TITLE;
     $this->description = MODULE_ORDER_TOTAL_LOWORDERFEE_DESCRIPTION;
     $this->enabled = ((MODULE_ORDER_TOTAL_LOWORDERFEE_STATUS == 'true') ? true : false);
     $this->sort_order = MODULE_ORDER_TOTAL_LOWORDERFEE_SORT_ORDER;

     $this->output = array();
// add this
     if (tep_session_is_registered('coupon')) $this->enabled = false;
// end
   }

 

Can use this workaround? My tests work out so far...


~Tracy
 

Share this post


Link to post
Share on other sites

Hi,

 

Was wondering if anyone has seen the same problem. Discounts are calculating properly and passing on the right discounts to Paypal IPN etc.

Although the QT Pro doctor is returning many sick products for stock levels after every couple of orders. It is becoming more frequent. It is always only one or two different products out of all the orders. With no particular patterns that I can see.

 

Anyone know what I should be looking for? Would it be due to the IPN module?

 

To fix it I constantly have to sum up the stock levels manually and readjust the levels on products based on the previous orders.

 

Would appreciate some feedback.

 

George.

Share this post


Link to post
Share on other sites

 

Would appreciate some feedback.

 

 

 

Blonde moment... forget it... sorry people. :blush:

Share this post


Link to post
Share on other sites

Hi - I'm having a problem with the interaction between free shipping for orders over $75 and a 20% discount code. I have 3.34 installed. So let's say you have an order that's $92 dollars and someone tries to apply 20% off coupon, then it dumps them from checkout_payment back to checkout_shipping with it saying "Your calculated shipping charges have changed" and only ship method as free shipping, even though they no longer qualify for free shipping. and over and over and over again. please help. thanks! i have sort order in order total as subtotal, discount coupon, shipping, tax, total.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×