WPPizza – A Restaurant Plugin for WordPress › Support › General Support › help with creating add-on for holidays opening hours
- AuthorPosts
- 21 October, 2014 at 7:53 pm #5738
Hi,
i need your help with creating simple addon to show opening hours for holidays.
first way it can be done by allow selctec date range (from date to date) and then select open time hourse. then it will printed after the defult open hourse. if we can add text filed to write the holiday name and then show the name before open hourse it will be great.second is create static(one time) list for all holidays and then show checkbox near the holiday name. when the holiday come i can check the box, select the open time and the in will print after or before default open time:
holiday name:
opening time:many restorans working on holidays so it could be where useful to many restaurants to show when the open in holidays.
this option i want to show in wppizza-opening-times page
Thanks
21 October, 2014 at 8:52 pm #5742sorry, but this really is your customisation/programming
you can of course already set opening times for specific date that override the others under
“Any dates/days where opening times differ from the standard times above (such as christmas etc).”
but if you want to display holiday names etc etc , that’s really your baby
there are a bunch of codesnippets though you could have a look at here
https://www.wp-pizza.com/forum/code-snippets/
and in your case, the following would probably/possibly be a good starting point
https://www.wp-pizza.com/topic/extending-the-plugin-with-a-class/
21 October, 2014 at 8:57 pm #5743>many restorans working on holidays so it could be where useful to many restaurants to show when the open in holidays
i would have thought just typing it in somewhere would do the job just fine
(not sure why you want to make things unnecessarily complicated, but maybe i’m missing things)
22 October, 2014 at 6:07 am #5745Thanks for the links.
the problem with the holidays functionality is that you need to select day by day and not date range from to.many holidays can be couple days and others couple weeks. so the best here would be date range.
about you can of course already set opening times for specific date that override the others under i did not see this working so i will check this. if this option change the opening hours in the
<?php echo do_shortcode('[wppizza type="openingtimes"]'); ?>
it will save me lots of work. - AuthorPosts
- The topic ‘help with creating add-on for holidays opening hours’ is closed to new replies.