hello,
Hope you’re fine. I have some discounted products that are out of stock but still show a notification on the site. is there a way to leave them out if as they are out of stock?
Best regards,
]]>Possible bug report. I noticed that I was getting an HTTP 500 response in the browser’s network tab on calls to /?wc-ajax=wpcsn.
The WordPress debug log shows:
[10-Sep-2024 00:27:30 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_formatted_billing_full_name(); in /var/www/domain.com/wp-content/plugins/wpc-smart-notification/core/notification.php:143
Stack trace:
#0 /var/www/domain.com/wp-content/plugins/wpc-smart-notification/core/notification.php(26): WPCSN\notification->new_orders()
#1 /var/www/domain.com/wp-content/plugins/wpc-smart-notification/core/ajax-processing.php(19): WPCSN\notification->get_content()
#2 /var/www/domain.com/wp-includes/class-wp-hook.php(324): WPCSN\ajaxProcessing->get_content()
#3 /var/www/domain.com/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#4 /var/www/domain.com/wp-content/plugins/wpc-smart-notification/core/ajax-definition.php(25): apply_filters()
#5 /var/www/domain.com/wp-content/plugins/wpc-smart-notification/core/initialization.php(38): WPCSN\ajax->__construct()
#6 /var/www/domain.com/wp-includes/class-wp-hook.php(324): WPCSN\initialization->ajax()
#7 /var/www/domain.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#8 /var/www/domain.com/wp-includes/plugin.php(517): WP_Hook->do_action()
#9 /var/www/domain.com/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
#10 /var/www/domain.com/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
#11 /var/www/domain.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#12 /var/www/domain.com/wp-includes/plugin.php(517): WP_Hook->do_action()
#13 /var/www/domain.com/wp-includes/template-loader.php(13): do_action()
#14 /var/www/domain.com/wp-blog-header.php(19): require_once('...')
#15 /var/www/domain.com/index.php(17): require('...')
#16 {main}
thrown in /var/www/domain.com/wp-content/plugins/wpc-smart-notification/core/notification.php on line 143
It seems that if one of the orders returned was cancelled or refunded, an OrderRefund object is returned instead of an order object, which breaks the popup notification until there are no invalid objects returned.
Seems to be fixable by checking if the object returned is an WC_Order:
if ( $order instanceof WC_Order ) {
$_name = $order->get_formatted_billing_full_name();
$_address = $order->get_billing_city();
} else {
continue;
}
Also, while I’m here, I wanted to suggest changing line 143 from:
$_name = $order->get_formatted_billing_full_name();
to:
$_name = $order->get_billing_first_name();
As customers may not with their full name to be displayed publicly.
Cheers!
Zendev
Hello,
messages are not displayed on the site. I have the impression that it is something related to the script optimization, because they appear when I am in page edit mode of the site but not when I am logged in as administrator or as a user.
I have configured data source.
I use Redis optimization + perfmatters and I left frontend.js without defer or delay.
could any of them be missing?
Thanks,
The notification are still showing on mobile and I already deactivate in cart, and mobile but still shows.
]]>Hello!
Could you please let me know if there is any way to fix issue in Google PageSpeed Insights related to: Links must have discernible text? Thank you!
body.home > div.wpcsn-notification > a.close
<a href="#close" class="close">
]]>
Adding products to Virtual Orders and then saving works. However, after reloading the WPC Smart Notifications admin page, the products are no longer listed in the Product(s) box.
]]>Great plugin.
Problem:
Notification (top right) on cell phones has a problem with the size of the notification (occupying almost the entire screen).
Great plugin.
Problem:
The content or link of the store behind the notification cannot be clicked after the notification has left. Even after leaving the notification, when you click and send to the notification link, the store content (background) is disregarded.
Hi, how can I anonymize names as the plugin displays first + last names ?
Firts name + first letter of the name could be a solution. Is there a way to do so ?
i.e. Vincent R.
Thanks,
Vincent
]]>Hi !
In the virtual orders, no issue with the Buyer names & address. However, when I add some products and save. When I reload the page, selected products disappear and are not taken into consideration. I also can’t exclude some products (what I need to do).
]]>Hello,
I tried to tranlsate some strings to my language by Loco translate, but it doensn’t take effect.
Do you have idea or advice how is possible to transéate the messages?
Thanks, Arpad
]]>When using this and selecting orders. It shows shoppers personal info like full name. How do we anonymize this?
]]>Hello, may this plugin change the language?
Like WPC Frequently Bought Together, it supports Localization.
thanks
Hello, I installed the plugin, it is configured and it does not appear on my website.
I have installed
wordpress Version 5.8.1
woocommerce 5.7.1
the theme of my website is Flatsome
I would appreciate help.
Thank you so much
]]>Hello,
Awesome plugin! Work perfect! But we think that add a delay bewteen the popups would be very nice in term of customer experience. Currently each popup is loaded directly after the delay time in the setting. It would be very nice if there would be two option:
– Autoplay (already there)
– Time between
Is there a way to add this?
Cheers
]]>