Git Product home page Git Product logo

Comments (8)

lkuttner avatar lkuttner commented on August 16, 2024

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.

lkuttner avatar lkuttner commented on August 16, 2024

I have submitted this as a possible issue with price sets: https://lab.civicrm.org/dev/core/-/issues/2727

from org.civicrm.module.cividiscount.

lkuttner avatar lkuttner commented on August 16, 2024

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.

lkuttner avatar lkuttner commented on August 16, 2024

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.

lkuttner avatar lkuttner commented on August 16, 2024

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.

lkuttner avatar lkuttner commented on August 16, 2024

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.

mercurymotos avatar mercurymotos commented on August 16, 2024

Thanks to lkuttner for identifying this issue and providing a functional - if temporary! - fix.

from org.civicrm.module.cividiscount.

mlutfy avatar mlutfy commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.