This topic contains 4 reply and 2 voices, and was last updated by jeongsik min 3 years, 10 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
October 4, 2015 at 2:09 pm 73959
jeongsik min I Want to let vendors can use other plugins to edit their on 'seller dashboard> product description section'. (such as 3d tool box plugin icon so that can upload 3d pictures himself) For do this, What php file I should edit, what line-number?
October 4, 2015 at 4:20 pm 73973
towhid towhid

Hello Jeongsik,

Please navigate to plugins/dokan/templates/products/new-product-single.php

Now find these lines:

<div class="dokan-product-short-description">
                            <label for="post_excerpt" class="form-label"><?php _e( 'Short Description', 'dokan' ); ?></label>
                            <?php wp_editor( $post_excerpt , 'post_excerpt', array('editor_height' => 50, 'quicktags' => false, 'media_buttons' => false, 'teeny' => true, 'editor_class' => 'post_excerpt') ); ?>
                        </div>

You have to customize this line :
<?php wp_editor( $post_excerpt , 'post_excerpt', array('editor_height' => 50, 'quicktags' => false, 'media_buttons' => false, 'teeny' => true, 'editor_class' => 'post_excerpt') ); ?>

Hope the above solution will help you. If there’s anything else needed please let me know.

Thanks

October 5, 2015 at 2:34 pm 74053
jeongsik min jeongsik min

1.I think I must edit ‘post_excerpt’ variable to add a new plugin, right?
Where can I find out the php file and section of defining ‘id=post_excerpt’ ?

2.Can I edit this ‘id=post_excerpt’ by using TinyMCE plugin?

October 5, 2015 at 6:09 pm 74093
towhid towhid

Hello Jeongsik,

Don’t change $post_excerpt variable. Only change ‘teeny’ => true to ‘teeny’ => false and let me know the result.

Thanks

October 7, 2015 at 12:05 pm 74237
jeongsik min jeongsik min

It works. But, This plugin also needs the admin’s setting section which upload 3d files in the admin’s dashboard menu.(using the created button only can make 3d canvas and set canvas size).
I must the add the function which on admin’s dashboard menu to vendor’s add product section.

My resolving thinking is,
1.make button on click to open that function in vendor’s add product section.
(When developer adds plugin into dashboard menu, he must use this ‘add_menu_page()’. In here, I can find out which function is called when click this menu bar. ‘can3DPro_layout’ is the function name. belows are the plugin’s php file.)

add_menu_page('Canvasio3DPro Options', 'Canvasio3DPro','upload_files','Canvasio3DPro_Edit', 'can3DPro_layout');//'edit_others_posts' // 'upload_files' // read
		if($c=='toplevel_page_Canvasio3DPro_Edit'){
			caActivBackend();
		}
	}
	//
	function can3DPro_layout() {
		$modus = array('modus'=>'backEnd');
		initCaHandler($modus);
	}

I can make button in ‘new-product-single.php’. please let me know how to link it to the function.

Viewing 4 Posts - 1 through 4 (of 4 total)