• Resolved verofj

    (@verofj)


    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

    (@dhara61)

    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

    (@verofj)

    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

    (@dhara61)

    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

    (@verofj)

    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 No.[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

    (@dhara61)

    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.