I need help with adding functionality to a Wordpress plugin called WP Recipe Maker.
Changes required in backend and database to calculate carbs from selected ingredients when admin creates a new recipe.
How they create a new recipe:
When any recipe is modified by adding / removing ingredients or master list of ingredients modified which are used in any recipe - recalculations required.
Same changes required in frontend but need to be recorded individually and can't be recorded in fields created for backend as carb calculation needs to be stored under respective user only.
Recalculation changes required under meal plan whenever adding / removing ingredients under selected recipe available under that user.
Whole figures are stored locally under that user profile.
We want to be able to apply a calculation where you can set a Daily Carb Limit per day (this is possible in the backend of the app) and then set it up so that it subtracts the carb count when recipes are added to the planner.
Screen Shot 2019-11-11 at 11.43.18 [login to view URL]
It should begin at 65 (or whatever we set the limit at) and then subtract the calculated carbs in the recipe template (the same ones we have used for the add/remove function).
Current field available can’t be used, so a separate hardcoded field with correct data type needs to be created and make it available under respective user instead of keeping it global.
Allow interface for users to enter field value, which is again stored under respective user and not global (not same value for all users)
Use this value and implement calculations under meal planner. First to check total carbs for that day, for that meal planner, for that user.
Then use daily carb limit field to find difference between both, and make it work individual days as each day can have different meal, with different ingredients and with different carbs under each. Not to forget different values as well (100g, 200g, 50ml etc.)
After doing all these calculations, need to implement further checks and recalculations whenever any changes being applied by that user in their own meal plan such as adding/removing recipe, or adding/removing ingredients.
I can provide login to FTP and as much other information you need.
Project needs to be completed ASAP.
Ongoing relationship possible.