Editing the Product Edit Page

This topic contains 6 reply and 2 voices, and was last updated by towhid 9 years, 5 months ago
Viewing 6 Posts - 1 through 6 (of 6 total)
Author Posts
May 23, 2015 at 10:35 pm 45002
towhid http://s1.postimg.org/x9gogb3f3/Screen_Shot_2015_05_23_at_5_16_45_PM.png Hi there! I'm currently trying to edit the template page for the products and would like to create 1 more text area (like the purple circle). This text area will replace the green circle. How can I do this? At the moment, I am editing via dokan/templates/product-edit.php and have merely copy and pasted the code for the purple text area. This is the code for the purple circled text area:
'Short description about product...', 'value' => $post->post_excerpt ), 'textarea' ); ?>
What code should I use to add the new text area? Kind regards Gil
May 23, 2015 at 10:42 pm 45003
Gil C Gil C

Alternatively, how do I edit the placeholder inside the green circle. This is the code as seen in dokan/templates/product-edit.php :

post_content ) ), ‘post_content’, array(‘editor_height’ => 50, ‘quicktags’ => false, ‘media_buttons’ => false, ‘teeny’ => true, ‘editor_class’ => ‘post_content’) ); ?>

May 24, 2015 at 5:41 pm 45066
towhid towhid

Hello Gil,

What is the purpose of this requirement? What is the benefit it will retrieve after create 1 more text area.

Thanks

May 28, 2015 at 6:35 am 45404
Gil C Gil C

Hi Towhid,

I am trying to create an extra text box because I want to display 3 types of information. However, I understand if that is quite a difficult thing to do, and would prefer if you could advice how to:

ONLY edit the placeholder in the bottom text box which is coded as below in dokan/templates/product-edit.php:

< ?php wp_editor( esc_textarea( wpautop( $post->post_content ) ), ‘post_content’, array(‘editor_height’ => 50, ‘quicktags’ => false, ‘media_buttons’ => false, ‘teeny’ => true, ‘editor_class’ => ‘post_content’) ); ?>

How do I edit the placeholder in this code? Which file can I find the placeholder in?

Kind regards

Gil

May 28, 2015 at 2:49 pm 45449
towhid towhid

Hello Gil,

Please open dokan-plugin/classes/template-shortcodes.php and find ‘self::$post_content = __( ‘Details about your product…’, ‘dokan’ );’

You can alter the text (Details about your product…) placeholder in this line.

Thanks

June 5, 2015 at 10:38 am 46193
Gil C Gil C

Hi Towhid!

Sounds brilliant! Thanks, it worked perfectly! Now, on the same product edit page, when a Seller wants to start adding a new product, on the first page he gets sent to, I want to edit those placeholders wants to add a new product, I would like to change the placeholder for the text box with the current placeholder ‘Short Description about the product.’ Where can I do this?

The First product edit page a Seller gets directed to the moment they want to create a new product

Kind regards and best of luck!
Gil

June 13, 2015 at 5:35 pm 51990
towhid towhid

Hello Gil,

Please open plugins/dokan-plugin/templates/new-product.php and find below lines of code.

<div class="dokan-form-group">
                                <textarea name="post_excerpt" id="post-excerpt" rows="5" class="dokan-form-control" placeholder="<?php esc_attr_e( 'Short description about the product...', 'dokan' ); ?>"><?php echo dokan_posted_textarea( 'post_excerpt' ); ?></textarea>
                            </div>

You can alter the text (Details about your product…) placeholder in this line.

Thanks

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