cubic

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: update_option from a custom admin page #21626
    cubic
    Participant

      Ok I understand.
      Thank you

      in reply to: Custom order information #20135
      cubic
      Participant

        Ok thank you for your answer. I’ll do some tests.

        in reply to: Custom order information #20118
        cubic
        Participant

          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.

          in reply to: Custom order information #20114
          cubic
          Participant
            This reply has been marked as private.
            in reply to: Custom order information #20113
            cubic
            Participant

              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.

              in reply to: Get Categories and orderby #19852
              cubic
              Participant

                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.'"]' );
                }
                
                in reply to: Ghost button "Place order" in widget cart #19616
                cubic
                Participant

                  Sorry, it was a problem with my custom code. All is right now !

                  in reply to: Demo ? #19346
                  cubic
                  Participant

                    It was a question (but for me !) if I’m able to do that.
                    Sorry for my english !

                    in reply to: Demo ? #19344
                    cubic
                    Participant

                      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.

                      in reply to: Demo ? #19341
                      cubic
                      Participant

                        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 ?

                        in reply to: Demo ? #19339
                        cubic
                        Participant

                          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 ?

                          in reply to: Translation with Loco #19298
                          cubic
                          Participant

                            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 !

                            in reply to: Translation with Loco #19293
                            cubic
                            Participant

                              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 ?

                            Viewing 13 posts - 1 through 13 (of 13 total)