Comments (8)
This appears of be a version compatibility issue, as price sets that were created before 2019 still display properly. If I copy or try to update an old price set, they stop displaying the discounts.
from org.civicrm.module.cividiscount.
I have submitted this as a possible issue with price sets: https://lab.civicrm.org/dev/core/-/issues/2727
from org.civicrm.module.cividiscount.
I was able to remedy this by applying this submitted commit in cividiscount.php from 2018 that was never implemented, and so far it seems to be good.
- if ($autodiscount) {
+ if ($autodiscount && $discountApplied) {
Previous issue: 1c5ba03
I do not know why the past three years of price sets that had been displaying properly stopped doing so after the PHP and MySQL updates, but this code change has resolved it.
from org.civicrm.module.cividiscount.
Apparently, while the change resolves the missing discount for a price set with a single discount code, it does not fix it for price sets with multiple discounts applied. Only the first discount is being applied. Further changes are needed.
from org.civicrm.module.cividiscount.
I am now seeing some additional strange behavior on our dev server with CiviDiscount 3.8.4. If I go to edit existing discounts from the last few years, the previously selected events in the Discounts for Events field are no no longer displayed and events in the last few years no longer appear in the pick list and there are some blank lines instead. Price field options are also gone. I rebooted the server just in case something was hung, and there is no change.
from org.civicrm.module.cividiscount.
Latest work-around that seems to function properly on CiviDiscount 3.7 on our production server:
- if ($autodiscount) {
- break;
+ if (!$autodiscount) {
+ continue;
We are still experiencing the puzzling issues mentioned above on our dev server with CiviDiscount 3.8.4.
Hopefully someone familiar with the code will be able to work through this and determine what the issue is.
from org.civicrm.module.cividiscount.
Thanks to lkuttner for identifying this issue and providing a functional - if temporary! - fix.
from org.civicrm.module.cividiscount.
CiviDiscount has moved to CiviCRM's Gitlab! (see #273)
If you are interested in this issue, you can follow it here:
https://lab.civicrm.org/extensions/cividiscount/-/issues/266
from org.civicrm.module.cividiscount.
Related Issues (20)
- CiviDiscount stops working after CiviCRM upgrade HOT 1
- CiviDiscount overrides the amount regardless the number of terms for membership HOT 1
- DiscountTrack item is created twice
- Feature : Control whether each discount coupon applies to new memberships, membership renewals HOT 1
- 100% discount with Stripe processor leads to data not making it to confirmation HOT 1
- Usage tracking issue for memberships HOT 2
- fix Js error when none option present in price field HOT 1
- Stacking discounts HOT 2
- Blank description prints '_null' instead of nothing HOT 2
- Register another participant discount applied to duplicate contact HOT 1
- When two or more discounts apply to the same thing, what is the queue of priority? HOT 3
- Discount for any event does not work HOT 3
- Price field options missing if there are two or more price sets that contain fields with the same label HOT 15
- Add support for a private description/source field and tags for a DiscountCode HOT 1
- Cache applicable entity search for a given filter HOT 1
- adjust usage count when transaction cancelled HOT 1
- CiviDiscount, Discounts for events, the option "Any event" does not work HOT 6
- Time for a new maintainer of this extension? HOT 5
- Rename extension to org.civicrm.cividiscount because it is not a Drupal module HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org.civicrm.module.cividiscount.