• Resolved Anandabrata Ghosh

    (@ananddevops)


    Hello,

    Could you give me some insight, with reference to relevant code files and libraries, as to how the announcement notifications are implemented?

    I would like to additionally showcase them as desktop notifications, even when the application is minimized, as long as the user is logged in.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Anandabrata Ghosh

    (@ananddevops)

    Looked into the documentation, there are config details but not much about the implmentation of trigger for new announcement. Also looked up the code and announcement related files.

    It will be helpful incase you give me some insight as to the flow of how the submit of Add New Annoucement works in the code for it appear on the Vendor Dashboard.

    Thanks

    @ananddevops, please check our “vendor-announcements.php” template file. We call this template when the announcement tab gets clicked.

    For further details please check – https://github.com/dualcube/dc-woocommerce-multi-vendor/blob/master/templates/vendor-dashboard/vendor-announcements.php and see how we are fetching the further templates via get_template('vendor-dashboard/vendor-announcements/vendor-announcements-all.php',array('posts_array'=>$all)); and get_template('vendor-dashboard/vendor-announcements/vendor-announcements-read.php',array('posts_array'=>$read));

    Thread Starter Anandabrata Ghosh

    (@ananddevops)

    @dualcube Thanks so much for providing the details.

    I did a read on the related source. I am summarizing my learnings and queries accordingly.

    The announcements currently is generic to all vendors, hence when get_template is called it displays all the announcement, regardless of WP Admin or Vendor Dashboard.

    Now since I want to make the Announcements Vendor specific, I will need to add an announcement with a Vendor id, so it can be pulled Vendor specific only in the Vendor Dashboard. I am guessing it means the following changes:

    1. Add New Page For announcement in WP Admin will need a Vendor MetaBox(Select). It will need to be populated with vendor list. I am guessing it will be data which is already being pulled to the WP Admin in the existing Vendor section.
    2. Then once the Vendor is chosen, the announcement will need to be saved in the DB linked to the Vendor.
    3. And once a Vendor accesses the Announcement section in the Vendor Dashboard, annoucements associated with him/her will be pulled up.

    I understand the flow, but it seems quite a bit of custom coding :). And I am aware that such customizations are a premium feature for WCMP. Hence I will revisit this if I can figure this on my own.

    The last bit that I would request you to share is the call for Add New announcement.

    Thanks for all the help.

    @ananddevops, we will definitely ass you with this.

    Can you please clarify this a bit more ” the call for Add New announcement.”, so we can help you out accordingly.

    Thread Starter Anandabrata Ghosh

    (@ananddevops)

    @dualcube

    I will surely.

    I am prioritizing the Order ticket

    Cause if there is a solution for that, I might be able to skip this altogether.

    Thanks

    @ananddevops, Vendor Announcement is a custom post type, hence it gets handled the same way WordPress also handles any post type.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How does Announcement notification work?’ is closed to new replies.