rainafarai
Forum Replies Created
-
Hi you can add link with a filter and a function in you function.php …
//after items
add_filter(‘nftb_order_after_items_hook’, ‘my_filter_function’, 10, 1);
//or at the end of the message
add_filter(‘nftb_order_footer_message_hook’, ‘my_filter_function’, 10, 1);
so now in you function you can access the Order Object$order = wc_get_order($order_id);
with$order_id you can create a link to edit orderhere more example and contact module if you need more support
https://www.reggae.it/my-wordpress-plugins#contact- This reply was modified 1 month ago by rainafarai.
Forum: Plugins
In reply to: [Notification for Telegram] Convert HTML entitiesI insert the $messaggio = html_entity_decode($messaggio, ENT_QUOTES, ‘UTF-8’);
in the last update 3.3.1Forum: Plugins
In reply to: [Notification for Telegram] Convert HTML entitiesDisable Debug … to hide de warnings … they are not errors just warnings !!
So please confirm WE fix the Convert HTML entities problem withThe line:
$messaggio = html_entity_decode($messaggio, ENT_QUOTES, ‘UTF-8’);Forum: Plugins
In reply to: [Notification for Telegram] Convert HTML entitiesCan you please give me the log of the error ”?critical error ” its not enough for me to debug
thxForum: Plugins
In reply to: [Notification for Telegram] Convert HTML entitiesI dont knwo you php skills anyway did you copy all the line including th3 “;” at the end of the line :
$messaggio = html_entity_decode($messaggio, ENT_QUOTES, ‘UTF-8’);I added the line i suggest you for testing with no Global errors
Forum: Plugins
In reply to: [Notification for Telegram] Convert HTML entitiesI can’t emulate the bug so i can’t help you from my side
but if you can access by ftp your plugin directory you can go to
/wp-content/plugins/notification-for-telegram/include/tnfunction.php
and try to add at line 360 ( before the ” foreach ($users as $user)” LOOP)
this new line:
$messaggio = html_entity_decode($messaggio, ENT_QUOTES, ‘UTF-8’);save the file to the server
do your test and let me know if it works !!Forum: Plugins
In reply to: [Notification for Telegram] Convert HTML entitiesHi i created a product with your same name Kharkiv – Stuttgart try to order and the message i got back is well formatted no HTML ..
https://ibb.co/zxt5SWm
did you have the last version of the plugin ?in the first page of plugin options check :
( in my test its turned off )Strip Html Tags in all notification messages
if the switch is active, all notification messages will keep any HTML tags if present.
if turned off (default and suggested) all html tags will be removed in the masseges.
( Telegram can’t render HTML ) This setting affects globally
Let me know if you fix the problem !!Forum: Plugins
In reply to: [Notification for Telegram] PHP 8.2 WarningsThx will be fixed in next release !!
I don’t think I’ll include this functionality for now. I’m sorry.. if you really need it I can customize a version of the plugin just for you. If so, contact me privately.
have nice dayForum: Plugins
In reply to: [Notification for Telegram] How add attribute woocommerce?Hi you can Add a filter in your function.php..
To replace the original plugin product line with your new line
You can ADD or REPLACE LINE depends your needs
this code is an example to ADD or REPLACE LINE<?php add_filter('nftb_order_product_line_hook', 'my_item_line_function', 10, 3); function my_item_line_function($message ,$product_id, $item) { // ADD SOME CODE $product_id TO ORIGINAL row $message. $modified_data = $message. "->".$product_id. "\r\n"; // REPLACE Product ITEM LINE CODE WITH YOUR CODE without concatenate $message. $modified_data = $product_id. "\r\n"; return $modified_data; } ?>
instead of return the ID write you code to get the ?attribute and its price from product ID
Forum: Plugins
In reply to: [Notification for Telegram] Error in php version 8.1Thx for the alert !
Forum: Plugins
In reply to: [Notification for Telegram] Add Support for BricksbuilderHi where i can download the Bricksbuilder to test it ?
i search on plugin repository nothing found ….
its free ?
let me know … i cant include without testing !!you can download the New version 3.3 with you request let me now if works !!
Forum: Reviews
In reply to: [Notification for Telegram] Great pluginThank you for support !!
Yess
I notice … so i Add a filter… now is in test mode after testing will be
included in the next Update !! please wait for the next update !!