Support Forum ยป User Profile

Forum Replies Created

Viewing 6 posts - 46 through 51 (of 51 total)
  • Author
    Posts
  • in reply to: How to Format Datetime in Oxygen Builder? #29867
    Tobias HaasTobias Haas
    Participant

    Hi Long

    Your documentation would be much better if you showed a lot more examples.
    for me as a beginner it is a torture ...

    And how can I set the locale?
    I want to display the days in German language.

    thank you for your help ๐Ÿ˜‰

    in reply to: How to Format Datetime in Oxygen Builder? #29856
    Tobias HaasTobias Haas
    Participant

    And how can I set the time to UTC + 1?

    Tobias HaasTobias Haas
    Participant

    I hope the Oxygen integration will come soon! That would be great!

    in reply to: โœ…Recipe: Ingredients * calculate portions #29520
    Tobias HaasTobias Haas
    Participant

    Hey Long, thank you very much!
    Good to now! ๐Ÿ˜‰

    I created a Service Request.

    Thanks

    in reply to: โœ…Recipe: Ingredients * calculate portions #29497
    Tobias HaasTobias Haas
    Participant

    Hey Long,
    I have now created a group

    • Label: ingredient_group
    • ID: ingredient_group
    • Type: Group
    • Cloneable: yes

    In this group I have added 4 fields.

    • Label: Number of ingredients
    • ID: number_ingredients
    • Type: number
    • Label: Unit of measure
    • ID: unit
    • Type: Select Advanced
    • Choises: l, ml, g, kg...
    • Label: ingredient
    • ID: ingredient
    • Type: Text
    • Label: calculation
    • ID: calculation
    • Type: number
    • Read only: yes

    Outside of the Group i have another Custom Field

    • Label: portions
    • ID: portions
    • Type: Number

    Im using the Oxygen Builder, so i added this Snippet to the Plugin "Code Snippets"

    
    add_action ( '', function() {
        ?>
       <script type="text/javascript">
          jQuery(document).ready(function($) {
             $('body').on('keyup', '#portions, #number_ingredients', function() {
                var portions = $('#portions').val();
                var number_ingredients = $('#number_ingredients').val();
                var calculation = portions * number_ingredients;
             $('#calculation').val(calculation);
             });
          });
       </script>
    <?php
        });
    

    Unfortunately it does not work... What am I doing wrong?

    Kind Regards and thanks for your Help!

    in reply to: โœ…Recipe: Ingredients * calculate portions #29462
    Tobias HaasTobias Haas
    Participant

    Hey Long, thank you very much for your answer.
    But what do I do if I want to name my ingredients and specify the number of tomatoes, for example, that are calculated at the same time as the servings?

    1x tomato * number of servings

    If I define the field as a Number, I can no longer enter the name of the ingredient.

Viewing 6 posts - 46 through 51 (of 51 total)