Using WP Telegram with Supportcandy
-
Thank you for a great plugin.
I am using this with Supportcandy, so new support tickets / replies are sent to Telegram.a) 1st issue — after installing, the RULES does not show wpsc_ticket_thread post. When I changed class-wptelegram-p2tg-admin.php line 695: $post_types = get_post_types( array( ‘public’ => false ), ‘objects’ ); then the cpt for wpsc shows up in the rule lists. Looks ok so far. How to put this in a filter instead of changing the core?
b) 2nd issue — after I am able to select wpsc_ticket_thread cpt, I can receive new ticket/replies in Telegram channel! However, the url used by wptelegram for wpsc support ticket is incorrect: it uses the post ID and not the ticket_id which in in the wp_postmeta. I used this code in class-wptelegram-p2tg-post-data.php but it gives empty results:
case 'full_url': $post_ID = get_post_meta($this->post->ID,'ticket_id',true); // $value = urldecode( get_permalink( $this->post->ID ) ); $value = 'https://myserver.com/helpdesk?support_page=open_ticket&ticket_id='.$post_ID;
c) 3rd Issue — the image used by wpsc in the ticket is in the format of: https://myserver.com/?wpsc_img_attachment=923 — the actual file path is in wp_termmeta under the term_id = 923. I am trying to send the img to telegram with the actuall url, by getting the file_path using get_term_meta, but I am not good in php.
I dont know how other users using supportcandy is using WP Telegram; i think both are well matched to have a good combined notification.
- The topic ‘Using WP Telegram with Supportcandy’ is closed to new replies.