Title: Shortcode
Last modified: November 20, 2018

---

# Shortcode

 *  Resolved [verofj](https://wordpress.org/support/users/verofj/)
 * (@verofj)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/shortcode-620/)
 * Hola, necesito mostrar la fecha de entrega en un correo que he creado manual 
   en html.
    ¿puedo mostrar la fecha de entrega con un shortcode? ¿cual seria para
   que se muestre?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [dhara61](https://wordpress.org/support/users/dhara61/)
 * (@dhara61)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/shortcode-620/#post-10902545)
 * Hi,
 * It is difficult for us to understand Spanish so it would be great if you can 
   communicate in English.
 * After translating your reply via Google translate we came to know that you need
   to show the delivery date in an email created manually in HTML.
 * Yes, one can display the delivery date in email but currently, there is no shortcode
   for the same.
 * To display a delivery date, we do provide a function in our plugin which can 
   be used to obtain the selected Delivery Date information for any particular order.
   The function is as follows:
 * orddd_lite_get_order_delivery_date(): To obtain Delivery Date information for
   any particular order.
 * Please let me know if you have any further queries.
 * Regards,
    Dhara Shah
 *  Thread Starter [verofj](https://wordpress.org/support/users/verofj/)
 * (@verofj)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/shortcode-620/#post-10904509)
 * Si, es eso lo que necesito, Perdona por escribir en español pero no se me da 
   muy bien el inglés. Yo también utilizo traductor.
 * ¿como sería el código para que se muestre?
    He intentado crear un shortcode utilizando
   la función pero no funciona
 * // Add Shortcode
    function mostrar_fecha() { echo “orddd_lite_get_order_delivery_date”;}
   add_shortcode( ‘fecha’, ‘mostrar_fecha’ );
 *  Plugin Support [dhara61](https://wordpress.org/support/users/dhara61/)
 * (@dhara61)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/shortcode-620/#post-10910135)
 * Hi,
 * No problem. We will also use the google translator for a better communication.
 * Regarding the code, you can use the following patch of code in your HTML code
   to display the delivery date in the email:
 * $order_id = 36; /*sample order ID*/
    $orddd_class = new orddd_lite_common(); 
   $delivery_date = $orddd_class->orddd_lite_get_order_delivery_date( $order_id );
   echo $delivery_date;
 * Let me know if you have any further queries.
 * Regards,
    Dhara Shah
 *  Thread Starter [verofj](https://wordpress.org/support/users/verofj/)
 * (@verofj)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/shortcode-620/#post-10911152)
 * Hola lo he probado pero creo que algo esta mal.
    Este es mi codigo:
 * <p>
    <table> <tbody> <tr>**Fecha del pedido: **[wcj_order_date]</tr> <tr>**Pedido
   Nº.**[wcj_order_number]</tr>
 *  
    <hr />  
 *  <tr> Cliente: [wcj_customer_meta key = “first_name”] [wcj_customer_meta key 
   = “last_name”]</tr>
    <tr> [wcj_customer_meta key = “shipping_company”]</tr> <
   tr> [wcj_customer_meta key = “shipping_address_1”] [wcj_customer_meta key = “
   shipping_address_2 “]</tr> <tr> [wcj_customer_meta key = “shipping_city”] [wcj_customer_meta
   key = “billing_state” ] [wcj_customer_meta key = “shipping_postcode” ]</tr>
 *  
    <hr />  
 * </tbody>
    </table> </p> <p> [wcj_order_items_table columns=”item_number|item_name
   |item_quantity|item_weight” columns_titles=”|Product|Qty|Weight” columns_styles
   =”width:5%;|width:75%;|width:5%;|width:15%;text-align:right;”] <table> <tbody
   >
 *  
 *  
    <hr />  
 * <tr>**Peso Total:** [wcj_cart_items_total_weight]</tr>
 * <tr>**Gastos del Transporte:** [wcj_order_total]</tr>
 * <tr>**Fecha para la entrega del pedido:** [fecha] </tr>
 * <tr>**Horario de entrega:** [Hora]</tr>
 * </tbody>
    </table> </p>
 * ¿donde o como incluyo el código que me facilitas?
 *  Plugin Support [dhara61](https://wordpress.org/support/users/dhara61/)
 * (@dhara61)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/shortcode-620/#post-10921400)
 * Hi,
 * Thank you for sharing the code with us.
 * We have checked the code which we shared with you in the last reply and it is
   working perfectly fine.
 * For your customized code, I will recommend you to hire a developer who will help
   you.
 * Regards,
    Dhara Shah

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/order-delivery-date-for-woocommerce/assets/icon-256x256.
   png?rev=2379428)
 * [Order Delivery Date for WooCommerce](https://wordpress.org/plugins/order-delivery-date-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/order-delivery-date-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/order-delivery-date-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/order-delivery-date-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/order-delivery-date-for-woocommerce/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [dhara61](https://wordpress.org/support/users/dhara61/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/shortcode-620/#post-10921400)
 * Status: resolved