Home Forums Theme Support Dokan Editing the Product Edit Page

This topic is: not resolved

This topic contains 6 replies, has 2 voices, and was last updated by  towhid 4 years, 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #45002

    Gil C
    Member
    Post count: 31

    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

    #45003

    Gil C
    Member
    Post count: 31

    Alternatively, how do I edit the placeholder inside the green circle. This is the code as seen 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') ); ?>

    #45066

    towhid
    Participant
    Post count: 4505

    Hello Gil,

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

    Thanks

    #45404

    Gil C
    Member
    Post count: 31

    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

    #45449

    towhid
    Participant
    Post count: 4505

    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

    #46193

    Gil C
    Member
    Post count: 31

    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

    #51990

    towhid
    Participant
    Post count: 4505

    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 7 posts - 1 through 7 (of 7 total)

The topic ‘Editing the Product Edit Page’ is closed to new replies.