I found the link and contributed. Thanks again!
For anyone else reading this thread:
http://www.zen-cart.com/index.php?ma...es&pages_id=14
thanks!
I found the link and contributed. Thanks again!
For anyone else reading this thread:
http://www.zen-cart.com/index.php?ma...es&pages_id=14
thanks!
Just in case using this confuses anyone else, the admin interface does NOT change, so it'll still say the free shipping will override the discount, but if you test it it works exactly as it's supposed to...
I've installed this but the discount amount is off. It's adding $6 to the discount and I'm not sure why.
Order Totals are:
Discount Coupo not_coupon 280
Group Discount ot_group_pricing 290
Gift Certificates ot_gv 840
Low Order Fee ot_loworderfee 400
Shipping ot_shipping 200
Sub-Total ot_subtotal 100
Tax ot_tax 300
Total ot_total 999
I'm not sure what to look for as the cause.
EDIT: The percentage off is the problem. The dollar off works.
A little more testing and here's what is seems is happening. I was using a 50% coupon and free shipping. The shipping was $12 but the discount was 50% of the product cost, plus $12, plus $6 more dollars (50% of shipping). It seems to be applying the discount to the shipping AND giving free shipping.
Just wanted to say thank you. I installed this and it worked perfectly. I'm not experiencing the problem jk was having.
One thing I did find.. if you want to remove the Note in the admin page that says Note. This overrides the coupon_amount figure but respects the minimum order value
It's in file admin/includes/languages/english/coupon_admin.php line 101
I spoke too soon. I ended up with an error:
PHP Warning: Missing argument 1 for currencies::get_decimal_places(), called in /var/www/vhosts/buydentalequipment.com/httpdocs/includes/modules/order_total/ot_coupon.php on line 507 and defined in /var/www/vhosts/buydentalequipment.com/httpdocs/includes/classes/currencies.php on line 108
It would appear as though get_decimal_places requires a parameter which isn't present.
In ot_coupon.php I found the bug and fixed it.. although I'm fairly sure I did it the wrong way :)
PHP Code:
// this line was coded wrong.. hard coded it to two for now until I can figure out what is supposed to be sent in with it.
//$prec = $currencies->get_decimal_places();
$prec = 2;
Worked with $100 min, free shipping and 15%. Hope this is going into the next version. I was so irritated when I found zencart couldn't do what my customer wanted! Didn't realize she was asking too much at the time so egg got splattered on my face. Thanks for saving my bacon.
Ajeh,
I'm sorry for double posting. I previously posted a message regarding this same feature requirement but haven't seen a response as yet ...
http://www.zen-cart.com/forum/showthread.php?t=188630
Would it be difficult to modify this contribution to add the ability to create a discount coupon that would give a discount percentage off the retail price instead of the current special or salemaker price?
If we do an advertisement in a magazine, and get 200 people trying to buy something it would be chaos trying to communicate with each and add them to a group for "group pricing".
If we have 10% discount on the store product, and the 'coupon' is set to 20% off Retail, then they should get an additional 10% off. But if we go crazy and offer a Cyber Monday Special of 25% off, then the coupon should be ignored on that day, and they would get the current sale price of 25% off.
If an additional checkbox was added after Coupon Amount, that said "Discount off Retail Price" then an additional coupon_type could possibly be added to handle this situation?
Any thoughts would be greatly appreciated. I'm prepared to pay money to get this done. If you don't think this contribution is a good place to start, if you can point me in a different direction I would appreciate it.
We have Zen-Cart 1.3.9h.
I imagine many figured this out on your own. But just for informational purposes, if you edit /includes/languages/english/coupon_admin.php you can remove the warning 'This overrides the coupon_amount figure' statement. Could be useful to avoid confusion when there's more that one person working on the store.
Bookmarks