• Resolved sajtab

    (@sajtab)


    Dear Experts,

    I am using free version on YITH Event Woocommerce. It’s working perfect but i need some changes.

    1. For Each Custom form generated based on Quantity, the form title same as product name as byefault functionality ( Like, if Product name is ‘Fridge’ , Form Title is ‘Fridge #1’). I need to change the Form title. Which file i need to customize this.

    Appreciate your support!

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi @sajtab,

    If you want to change the title form you can use the following code in your customization plugin:

    if ( ! function_exists( 'set_wcevti_event_title_form' ) ) {
    
    		function set_wcevti_event_title_form( $title, $product_id ) {
    			if ( 56 == $product_id ) {
    				$title = 'Another title form';
    			}
    
    			return $title;
    		}
    
    	}
    
    	add_filter( 'yith_wcevti_event_title_form', 'set_wcevti_event_title_form', 10, 2 );

    As you can see you can choose the Event that you want change the title using the $product_id on my case I used 56. And the $title is to override the current title form to a new string.

    Please try it and let me know.

    Regards.

    • This reply was modified 7 years, 1 month ago by YITHEMES.
Viewing 1 replies (of 1 total)
  • The topic ‘Change Form Title’ is closed to new replies.