Up to 50 percent off

Forum Replies Created

Viewing 11 Topics - 1 through 11 (of 11 total)
Author Posts
February 23, 2015 at 9:13 pm in reply to: Can't update Dokan 37445
Jesus Jesus

Thanks Nayem,
I have sent my information.

February 22, 2015 at 12:28 pm in reply to: Can't update Dokan 37337
Jesus Jesus

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!

February 21, 2015 at 10:25 pm in reply to: Can't update Dokan 37307
Jesus Jesus

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

February 21, 2015 at 7:34 pm in reply to: Can't update Dokan 37295
Jesus Jesus

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

Thanks!

February 21, 2015 at 12:12 pm in reply to: Front end product variations 37279
Jesus Jesus

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

February 21, 2015 at 10:28 am in reply to: Can't update Dokan 37277
Jesus Jesus

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!

February 21, 2015 at 9:48 am in reply to: Can't update Dokan 37276
Jesus Jesus

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!

June 17, 2014 at 3:08 am in reply to: Enable Manage Stock by default 22031
Jesus Jesus

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">

June 14, 2014 at 10:41 pm in reply to: Enable Manage Stock by default 21926
Jesus Jesus

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!

June 6, 2014 at 10:04 pm in reply to: Enable Manage Stock by default 21530
Jesus Jesus

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.

June 5, 2014 at 8:58 pm in reply to: Enable Manage Stock by default 21475
Jesus Jesus

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