Home Forums Plugin Support Others Dokan – How to set Sold Individually as default option?

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

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #42602

    Lukasz K
    Member
    Post count: 14
    
        <div class="dokan-form-group">
            <label class="dokan-w4 dokan-control-label" for="_enable_reviews"><?php _e( 'Sold Individually', 'dokan' ); ?></label>
            <div class="dokan-w7 dokan-text-left">
                <?php dokan_post_input_box( $post->ID, '_sold_individually', array('label' => __( 'Allow one of this item to be bought in a single order', 'dokan' ) ), 'checkbox' ); ?>
            </div>
        </div>

    What i could change in this code of options.php to make this box checked default?

    Please help me

    #42615

    towhid
    Participant
    Post count: 4505

    Hello Lukasz,

    Please provide me a screenshot where you want to change(not any code).

    Thank you ๐Ÿ™‚

    #42631

    Lukasz K
    Member
    Post count: 14

    Towhid – Thank you very much for reply.

    Here you are :

    Problem

    #42642

    towhid
    Participant
    Post count: 4505

    Hello Lukasz,

    Please replace the following code with the code you have provided in the post.

    <div class="dokan-form-group">
            <label class="dokan-w4 dokan-control-label" for="_enable_reviews"><?php _e( 'Sold Individually', 'dokan' ); ?></label>
            <div class="dokan-w7 dokan-text-left">
                <?php dokan_post_input_box( $post->ID, '_sold_individually', array('label' => __( 'Allow one of this item to be bought in a single order', 'dokan' ), 'value' => 'yes' ), 'checkbox'); ?>
            </div>
        </div>

    Please check and let me know the result.

    Thank you ๐Ÿ™‚

    #42645

    Lukasz K
    Member
    Post count: 14

    Yep that's work.

    Thank you very much towhid!

    #42646

    towhid
    Participant
    Post count: 4505
    This reply has been marked as private.
    #42864

    Lukasz K
    Member
    Post count: 14

    Yep, of course. I will add this.

    But there is one problem more. Reviews and Sell inividually are checked default but this option doesn't work
    if you don't use a button “Update product” in Edit product tab. If someone add poduct without changing anything on Edit Product tab (so will not click on Update button), reviews and sell individually will don't work. I need to work of this options immediately after you click “Add new product” button.

    Could you find a fix to this problem, please?

    #43088

    towhid
    Participant
    Post count: 4505

    Hello,

    Sorry for my late reply. I did not understand why “Reviews and Sell individually” will not show up when a product add. Can you please send me a screenshot.

    Thank you ๐Ÿ™‚

    #43104

    Lukasz K
    Member
    Post count: 14

    Here are the steps to add new products :

    Step1

    Step2

    If you will finish your adding after Step2 then Reviews and Sell Individually option will not work.
    You must to do Step3, but not everyone doing changes in their products so they don't use Step3 (Product Edit tab) so they never use button (Update product). Reviews and Sell Individually option work only after use Update button.

    Step3

    I want to enable Reviews and Sell Inividuall option immediately after Step2 without needed to click Update button on Step3.

    #43119

    towhid
    Participant
    Post count: 4505

    Hello,

    So far we tried to provide services as our best. But to avail this feature you need to do customization. But I am really sorry to say that we do not provide any customization services. If you need it urgent you can hire a developer.

    Thank you ๐Ÿ™‚

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

The topic ‘Dokan – How to set Sold Individually as default option?’ is closed to new replies.