Forum Replies Created
-
AuthorPosts
-
Ilja BeckerParticipant
if someone need too.
/* WC Vendors Pro - Notify Vendor when Product is Approved */ add_action( 'pending_to_publish', 'wcv_notify_vendor_on_publish' ); function wcv_notify_vendor_on_publish( $post_id ) { global $post; if ( $post->post_author != get_current_user_id() ) { $author = new WP_User( $post->post_author ); $email_data = array( 'to' => $author->user_email, 'subject' => sprintf( __( 'Your post on %1$s has been published!', 'email_author_on_publish' ), get_bloginfo('name') ), 'message' => sprintf( __( 'Your post "%1$s" on %2$s has been published: %3$s', 'email_author_on_publish' ), $post->post_title, get_bloginfo( 'name' ), get_permalink( $post->ID ) ), ); wp_mail( $email_data['to'], $email_data['subject'], $email_data['message'] ); } }
Ilja BeckerParticipantHey,
Is the function implemented in the future?
Or have someone another solution for this?Ilja BeckerParticipantI get a answer from BuddyBoss: Work fine
Please try once placing following custom css code inside dashboard >> buddyboss >> onesocial theme >> custom codes >> css
.woocommerce-cart .woocommerce .cart-empty:nth-child(2) {
display: none;
}Ilja BeckerParticipantHey Anna,
thank you for fast answer.Ilja BeckerParticipantHey,
i have the same issue.Ilja BeckerParticipantHey Guy,
look here:Ilja BeckerParticipantI have found it myself. If someone have interest:
1. File: \plugins\wc-vendors\classes\admin\class-product-meta.php (Line: 101)
2. Ad following Code in functions.php
function portrait_show_curr_user_attachments( $query = array() ) { $user_id = get_current_user_id(); if ( $user_id && ! current_user_can( 'edit_others_portraits' ) ) { $query['author'] = $user_id; } return $query; } add_filter( 'ajax_query_attachments_args', 'portrait_show_curr_user_attachments' );
Ilja BeckerParticipantHey together,
I find the code snippet:\wc-vendors\classes\admin\class-admin-user.php
Line: 341-370
Ilja BeckerParticipantHey Anna,
is it possible to custimize the Value as Admin.Current, if the User set the custom value it will be shown in Backend but i can’t custom them?
Ilja BeckerParticipant?
Ilja BeckerParticipantHas nobody a answer on this question?
Ilja BeckerParticipant@FERVOUS
i custom it and it Works great.
But i see that i need to custom another 2 permissions.1. Backend Products i see only User with “Vendor” Role (screenshot “Vendor_assignment”)
–> I need to customize the file that the new Role have Access too
2. upload Product Pictures i see all Pictures in Media library (screenshot “Media library”)
–> I need to customize the file that the new Role haven’t Accesscan you tell me the files 🙂
Ilja BeckerParticipantthanks,
that’s what i’m searching 🙂Ilja BeckerParticipantHas nobody an answer to this question?
when i create a Custom Field like in the screenshot.
I need them in the “vendor Signup Form”Ilja BeckerParticipantHas nobody a answer on this simple question?
Ilja BeckerParticipantI find the Signup Form for the Vendor Application.
Need only to know where are the php file, which controls the access to the dashboard
Current only user with role “vendor” have access to Dashboard. I need to customize the file that the new Role have Access too.Ilja BeckerParticipantHey Uwe,
habe gesehen das du aus Lahr bist 🙂
das sollte dir weiter helfen: https://docs.woocommerce.com/document/per-product-shipping/grüße aus Offenburg
Ilja BeckerParticipantHey Mehmet,
i had the same Problem.
I wanted to hide content based on User Roles
I created a new css Class witch is based on Role “Vendor”.add_action( 'wp_enqueue_scripts', 'cyb_enqueue_styles' ); function cyb_enqueue_styles() { $user = wp_get_current_user(); if ( in_array( 'vendor', (array) $user->roles ) ) { wp_enqueue_style( 'my-style-vendor', get_stylesheet_directory_uri().'/CSS/vendor.css' ); } }
Now create “vendor.css” in folder “your-child”/CSS in put your code in to hide or show the content
Ilja BeckerParticipantHey Rob,
no …wp-content/languages/wc-vendors/look here: Link
Ilja BeckerParticipantHey Rob,
you need only go to your Backend.Woocommerce/WC Vendors/general(Tab)
see Screenshot
Ilja BeckerParticipantHey Anna,
I have found a solution for me, which should work very well.
i create on functions.php in oneSocial-Child a new function whitch grab a other css File based on the created Role “Exhibitor”. This works very good. Now I can Hide the Forms i don´t need for the Role Exhibitor.In need current only 2 things.
1. Can you tell me where I find the php file, which controls the access to the dashboard
Current only user with role “vendor” have access to Dashboard. I need to customize the file that the new Role have Access too.2. Which is the template for the Vendor Application?
Ilja BeckerParticipantOMG. I´m Sorry.
🙁 -
AuthorPosts