[Contribution] Discount Coupon Codes
#1481
Posted 13 September 2007, 16:58
and make it automated so when a person orders one they can enter like recievers email and have the discount coupon emailed to them?
#1482
Posted 14 September 2007, 17:35
markedfordeath, on Sep 13 2007, 12:58 PM, said:
and make it automated so when a person orders one they can enter like recievers email and have the discount coupon emailed to them?
Not really. These are coupons, not gift certificates, and there is a pretty important distinction between them. You want CCGV.
#1483
Posted 14 September 2007, 17:36
JamesS, on Sep 13 2007, 10:15 AM, said:
In what order do I need to install the Discount Coupon Codes Contribution? Meaning do I need to start at ver 1.4 and go up or can I just install the latest version now?
Thanks for your help
You should be able to install the latest version without installing the previous ones first.
#1484
Posted 16 September 2007, 20:04
Could you tell me where this info is being pulled from so that I can correct it?
Thanks!
#1485
Posted 17 September 2007, 04:57
/clicks install and subscribe to thread
#1487
Posted 17 September 2007, 15:39
georgecvsc, on Sep 9 2007, 07:39 PM, said:
//kgt - discount coupon
var $coupon;
//end kgt - discount coupon
The above code is in the sample order.php file provided, it's just not mentioned in the instructions.
Thank you for pointing this out.
#1488
Posted 17 September 2007, 19:10
kgt, on Jun 7 2006, 03:27 PM, said:
http://www.oscommerce.com/community/contributions,4269
Install 3.3 version
i need SQL file Scripts
#1489
Posted 17 September 2007, 19:29
tbs, on Sep 17 2007, 03:10 PM, said:
i need SQL file Scripts
See the README. SQL statements are listed in the Common Problems section.
The module should install the tables when you install the module in your osCommerce admin section. You only need to run the statements yourself if your user doesn't have CREATE TABLE privileges or you're getting an error.
#1490
Posted 17 September 2007, 19:32
Lunara Solutions, on Sep 16 2007, 04:04 PM, said:
Could you tell me where this info is being pulled from so that I can correct it?
Thanks!
I'm not sure why the USPS Methods module would interfere. And it's odd that the shipping attributes display when you try to edit this. I have not seen that problem before. Since it was working, I assume the problem arose when you installed the USPS Methods. Does that make changes to admin/modules.php?
Also look in your database and be sure you have entries in the configuration table for configuration_key's starting with MODULE_ORDER_TOTAL_DISCOUNT_COUPON.
I don't know what else to suggest. Does it work when you try to use a coupon during checkout? If not, what happens?
#1491
Posted 17 September 2007, 19:39
Foggy, on Sep 10 2007, 10:19 PM, said:
Double check the code you have in includes/classes/order.php with the installation instructions. Most likely that is where the error is.
#1492
Posted 17 September 2007, 20:30
matt23, on Sep 10 2007, 06:46 PM, said:
In admin/includes/database_tables.php and /filenames.php there is no reference to define:administrators
insert this into /database_tables.php (line 16) define('TABLE_ADMINISTRATORS', 'administrators');
and
insert this into /filenames.php (line 14) define('FILENAME_ADMINISTRATORS', 'administrators.php');
that should do it!
The only prob i still have is getting PayPal IPN to recognise the discount in the total.
any help on this would be appreciated.
For all:
PLEASE NOTE RC1 was released AFTER the latest version of Discount Coupon Codes. Though it should work if you do an manual installation, DO NOT COPY OVER EXISTING FILES with the files from the installation zip if you have RC1.
#1493
Posted 17 September 2007, 20:33
moneytree, on Sep 9 2007, 11:35 PM, said:
$1.00 Price
$1.00 Sub Total
$2.25 Shipping
-$2.25 Shipping Discount Applied
$1.00 Total
Is your coupon set up as a shipping discount or an item discount? If it's an item discount, you need to make it a shipping discount. Otherwise the item price really is -1.25.
#1494
Posted 17 September 2007, 20:35
parma, on Sep 8 2007, 05:51 AM, said:
Great contribution by the way. I only have one problem, Im using the latest OSC and have managed to pretty much get the whole contribution working. The only file giving me problems is order.php in classes. As when I try to update this file using the instructions the order total automatically goes to 0.
My order.php shows the following code
$shown_price = $currencies->calculate_price($this->products[$index]['final_price'], $this->products[$index]['tax'], $this->products[$index]['qty']);
$this->info['subtotal'] += $shown_price;
Where as the instructions ask me to edit the following code
$shown_price = tep_add_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty'];
$this->info['subtotal'] += $shown_price;
The contribution code does not have $currencies->calculate_price, I dont know if this is the only issue. I am using 2.2 RC1, if anyone knows a workaround it would be greatly appreciated it.
Kind regards
M PArmar
That's the right line. Replace it with the code provided in the install instructions. It should work fine.
#1495
Posted 17 September 2007, 20:37
khoking, on Sep 7 2007, 11:26 AM, said:
I asked because I have shipping based on price. For order above $50, I give free shipping. If below that, I charged $10 shipping.
When a customer purchased a $70 product and use a $30 discount coupon, the subtotal becomes $40 and there will still be $10 shipping charged to it. This is wrong and I do not want to charge customer shipping based on subtotal after discount. It should be FREE SHIPPING as the original purchase is already over $50.
How to solve this?
The "Display subtotal with applied discount?" is not there for fun. It's supposed to work. If it's not, then I don't know what to tell you. Try getting a debug output and send that to me for review.
#1496
Posted 17 September 2007, 20:38
akstucki, on Sep 6 2007, 05:22 PM, said:
Not sure what you mean... you are trying to "open" the module in your administration interface, correct?
#1497
Posted 17 September 2007, 20:39
Jessica2000, on Sep 6 2007, 06:53 AM, said:
1) Discount only works with the "shipping discount" and will not work with "percentage discount" or "fixed amount"
2) If there is a minimum requirement for product quantity or price total, it will not work and results in an error message, even though the requirement is met.
Any help would be greatly appreciated!
See the README for help getting debug output.
#1498
Posted 17 September 2007, 20:56
Slook, on Sep 5 2007, 04:29 AM, said:
I'm having an issue getting the discount coupons offering a postage cost reduction to work. They just don't seem to ammend the price at all?
Sorry if this has been questioned before. I scanned through and searched but I may well have missed it!
Thanks
Please see the README for help generating debug output.
#1499
Posted 17 September 2007, 20:57
khoking, on Sep 4 2007, 12:42 PM, said:
Few days ago I installed the contribution without any problem, and it is working fine after testing.
However, today, after upgrading PERL from 5.8.7 to 5.8.8, I notice that there are now some problem with the discount coupon. The TOTAL is not right, discount coupon is not being deducted. Eg.:
Sub-Total: RM349.50
PosLaju / EMS Shipping (1~2 business days to arrive): RM0.00
Discount Coupon SHASHINKI-01 applied:: -RM5.00
Total: RM349.50 (Should be RM344.00)
I am not sure if this is due to PERL upgrade or not, but can anybody help me or teach me what I should check?
The PERL upgrade should not affect anything. Please see the README for help generating a debug output.














