Forum Replies Created
-
AuthorPosts
-
MarkoParticipant
I’ve removed this line from class-pro-vendor-controller, seems to be working now..
// Check if the Shop name is unique
$users = get_users( array( ‘meta_key’ => ‘pv_shop_slug’, ‘meta_value’ => sanitize_title( $_POST[ ‘_wcv_store_name’ ] ) ) );if ( !empty( $users ) && $users[ 0 ]->ID != $vendor_id ) {
wc_add_notice( __( ‘That store name is already taken. Your store name must be unique. <br /> Settings have not been saved.’, ‘wcvendors-pro’ ), ‘error’ );
return;
}MarkoParticipantI assume that is some bug, as it shows up every time even if Store Name is unique
MarkoParticipantThanks but it’s not working.. Still getting the same error.
April 23, 2017 at 8:15 am in reply to: Customer name not displayed after removing checkout fields #62817MarkoParticipantI’ve found out that it’s address field in question. When I remove address field on checkout, name isn’t being showed on vendor’s order dashboard. Is there any way to solve this?
Thanks.
MarkoParticipantI’m using Listable theme..
April 22, 2017 at 5:08 am in reply to: Customer name not displayed after removing checkout fields #62700MarkoParticipantHi Anna,
I will have a look, thanks for the suggestion.
I wanted to ask,is there a way to remove billing details from vendor emails?April 14, 2017 at 7:46 am in reply to: Display additional information from checkout on orders dashboard #61909MarkoParticipantHere’s a solution but this is only displays URL without hyperlink if anyone needs it:
Just change $new_row for “user_link” field with this:
$new_row->user_link = get_post_meta( $order->id, '_user_link', true );
Still figuring out how to make hyperlink for this new_row
April 14, 2017 at 7:37 am in reply to: Display additional information from checkout on orders dashboard #61907MarkoParticipantHere’s what I did:
I added $new_row in pro-order-controller “user_link”:
$new_row->ID = $order->get_order_number(); $new_row->order_number = $order->get_order_number(); $new_row->customer = $customer_details; $new_row->products = $products_html; $new_row->total = $total_text; $new_row->status = $shipped; $new_row->user_link = $user_link; $new_row->order_date = date_i18n( wc_date_format(), strtotime( $order->order_date ) ) . '<br /><strong>' . ucfirst( $order->get_status() ) . '</strong>'; $new_row->row_actions = $row_actions; $new_row->action_after = $this->order_details_template( $_order ) . $this->order_note_template( $order->get_order_number() ) . $this->tracking_number_template( $order->get_order_number(), get_current_user_id() ); do_action( 'wcv_orders_add_new_row', $new_row ); $rows[] = $new_row; }
And in the same file, I added a “Profile” column in table columns:
public function table_columns( ) { $columns = apply_filters( 'wcv_order_table_columns', array( 'ID' => __( 'ID', 'wcvendors-pro' ), 'order_number' => __( 'Order Number', 'wcvendors-pro' ), 'customer' => __( 'Customer', 'wcvendors-pro' ), 'products' => __( 'Product', 'wcvendors-pro' ), 'total' => __( 'Commission', 'wcvendors-pro' ), 'order_date' => __( 'Sale Date', 'wcvendors-pro' ), 'user_link' => __( 'Profile', 'wcvendors-pro'), ) );
So this is displaying a new column in table column, but the Profile column is empty there’s no link in it..
MarkoParticipantHi Garry,
Did you find a solution for this?
April 13, 2017 at 5:59 pm in reply to: Display additional information from checkout on orders dashboard #61869MarkoParticipantHi Anna, thanks for this. I’m not sure if this is what I’m looking for: Basically I need to display this custom checkout field from checkout on vendor’s dashboard (not on Woocommerce order pages), under customer details who bought the product(or somewhere else in that orders dashboard table in vendor’s dashboard).
Is this last part of your gist can be used in relation to what I’ve described?
Thanks.
April 13, 2017 at 7:16 am in reply to: Display additional information from checkout on orders dashboard #61778MarkoParticipantAnyone knows if there is a possible solution for this? Which file would I need to edit?
MarkoParticipantI have the same problem..
MarkoParticipantHi Anna,
Thank you for your help, highly appreciated!
So I’ve comment out the store name field, although the Store Name field is gone on dashboard settings, now when I try to save payment details on vendor’s dashboard settings, I’m getting an error saying that store name needs to be unique.
Since I’m using custom registration, users can pick their username when registering, which is then assigned by WC Vendors as a Vendor’s Store Name.
Do I have to to add some code to bypass Store name field when saving the form on vendor pro dashboard settings? I’ve found this article http://docs.wcvendors.com/knowledge-base/wcv-default-store-name-2/ but I’m not sure if it’s relevant and where should I place this code..
Thanks again.
Best,
Marko
MarkoParticipant(edit) It works now 🙂 I’ve just removed: input#s2id_autogen1_search
Thank you!!
-
AuthorPosts