Hide Specific Customer Info to Drivers
-
We need to hide customer information we choose to delivery drivers. Like customer total price, product price, and email.
-
There are included filters that you can use to hide specific details from the Driver.
You can see the list of available Filters for DDWC and DDWC Pro at the links below:
– https://deviodigital.com/articles/delivery-drivers-for-woocommerce-filters/
– https://deviodigital.com/articles/delivery-drivers-for-woocommerce-pro-filters/If you look at the github link below, I’ve added in filters to return false for things like Product Price, Total Price, etc.
https://gist.github.com/robertdevore/ac037775f61139767ab1cacef658324d
Thanks!
How can we do this while still showing delivery address?
You can use the code in the github link in my previous comment. Those codes won’t effect the delivery address.
Our site went down when adding filters.
Can you please troubleshoot? Our site went down when adding filter.
Yes, please let me know an email address to reacho out to. Happy to help.
Where do we place the code?
It should go in your theme functions.php file
add_shortcode( ‘ddwc_delivery_address_plain_text’ ) ;
Like this?This site went down. Please tell us exactly how to add. The link you sent says add to admin.
https://deviodigital.com/articles/delivery-drivers-for-woocommerce-filters/
It is not clear.
The code in the link below will remove product prices, etc from driver view.
https://gist.github.com/robertdevore/ac037775f61139767ab1cacef658324d
If you’re trying to update other code, let me know which filters you’re looking to use and I can let you know how to add it in.
We would like delivery address to show and driver dashboard disappear for non drivers.
-
This reply was modified 6 years, 10 months ago by
nctm.
We would like delivery address to show and driver dashboard disappear for non drivers.
This site went down. Please tell us exactly how to add. The link you sent says add to admin.
https://deviodigital.com/articles/delivery-drivers-for-woocommerce-filters/
By default, the delivery address shows as text for the driver (unless you’re using the Google Map).
If you’re using the map and would still like to show the address, you can copy the function code from the link below and it’ll show the address above the map.
https://gist.github.com/robertdevore/967876f8eadb1c35b63efc837f610797
In the newest release, I updated the code to hide the “Driver Dashboard” link from the My Account menu items for any user role except “driver”.
This breaks the page and turn to mobile site. Still doesnt show address in plain text
-
This reply was modified 6 years, 10 months ago by
The topic ‘Hide Specific Customer Info to Drivers’ is closed to new replies.