-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Hide product from cart until available date.. #2720
Merged
drbyte
merged 19 commits into
zencart:v157
from
mc12345678:v157-disabled-and-hidden-until-date
May 7, 2020
Merged
Changes from 13 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f649880
Hide product from cart until available date..
mc12345678 5fefa7e
Move functions into products_functions.php
mc12345678 413f69c
Delete separate functions file
mc12345678 f2ab47e
Incorporate functions_products and enabling disabled product
mc12345678 7833f89
Replaced load of code by alternate incorporation
mc12345678 763ec19
Complete the removal of the additional files
mc12345678 059856a
Add control if admin switch present and enabled
mc12345678 1c83de7
Remove closing php tag
mc12345678 bb53a3e
Refactor for spaces/PSR-2
mc12345678 5a40a93
Add enabled disabled date available configuration to update path
mc12345678 0bb4855
Add Admin enable disabled upcoming product switch to install
mc12345678 3035242
Remove unnecessary parentheses in query
mc12345678 5352a55
Use foreach for record traversal
mc12345678 5c248b1
Update configuration_title and configuration_description
mc12345678 79d9fe2
Update configuration_title and configuration_description
mc12345678 88770fd
Default/Restore date to NULL and ignore if is NULL
mc12345678 fbc7954
Use the term Automatic to enable this feature
mc12345678 3fecb58
Update the installation and upgrade scripts for Automatic and Manual
mc12345678 0fd163c
Formatting only
drbyte File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mc12345678
Given that
init_general_funcs.php
already has arequire
forfunctions_products.php
which loads at breakpoint60
, why are we requiring it again here again ininit_speical_funcs.php
which loads at breakpoint150
?Ref: #2551
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In essence, to allow such a comment/question/tracking to identify the dependency of these changes on
functions_products.php
... Possibly could have just added a note to indicate that dependency; however, also wanted to be sure that it was actually included at or before the subsequent code in the event the file's load point was otherwise changed. I recall there being some "adjustments" being made to its (functions_products.php
) load point and/or inclusion.As a "final product" I would say that identifying the dependency as a code comment should be sufficient and that the line could otherwise be removed.