Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: Can't save store settings #64088
    Marko
    Participant

    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;
    }

    in reply to: Can't save store settings #64086
    Marko
    Participant

    I assume that is some bug, as it shows up every time even if Store Name is unique

    in reply to: Can't save store settings #64083
    Marko
    Participant

    Thanks but it’s not working.. Still getting the same error.

    Marko
    Participant

    I’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.

    in reply to: Table's Column Labels disappear on mobile #62758
    Marko
    Participant

    I’m using Listable theme..

    Marko
    Participant

    Hi 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?

    Marko
    Participant

    Here’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

    Marko
    Participant

    Here’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..

    in reply to: Adding Custom Column to Vendor Dashboard Orders #61906
    Marko
    Participant

    Hi Garry,

    Did you find a solution for this?

    Marko
    Participant

    Hi 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.

    Marko
    Participant

    Anyone knows if there is a possible solution for this? Which file would I need to edit?

    in reply to: Display values from product custom field in emails #61519
    Marko
    Participant

    I have the same problem..

    in reply to: Hide Store Name in Vendor's dashboard settings #60050
    Marko
    Participant

    Hi 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

    in reply to: Issue with dropdown in product submission form #59485
    Marko
    Participant

    (edit) It works now 🙂 I’ve just removed: input#s2id_autogen1_search

    Thank you!!

Viewing 14 posts - 1 through 14 (of 14 total)