• Hi there!

    Can you tell me how to add compatibility with WooCommerce Deposits + Coupon.

    The WooCommerce Deposits plugin allows the costumer to just pay a deposit for the product. When the costumer get the ‘purchase email notification’ the price of the product is divided in two ‘deposit’ and ‘to pay in the future’, sort of:

      ·Total: 100€
      ·Deposit: 50€
      ·To pay in the future: 50€

    This information is shown with no problem in the email. So far so good.

    Problems comes when the customer uses a Woocommerce Coupon. In short, the issue is that the coupon discount is not applied in the “To pay in the future” amount, like this:

      ·Total: 100€
      ·Discount (20%): 20€
      ·Deposit: 40€ (HERE THE DISCOUNT IS APPLIED)
      ·To pay in the future: 50€ (HERE IS THE PROBLEM. SHOULD BE 40€ INSTEAD. THE DISCOUNT IS NOT APPLIED)

    Is there a way to fix this?

    Thanks!

    • This topic was modified 4 years, 8 months ago by chefnelone.
    • This topic was modified 4 years, 8 months ago by chefnelone.
    • This topic was modified 4 years, 8 months ago by chefnelone.
    • This topic was modified 4 years, 8 months ago by chefnelone.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter chefnelone

    (@chefnelone)

    Hi,

    Let me know if you need me to send you the Woocommerce plugin for testing purposes.

    Ik don’t want te receive e-mails from this forum at the moment.

    Thread Starter chefnelone

    (@chefnelone)

    Hi there!

    Just looking for a workaround for this. Question: is there a way to create placeholder to print the TOTAL of the order?

    If this is possible, I will add a custom text in the body of the email.

    Regards.

    Thread Starter chefnelone

    (@chefnelone)

    I got it:

    /***********************************************************/
    /**********  PLACEHOLDER TO GET ORDER TOTAL IN EMAIL TEMPLATE - KADENCE  ************/
    /***********************************************************/
    add_filter( 'kadence_woomail_order_body_text', 'custom_function_for_order_total', 10, 2 );
    function custom_function_for_order_total( $text, $order ) {
    if ( is_a( $order, 'WC_Order' ) ) {
    $text = str_replace( '{order_total}',  $order->get_total(), $text );
    }
    return $text;
    }
    hannah

    (@hannahritner)

    Hi @chefnelone
    Apologies for the delay! Looks like were you able to create a solution? Let me know if there’s anything else I can help you with!

    Best,
    Hannah

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add compatibility with WooCommerce Deposits + Coupon’ is closed to new replies.