New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request for notifier in ot_group_pricing.php #237
Comments
Oy! I'd forgotten how much I'd changed that file. |
While that notification isn't exactly what you requested, I've provided all the elements used to perform the in-module deduction calculation, with the opportunity to override the array of deduction-related information returned for display. Let me know if that serves your needs. |
@daphilli224, please let me know if that notification works for you. I'd like to get this release of EO "out" this week. |
Sorry, 157c problems have delayed my testing. I'll get it done today. Thanks for the update! |
I need $order->products rather than $order->info since I need to go through each product in the order to see if it's discountable or not. If a product in the order is non-discountable, I need to adjust $discount. |
Would it suffice to pass the full |
could one just add |
True, that. |
Passing $order would work fine. |
If the ot_group_pricing.php optional override file in edit_orders 4.7.0 gets incorporated in core eventually, could you please include a notifier in function calculate_deduction() just before:
foreach ($discount_tax_groups as $key => $value) { $discount_tax_groups[$key] *= $discount_percentage; }
which is located just before return from the function.
The use case is that some products (only a few), both taxable and non-taxable, are not discountable for members of the discount group. The associated observer would adjust $discount_total, $discount_tax, and discount_tax_groups[$key]. This assumes that order_total files remain non-overridable in future versions of zen-cart.
The text was updated successfully, but these errors were encountered: