0.00  View Cart

Support WooCommerce Easy Booking Use scheduled date in another plugin

This topic contains 5 replies, has 2 voices, and was last updated by  Ashanna 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6311

    mariomuniz
    Participant

    Olá.

    Quero que a data que aparece na página de pedidos do woocommerce apareça em uma tabela dentro de um plug-in que estou editando.
    1 – Qual é a sintaxe para chamar e usar a variável no código do plugin para fazer com que essas informações apareçam na página que eu quero?
    2- Em qual banco de dados o dia da reserva é armazenado?

    Resumindo… Quero usar essa informação em outro lugar

    https://uploaddeimagens.com.br/imagens/info-png-fc433ca2-01c5-466b-a033-102e06980349

     

     

    #6319

    Ashanna
    Plugin's author

    Hello,

    I don’t speak Portuguese, sorry. Please post your message in English.

    Thanks.

    Regards,
    Natasha

    #6321

    mariomuniz
    Participant

    Hello.

    I would like the scheduling date of a service (which appears on the woocommerce ordering page) to appear in a table within a plugin I am editing.
    1 – What is the syntax for calling and using the variable in the plugin code to make this information appear on the page I want?
    2- In which database is the reservation day stored?

    In short… What code to use this information elsewhere?

    #6322

    Ashanna
    Plugin's author

    You can get dates with these functions:

    $start = wc_get_order_item_meta( $item_id, '_ebs_start_format' );
    $end = wc_get_order_item_meta( $item_id, '_ebs_end_format' );

    You only need the $item_id variable, which you probably already have.

    I hope this helps 🙂

    #6324

    mariomuniz
    Participant

    Thank you very much!!

    Just one more help please.

    How to change date display to dd \ mm ???

    #6327

    Ashanna
    Plugin's author

    It depends where you want to change it.

    On the order page, you need to change your settings in the admin panel > Settings > General > Date format.

    On the product page, you need to find the file corresponding to your language in woocommerce-easy-booking-system/assets/js/translations and change the “format” value (don’t touch the “formatSubmit” value).

    Regards,
    Natasha

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

You must be logged in to reply to this topic.

Want to know what's next with Easy Booking? Check the roadmap!