Skip to content
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

edd_price_option_output filter $item_prop variable missing #244

Open
arraypress opened this issue Feb 14, 2020 · 6 comments
Open

edd_price_option_output filter $item_prop variable missing #244

arraypress opened this issue Feb 14, 2020 · 6 comments
Labels
Milestone

Comments

@arraypress
Copy link
Contributor

This may be exclusive to the 1.1 (or try 1.1 grid build), but the following override is included in Themedd by way of this function:

themedd_edd_purchase_variable_pricing

This function contains the same filter as the core EDD template function:

$price_output = apply_filters( 'edd_price_option_output', $price_output, $download_id, $key, $price, $form_id );
However, the $item_prop variable is missing as per the original filter, resulting in issues with my sales plugin which filters this output.

@cklosowski
Copy link
Contributor

@SDavisMedia If I'm not mistaken, the 1.1 branch is something we're using internally right? but it's a drastic move from how the public releases are built? Do we want to support this in the 1.1?

@SeanTOSCD
Copy link

@cklosowski Correct, 1.1 is internal at the moment. It hasn't been released to anyone, though we've used it internally.

@davidsherlock Are you saying you built a plugin that depends on Themedd 1.1? Or are you using Themedd 1.1 on your own site, and only there you're seeing a conflict with your plugin?

@arraypress
Copy link
Contributor Author

@SDavisMedia No, the theme (Themedd) overrides it's own version of the variable pricing options to allow for bootstrap styles of the checkboxes and the like. In doing so, a variable is left out of one of the original filters that I am using. Because I am building a theme agnostic plugin, I noticed this. It may be exclusive to the 1.1 (or grid 1.1) release.

@SeanTOSCD
Copy link

@davidsherlock Got it. I'll milestone it for 1.1, which may not end up being a public release. I haven't decided yet. Thanks for pointing it out, but it shouldn't be a problem for your plugin since no one should be using Themedd 1.1.

@SeanTOSCD SeanTOSCD added this to the 1.1 milestone Feb 15, 2020
@SeanTOSCD SeanTOSCD added the bug label Feb 15, 2020
@arraypress
Copy link
Contributor Author

Thanks @SDavisMedia, just wanted to give you guys a heads up going forward in-case 1.1 is released publicly.

@robincornett
Copy link
Contributor

Note that this is causing a fatal error on the downloads archive when All Access is active and a product has variable pricing. The problem is that All Access is definitely requiring the sixth parameter, but Themedd is not including it, probably because of proactively disabling schema.

@ashleyfae wanted to flag you on this comment:

I'll milestone it for 1.1, which may not end up being a public release. I haven't decided yet. Thanks for pointing it out, but it shouldn't be a problem for your plugin since no one should be using Themedd 1.1.

Based on team call last week, I'm wondering if we should consider leaving Themedd at 1.0.8 and archiving it otherwise? Using the 1.1 version from before the master merge for internal projects? Looking through 1.1 overall I'm seeing quite a bit of work that would still need to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants