refluxcomponents
Forum Replies Created
-
I am trying to validate WooCommerce product fields to ensure they are not blank or empty for weight and dimensions using dokan_can_add_product and dokan_can_edit_product. It works for dimensions, but when I try to use $_weight = absint( sanitize_text_field( $postdata[‘_weight’] ) );, it also works, but only for whole numbers, not decimal places. This would be your code, nothing custom.
Hi Shamina, I can confirm- unfortunately the issue is happening all over again; no notifications to vendors for new orders are being sent out- this happened before and it was resolved many releases ago, but maybe it broke again with the last update…. ??
Thank you, but I assume there must be a much leaner way to accomplish such a thing without installing extensions- I simply just need a function that will hide Flat Rate shipping when any other shipping method is available.
Actually, here is my solution:
function reflux_update_slug( $data, $postarr ) { if ( ! in_array( $data['post_status'], array( 'draft', 'pending', 'auto-draft' ) ) ) { $data['post_name'] = wp_unique_post_slug( sanitize_title( $data['post_title'] ), $postarr['ID'], $data['post_status'], $data['post_type'], $data['post_parent'] ); } return $data; } add_filter( 'wp_insert_post_data', 'reflux_update_slug', 99, 2 );
Now the users can clone products without getting incorrect slugs/permalinks as a result.
Rashed, after much toiling, I can confirm that it is a permissions issue. If you take any vendor and change them to Admin, you can finally see the order notes and tracking number for each order as it should be. If you change them back to vendor again, same problem- each order shows that there are no notes or tracking number. What is the permission that needs to be granted for the order notes and tracking number to appear in the vendor dashboard? Please, I have been struggling with this one for a month and yes I have disabled all other plugins- nothing. And have changed theme to default. Which permission needs to be granted for the order notes to appear? So I don’t have to try them all one by one and keep switching users to test it. Thank you, I appreciate your help.
Here is a log of the error:
2020-09-13T00:26:22+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on bool in /wp-content/plugins/dokan-lite/includes/functions.php:2168
Stack trace:
#0 /wp-content/plugins/dokan-lite/includes/Emails/VendorNewOrder.php(110): dokan_get_vendor_order_details(18098, 110)
#1 /wp-includes/class-wp-hook.php(287): WeDevs\Dokan\Emails\VendorNewOrder->trigger(18098, Object(WC_Order))
#2 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#3 /wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#4 /wp-content/plugins/woocommerce/includes/class-wc-emails.php(170): do_action_ref_array(‘woocommerce_ord…’, Array)
#5 /wp-includes/class-wp-hook.php(287): WC_Em in wp-content/plugins/dokan-lite/includes/functions.php on line 2168Hi Rashed, I see the error when using the Storefront theme on local machine, running nothing but WooCommerce and both Dokan lite and pro installed. We have the full paid package (Pro) and unfortunately, we have many open tickets in the queue on WeDevs, including this issue. Our website is massive, so it is not possible to create staging copies to troubleshoot. You can see the issue for yourself even on a fresh installation of WP 5.5.1 with WooCommerce and Dokan plugins only, using Storefront. I believe the issue is related to a function that became deprecated with the latest version of WooCommerce and should be easy to fix. I saw the same scenario back in 2015 with the order notes not showing being discussed on WeDevs old support forum, but unfortunately, the solution was marked ‘private’. Thank you for your attention to the matter.
Did that and the error is: Use $item->get_product() instead of get_product_from_item.
Hi RK, yes- I did check for conflicts. The strange part is that it only happens when the user is not logged in.
Thank you- that is definitely helpful for commission issues, but that has nothing to do with the suborder issue. Please see these screenshots and you will know what I am talking about:
It has been almost 2 weeks and no response at all- we have the Business level package that we paid a large amount of money for. It states on your website that all the paid Dokan packages include support. This is one of many issues we are having and I will keep this one on topic and address the others in the other thread. We gave you access to our server with Admin credentials. Not a thing has been solved. The responses to our tickets are just canned replies or repeating the same excuses over and over. In the free version of Dokan facing the public on www.ads-software.com, you occasionally respond, but it is always blaming Covid-19 for taking money and not providing the promised included support- and even trying to demand more money for support with no guarantee. I have 4 clients with many paid licenses for WeDevs products and now that quite a large sum of money has already been invested and much time wasted on waiting, I cannot in good conscience recommend your products any longer unless we start getting replies from you very soon.
Hi Rashed, we submitted support tickets and have not received a reply. Please advise, thank you.
Hi Rashed, we submitted support a support request and have not received a reply. Please advise, thank you.
Sorry, but I believe you are incorrect; please see line 48 of /includes/Emails/VendorNewOrder.php in Dokan Lite:
$this->recipient = '[email protected]';
We are using 3.0.3 for Dokan Lite and 3.0.2 for Dokan Pro. I can confirm the issue is still occurring as before.