Title: lukecb's Replies | WordPress.org

---

# lukecb

  [  ](https://wordpress.org/support/users/lukecb/)

 *   [Profile](https://wordpress.org/support/users/lukecb/)
 *   [Topics Started](https://wordpress.org/support/users/lukecb/topics/)
 *   [Replies Created](https://wordpress.org/support/users/lukecb/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/lukecb/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/lukecb/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/lukecb/engagements/)
 *   [Favorites](https://wordpress.org/support/users/lukecb/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/users/lukecb/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/lukecb/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] E-mail add SKU](https://wordpress.org/support/topic/e-mail-add-sku/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/e-mail-add-sku/#post-18740195)
 * Thanks for the reply.
 * One more question. Is it possible to increase the width of the sent email in 
   the template?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] REST API – coupon_lines discount 0](https://wordpress.org/support/topic/rest-api-coupon_lines-discount-0/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/rest-api-coupon_lines-discount-0/#post-18587235)
 * That 0 is displayed when calling the order
 * [https://elabela.cz/wp-json/wc/v3/orders/6977/?](https://elabela.cz/wp-json/wc/v2/orders/6977/?consumer_key=ck_a0d27d3ca69f94db5616e6c540b67f00ab78a0ec%20&consumer_secret=cs_052bf0f8d413753fa5a5f3c24f67f3657dd3b6fc)
 *     ```wp-block-code
       "discount_total": "150.00","discount_tax": "0.00" "coupon_lines": [        {            "id": 3325,            "code": "domi15",            "discount": "0",            "discount_tax": "0",            "meta_data": [                {                    "id": 31333,                    "key": "coupon_info",                    "value": "[11910,\"domi15\",\"percent\",15]",                    "display_key": "coupon_info",                    "display_value": "[11910,\"domi15\",\"percent\",15]"                }            ],            "discount_type": "percent",            "nominal_amount": 15,            "free_shipping": false        }    ],
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] REST API – coupon_lines discount 0](https://wordpress.org/support/topic/rest-api-coupon_lines-discount-0/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/rest-api-coupon_lines-discount-0/#post-18575321)
 * Hi,
 * The coupon was used by the customer in the cart.
 * Some orders have it right. This is an example that has 0 in the REST API 22521025:
 * [https://snipboard.io/ce3QUJ.jpg](https://snipboard.io/ce3QUJ.jpg)
 * REST API:
 * [https://snipboard.io/0batkI.jpg](https://snipboard.io/0batkI.jpg)
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] REST API – coupon_lines discount 0](https://wordpress.org/support/topic/rest-api-coupon_lines-discount-0/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/rest-api-coupon_lines-discount-0/#post-18570829)
 * I send: [https://pastebin.com/k23iffcV](https://pastebin.com/k23iffcV)
 * Thank you
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] REST API – coupon_lines discount 0](https://wordpress.org/support/topic/rest-api-coupon_lines-discount-0/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/rest-api-coupon_lines-discount-0/#post-18570333)
 * On the customer and sales side, the amount and discount are displayed correctly.
 * We call the value to accounting via REST API and sometimes zero is displayed 
   there, see first post.
 * Thank you
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] REST API – coupon_lines discount 0](https://wordpress.org/support/topic/rest-api-coupon_lines-discount-0/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/rest-api-coupon_lines-discount-0/#post-18568827)
 * The coupon was entered directly in the cart by the customer.
 * I don’t know what letters the customer entered the coupon in. The system automatically
   always converts it to lowercase, even if the customer enters it in uppercase.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence WooCommerce Email Designer] Some sent emails are sent without editing.](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [10 months ago](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/#post-18559036)
 * Sorry, I was on vacation. Ticket submitted.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence WooCommerce Email Designer] Some sent emails are sent without editing.](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/#post-18539305)
 * It will happen, maybe one day. So the e-shop cannot be switched to a different
   template for a long time. I haven’t found anything in the log yet.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence WooCommerce Email Designer] Some sent emails are sent without editing.](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/#post-18535935)
 * This happens with Cancelled Order and New Order for both the administrator and
   the customer.
 * [https://ibb.co/r2yPgw3K](https://ibb.co/r2yPgw3K)
 * We have two physically separate websites elabela.cz and elabela.sk and it does
   it on all of them. On one website, all plugins, wordpress, wocommerce were updated.
   Template [Envo eCommerce PRO](https://envothemes.com/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence WooCommerce Email Designer] Some sent emails are sent without editing.](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/#post-18530932)
 * The error still occurs with some emails.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence WooCommerce Email Designer] Some sent emails are sent without editing.](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/#post-18528950)
 * So now an email came in without formatting. I can’t find where the problem could
   be.
 * I’ll try setting a 3s delay for sending emails to see if there’s a timing problem:
 *     ```wp-block-code
       add_action( 'init', function() {    if ( ! class_exists( 'WC_Emails' ) ) return;    $mailer = WC()->mailer();    $emails = $mailer->get_emails();    foreach ( $emails as $email_id => $email_obj ) {        // Odpojíme automatické odesílání        add_filter( "woocommerce_email_enabled_{$email_id}", function( $enabled, $order ) use ( $email_id ) {            if ( $enabled && $order instanceof WC_Order ) {                wc_schedule_single_action( time() + 3, 'custom_delayed_email_send', [                    'email_id'  => $email_id,                    'order_id'  => $order->get_id()                ] );                return false;            }            return $enabled;        }, 10, 2 );    }});add_action( 'custom_delayed_email_send', function( $args ) {    if ( empty( $args['email_id'] ) || empty( $args['order_id'] ) ) return;    $email_id = $args['email_id'];    $order_id = $args['order_id'];    $mailer = WC()->mailer();    $emails = $mailer->get_emails();    if ( isset( $emails[ $email_id ] ) ) {        $emails[ $email_id ]->trigger( $order_id );    }} );
       ```
   
    -  This reply was modified 10 months, 3 weeks ago by [lukecb](https://wordpress.org/support/users/lukecb/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence WooCommerce Email Designer] Some sent emails are sent without editing.](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/some-sent-emails-are-sent-without-editing/#post-18528902)
 * Hi,
 * it started in early June. I have updated all components now and will monitor 
   it.
 * If the problem occurs again, I will report back in this thread.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TablePress - Tables in WordPress made easy] Table editing – table content width](https://wordpress.org/support/topic/table-editing-table-content-width/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/table-editing-table-content-width/#post-18236277)
 * Thank you, that’s it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mergado Pack] Uncaught TypeError: mergado-marketing-pack/src/Service](https://wordpress.org/support/topic/uncaught-typeerror-mergado-marketing-pack-src-service/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/uncaught-typeerror-mergado-marketing-pack-src-service/#post-17769737)
 * Verze WooCommerce:8.8.3
 * Verze WordPress:6.5.3
 * Mergado marketing pack: 3.7.3
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mergado Pack] Uncaught TypeError: mergado-marketing-pack/src/Service](https://wordpress.org/support/topic/uncaught-typeerror-mergado-marketing-pack-src-service/)
 *  Thread Starter [lukecb](https://wordpress.org/support/users/lukecb/)
 * (@lukecb)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/uncaught-typeerror-mergado-marketing-pack-src-service/#post-17769658)
 * Dobrý den,
 * využíváme jen výchozí kupóny Woocommerce.
 * Děkuji za pomoc

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/users/lukecb/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/lukecb/replies/page/2/?output_format=md)