Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Can't update Dokan #37445

    Jesus
    Member
    Post count: 17

    Thanks Nayem,
    I have sent my information.

    in reply to: Can't update Dokan #37337

    Jesus
    Member
    Post count: 17

    The problem is that I can't activate the theme. I get an error message that says “Dokan Error: Pleae activate your copy”.

    When I go and activate the theme with my email and the license key press Save & Activate nothing happens.

    I already sent you my admin login.

    Thanks!

    in reply to: Can't update Dokan #37307

    Jesus
    Member
    Post count: 17

    Thanks,
    I sent you a demo login and the admin login.

    in reply to: Can't update Dokan #37295

    Jesus
    Member
    Post count: 17

    Nayem, I was able to do that. The problem now is that I can't activate the theme.

    Thanks!

    in reply to: Front end product variations #37279

    Jesus
    Member
    Post count: 17

    When editing the product change the product type to variable instead of simple.

    in reply to: Can't update Dokan #37277

    Jesus
    Member
    Post count: 17

    Ok, I was able to update the theme, and now I can see the orders. I didn't know that Dokan was now a plugin that works with a theme.

    Anyways, just in case someone has the same problem. I was able to update the theme by following these instruction -> http://docs.wedevs.com/upgrade-to-dokan-plugin/

    However, I still can't activate the theme.

    Note to the wedevs team: There's a typo in the Dokan Error notification. You have “Pleae” instead of “Please”.

    That is all,
    Thanks!

    in reply to: Can't update Dokan #37276

    Jesus
    Member
    Post count: 17

    I tried reinstalling the activation of the theme, and now I can't reactivate. =(

    By the way my wordpress version is 4.1.1

    Thanks!

    in reply to: Enable Manage Stock by default #22031

    Jesus
    Member
    Post count: 17

    Hi Zayra,
    it's not easy if this is your first time. But this is what you have to do (Considering you already followed what I did above).

    If you want to add a stock quantity to your new product before posting it just add these input fields to the for in new-product.php (Location: /themes/dokan/templates/new-product.php) inside the form.

    <input type="number" name="_stock" min="1" max="5"> (You can change the min and max)

    And make sure you have manage stock field too.

    <input type="hidden" name="_manage_stock" class="dokan-feat-image-id" value="yes">

    in reply to: Enable Manage Stock by default #21926

    Jesus
    Member
    Post count: 17

    Hi Will,
    I don't know if this is the answer you are looking for, but it brought up some issues in my end, and I wasn't aware of it. So thank you!

    Here's your possible solution:
    Once you've done what I did above you know now you have two these two variables: -> _stock and _manage_stock. To see these variables reflected in the inventory.php file and webpage all you need to do is call those variables in the value attribute of their specific input tag.

    So, open inventory.php and let's do first the manage stock checkbox.

    Where it says

    <?php 
    dokan_post_input_box( $post->ID, '_manage_stock', array('label' => __('Enable stock management at product level', 'dokan' ), 'value' => variable will go here ),'checkbox' ); 
    ?>

    (this is around line 12)

    replace it with this:

    <?php 
    $manageStock123 = get_post_meta( $post->ID, '_manage_stock', true );
    dokan_post_input_box( $post->ID, '_manage_stock', array('label' => __('Enable stock management at product level', 'dokan' ), 'value' => $manageStock123 ),'checkbox' ); 
    ?>

    and for the stock quantity look for a line that is similar to this:
    <?php dokan_post_input_box( $post->ID, '_stock', array( 'value' => variable will go here ) ); ?>
    (around line 19)

    replace with this:

    <?php
    $stockQuantity123 = get_post_meta( $post->ID, '_stock', true );
    dokan_post_input_box( $post->ID, '_stock', array( 'value' => $stockQuantity123 ) ); 
    ?>

    This should reflect the stock quantity and the manage stock option in your inventory once you edit a product or create a new one.

    Thanks!

    in reply to: Enable Manage Stock by default #21530

    Jesus
    Member
    Post count: 17

    I was able to resolve this.

    I don't know if this is the correct way of doing it or if there's an easier way, but here's what I did:
    I opened new-product.php (Location: /themes/dokan/templates/new-product.php).

    After this line (line 12 in my file)
    if ( isset( $_POST['add_product'] ) ) {' I added '$manageTheStock = isset( $_POST['_manage_stock'] ) ? 'yes' : 'no'; and $onlyOneInStock = isset( $_POST['_stock'] );

    then after this line (line 61 in my file) update_post_meta( $product_id, '_visibility', 'visible' ); I added this update_post_meta( $product_id, '_manage_stock', $manageTheStock ); and this update_post_meta( $product_id, '_stock', $onlyOneInStock );

    After setting the variables and the update functions I just added hidden fields for both inside the new product form.
    <input type="hidden" name="_manage_stock" class="dokan-feat-image-id" value="yes"> <input type="hidden" name="_stock" class="dokan-feat-image-id" value="1">

    And that's it. Doing this does the trick of setting the stock to 1 and enabling the stock management when you post a new product.

    in reply to: Enable Manage Stock by default #21475

    Jesus
    Member
    Post count: 17

    I replaced line 12, and now, after submitting a new product, the stock management box is checked and the stock quantity is equal to 1. Unfortunately, I can still select more than 1 when adding the item to the cart.

    There must be something that sets the stock quantity value and the stock management value by default when creating the product.

    The solution above only makes it appear as if there is 1 in stock and stock management option enabled, but the actual values are set differently for the product when it's created.

    Where can we find and edit those default values?

    Thanks!

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