Support » Plugin: WooCommerce » Notification

  • Resolved Fabricio10

    (@fabriciobarros10)


    pedido

    I have a personalized order page that updates every 4 minutes to show new orders that have arrived an audible alert is issued to alert the seller. see the code:

    if ( in_array( dokan_get_prop( $order, 'status' ), array( 'pending', 'on-hold' ) ) ) {
                                            $actions['processing'] = array(
                                                'url' => wp_nonce_url( admin_url( 'admin-ajax.php?action=dokan-mark-order-processing&order_id=' . dokan_get_prop( $order, 'id' ) ), 'dokan-mark-order-processing' ),
                                                'name' => __( 'Processing', 'dokan-lite' ),
                                                'action' => "processing",
                                                'icon' => '<i class="fa fa-clock-o">&nbsp;</i><audio class="player" playsinline controls loop autoplay >
      
      <source src="https://mysite.com/wp-content/uploads/2020/10/140432912.mp3"  type="audio/mp3" >
    </audio>'
                                            );
                                        }

    But this method when the browser gets stuck after 2 hours of inactivity on the page it stops working.

    I need a method that works 100%, like a pop-up window or push notification on the desktop. Is there a way to provide push notification to the logged in user when a class is active on the page?

    need help.

    • This topic was modified 2 years, 12 months ago by Fabricio10.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    Looking at the code you shared, this seems to be aimed at giving a marketplace vendor an audible alert whenever a sale is placed. Moving forward, you’ll want to reach out to the developers of Dokan (or one of the customisation experts at https://woocommerce.com/customizations/) for more feedback on that code. I’m mentioning this as the WooCommerce support forum here is only focuses on support the core aspects of the WooCommerce plugin itself.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @fabriciobarros10,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to get in touch with Dokan for further assistance!

    If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notification’ is closed to new replies.