• Resolved rodelmyguides

    (@rodelmyguides)


    Hi dorzki,

    I realy like the plugins but somekind of having limited functions like cannot customize woocommerce completed order format from woocommerce going to slack post.

    a formatting that can customize that looks like this.
    2020-03-11_1635
    or same as
    2020-03-11_1637

    the original but if possible to add more details that would be great!

    Best Regards.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rodelmyguides

    (@rodelmyguides)

    Hello,

    I already get the idea on how i can customize inside, I just customize the Php plugins like this
    [
    ‘title’ => esc_html__( ‘Order ID’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => $order->get_order_number(),
    ‘short’ => true,
    ],
    [
    ‘title’ => esc_html__( ‘Order Status’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => ucwords( $order->get_status() ),
    ‘short’ => true,
    ],
    [
    ‘title’ => esc_html__( ‘Order Total’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => html_entity_decode( wp_strip_all_tags( wc_price( $order->get_total() ) ) ),
    ‘short’ => true,
    ],
    [
    ‘title’ => esc_html__( ‘Paid Via’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => $order->get_payment_method_title(),
    ‘short’ => true,
    ],
    [
    ‘title’ => esc_html__( ‘Shipping Fee’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => $order->get_shipping_total(),
    ‘short’ => false,
    ],
    [
    ‘title’ => esc_html__( ‘All Order Details’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => $order->get_checkout_order_received_url(),
    ‘short’ => false,
    ],
    [
    ‘title’ => esc_html__( ‘Customer Name’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => trim( $order->billing_first_name . ‘ ‘ . $order->billing_last_name ),
    ‘short’ => true,

    ],
    [
    ‘title’ => esc_html__( ‘Street’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => $billing_address_1 = $order->get_billing_address_1(),
    ‘short’ => true,

    ],
    [
    ‘title’ => esc_html__( ‘Address’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => $billing_address_2 = $order->get_billing_address_2(),
    ‘short’ => true,

    ],
    [
    ‘title’ => esc_html__( ‘Email’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => $order->billing_email,
    ‘short’ => true,

    ],
    [
    ‘title’ => esc_html__( ‘Note’, ‘dorzki-notifications-to-slack’ ),
    ‘value’ => $customer_note = $order->get_customer_note(),
    ‘short’ => false,

    ],

    but one last thing is i wan’t to display also the Vendors Shipped or Sold By :

    2020-03-17_1503

    Cheers!
    Thank you

    Plugin Author Dor Zuberi

    (@dorzki)

    Hello @rodelmyguides,
    It seems that what you need is unique to you.

    You can use slack_after_notification_generation filter to change how your notification looks – See more details at https://github.com/dorzki/Slack-Notifications/blob/master/core/class-slack-bot.php#L219

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot Customize Woocommerce Completed Order Format’ is closed to new replies.