Thanks, mc12345678; I've got the function copied and will "play" over the next couple of days.
Would you apply the PSR-4 styling to the function, i.e. 4-space indents and function braces on a new...
Type: Posts; User: lat9
Thanks, mc12345678; I've got the function copied and will "play" over the next couple of days.
Would you apply the PSR-4 styling to the function, i.e. 4-space indents and function braces on a new...
I think I understand the $future_only flag's use now, good idea.
Another thing to consider in the function's processing:
$start1 or $start2 can be an array with both keys of 'start' and 'end'...
@mc12345678, I've got a couple of questions on the proposed function's definition (a great idea):
Why add the complexity of allowing those inputs to be arrays?
What purpose is served by the...
That could be dangerous, given the issue that I reported in the first post of this thread.
The admin-side specials' processing doesn't perform any duplicate (or date-range overlap) validation...
... and could is the operative word! The specials code in the admin (the core version anyway) will not allow multiple specials to be assigned to a single product via its GUI.
I see that in the GUI, but it's a different story in the "core" code.
In the current implementation of "specials" (through ZC 1.5.5e), if a product has a special its products_id is no longer presented in the drop-down list of products; that's what led me to my initial...
From inspecting the code, it seems like the answer to the question in the title is "No". If that's the case, why doesn't the specials table simply use the associated products_id as its primary key?...