Forum Replies Created
- AuthorPosts
-
Ok I understand.
Thank youOk thank you for your answer. I’ll do some tests.
Yes I tried this solution with this filter. But when I add a custom field with this filter, I can see it in order page, but not in email and order history after saving the order.
This reply has been marked as private.Yes, it is a simpler solution ! I tried to do it like this. But I need to put the time dynamically because it’s not the same time for each day and I need to show only the next time available.
For example, if it’s 13:00 and the available delivery time is between 11:00 and 15:00, it only displays 14:00 – 14:30 – 15:00. So I write my own function and it works fine. But now I have to add this information somewhere when the order is saved and display it in email and order history.
I tried an other solution :
– Create a custom field in order form setting (a simple text field)
– Hide this custom field on front with css
– Fill this custom field with javascript when the customer choose day and time in order page.
It works, but it’s not very clean.
I continue to look for a best solution.
Thanks.I found another way to display only the top level menu by using the shortcode [wppizza type = “navigation”].
There may be simple, but it works!function my_nav(){ $terms = get_terms(array( 'taxonomy' => 'wppizza_menu', //'parent' => 0, ) ); foreach ( $terms as $pterm ) { if($pterm->parent != 0){ $exclude[]=$pterm->term_id; } } $exclu=implode(",",$exclude); echo do_shortcode( '[wppizza type="navigation" exclude="'.$exclu.'"]' ); }
Sorry, it was a problem with my custom code. All is right now !
It was a question (but for me !) if I’m able to do that.
Sorry for my english !Yes I understand.
But can I customize it to add this function ? That is the question.
And yes, I know it will be difficult and I’m not a very good wordpress developer.
So I have to adapt my project.
Thanks for your answer.OK. But for my project, customers buy a menu ‘pizza + 1 drink’ or ‘salad + pizza + 1 drink’ and they can order separately other item.
In this way, if admin delete a drink as item , he have to delete this drink as ingredients too.
It’s perfect to compose pizza, but for the drink, it’s not very easy.
May be I can add this function… What do you think ? too difficult ?OK thanks. I’d seen examples. But I stay with some questions.
For example: I want to sell a menu ‘Pizza + 1 drink’. Is it possible in backend to add all the item in category “Beverage” for the drink ? Can I use items already registered in a category as ingredients ? Or items and ingredients are independent ?Ok…
Loco is a simple plugin to edit and save .mo files. (https://wordpress.org/plugins/loco-translate/).
I would avoid using WPML because I want a simple solution.
PPS : yes … indeed.
I’m trying your plugin for a a project and I think it will be a good solution. I’ll need extensions and paypal gateway, but for now I’m testing. It’s a good work !OK if I understand :
I’m the super administrator and my language is french. I create a new website B in spanish. If the administrator of website B go to settings > localization, all translations will be in Spanish automatically. But if he change language to english, translations stay in Spanish and he will have to insert the English translations manually. The .mo files are used only the first time, when installing.
Is it correct ? - AuthorPosts