[Contribution] Discount Coupon Codes
#1
Posted 07 June 2006, 15:27
http://www.oscommerce.com/community/contributions,4269
#2
Posted 07 June 2006, 16:12
#3
#4
Posted 07 June 2006, 17:11
anyway..good job dude
#5
Posted 07 June 2006, 18:13
#6
Posted 07 June 2006, 20:53
#7
Posted 08 June 2006, 05:28
Run these statements via the SQL tab in phpMyAdmin.
Can you get me started??
Thanks,
Rob
#8
Posted 08 June 2006, 05:58
#9
Posted 08 June 2006, 12:21
When it will have update you informs to me?
Tanks
#11
Posted 08 June 2006, 13:41
apopular, on Jun 8 2006, 08:21 AM, said:
When it will have update you informs to me?
I just sent you an email. There are a few more files to translate, since there are entries in the main language file, and there is a language file for the order_total module.
#12
#13
Posted 08 June 2006, 18:18
Discount Coupons
1146 - Table 'libidolondon_com_-_store.discount_coupons' doesn't exist
select count(*) as total from discount_coupons cd
[TEP STOP]
Coupon Code: Discount: Start: End: Max Use: Min Order:
Any idea how to fix this? I did a search and was unable to find this tring.
Thanks very much
Kelly
#14
Posted 09 June 2006, 01:33
As far as I can tell everything else is working. The tables are in the database. I can create new coupons in the admin section. And when I go to check out if I put in a coupon code that doesn't exist I get the error that I've put in an invalid coupon. But when I put in the real coupon code it just goes to the checkout screen with the full price.
Any ideas?
->Later.....Spice
#15
Posted 09 June 2006, 07:57
I just have a minor problem on the checkout page after I put the coupon code in and move to the next page the coupon is not visible, just after I click on the country flag it appears complete and that in any language.
And in the admin part I can't add new coupon discounts in the menu over sql it works !!
Do you have any idea why.....
Thank you
Thomas
#16
Posted 09 June 2006, 10:02
The instal has been sucessfull, apart from at checkout_confrimation.php has not updated the the total price and not on any page after.
How can i fix this problem???
However the file, includes/boxes/shopping_cart.php has and works fine and the admin side is working well too.
Many thanks
#17
Posted 09 June 2006, 12:42
I have run into a little problem though. And I haven't been able to find the problem myself. I hope you can help me. It's the same problem some other people here seem to have.
If I use a coupon code on the "checkout_payment.php" page and I go to "checkout_confirmation.php" page, the discount isn't shown. I first have to refresh the page for it to be visible. The same happens when I go back to the "checkout_payment.php" page and remove the coupon code. I have to refresh the confirmation page for the discount to be removed.
The discount is calculated, even if it isn't showing. Because when I confirm the order without refreshing the page, the discount is used on the final order. As far as I can figure out it has something to do with the $this->info['coupon'] being empty in de order class. But I can't seem to fix it.
In your common_problems.txt you talked about something like this. But the discount coupon has a unique sort order in order total.
Can you help me(us) with this problem?
#18
Posted 09 June 2006, 13:27
devospice, on Jun 8 2006, 09:33 PM, said:
See the common problems file. Make sure you have a unique sort order for the module.
#20
Posted 09 June 2006, 13:40
Cubez, on Jun 9 2006, 08:42 AM, said:
I have run into a little problem though. And I haven't been able to find the problem myself. I hope you can help me. It's the same problem some other people here seem to have.
If I use a coupon code on the "checkout_payment.php" page and I go to "checkout_confirmation.php" page, the discount isn't shown. I first have to refresh the page for it to be visible. The same happens when I go back to the "checkout_payment.php" page and remove the coupon code. I have to refresh the confirmation page for the discount to be removed.
The discount is calculated, even if it isn't showing. Because when I confirm the order without refreshing the page, the discount is used on the final order. As far as I can figure out it has something to do with the $this->info['coupon'] being empty in de order class. But I can't seem to fix it.
In your common_problems.txt you talked about something like this. But the discount coupon has a unique sort order in order total.
Can you help me(us) with this problem?
Try adding this code:
if (!tep_session_is_registered('coupon')) tep_session_register('coupon');
if (tep_not_null($HTTP_POST_VARS['coupon'])) {
$coupon = tep_db_prepare_input($HTTP_POST_VARS['coupon']);
}
BEFORE these lines:
require(DIR_WS_CLASSES . 'order.php'); $order = new order;














