SKReimund
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Cart Stock Reducer] Stock reduce – not quiteadd_action( ‘woocommerce_after_shop_loop_item_title’, ‘quantity_in_carts’, 15);
function quantity_in_carts() {
global $product;
echo “Numbers pending: “.$product->quantity_in_carts;
}it does not do anything sadly, because:
1.I need the first function (basic one would be my_stock for a normal stock display), and at the end, after $product, i would need what would be the equivalent of total_stock, but the funciton that will display actualy quantity_in_cartsany thoughts?
EDIT:I have tried multiple variations from which I found in your .php on the plugin, including only $in_carts, $stock, etc. the base codeline should be that which I have just gave you, but the functions, aswell as $product might need to differ.
Let me know what you find out.
Forum: Plugins
In reply to: [WooCommerce Cart Stock Reducer] Stock reduce – not quiteWell I am going to start looking into how to integrate it, and if I manage to do it I will post it. If you have any ideas, feel free to share with me, we might reach a nice end result.
Thank you.
Forum: Plugins
In reply to: [WooCommerce Cart Stock Reducer] Stock reduce – not quiteP.P.S.
I am quite slow today, I apologise. Your plugin works perfectly, I was looking at it from the wrong angle. On a more appropriate note, could you please tell me what code should I use in order for another line of text under “Items left” titled “Pending orders”: next to which it should specify how many items are currently pending? Could I do that with the appropriate coding? (don’t know how exactly you named and coded each aspect of what your plugin does and it would be quite difficult for me to know the variables by myself).
Thank you, and sorry for changing the quetsion.
Forum: Plugins
In reply to: [WooCommerce Cart Stock Reducer] Stock reduce – not quiteP.S.
I know the plugin itself isn’t meant to reduce the actual stock, but could it do that? And re-add it if the checkout is not complete?
Thank you.
Forum: Plugins
In reply to: [WooCommerce Cart Stock Reducer] Found a few bugs.Hello James,
I have installed your plugin and everything seems to be in order, except one little thing, and I was wondering if you can help me out a little.
After I add the item to cart, my problem is that the stock for that item doesn’t “drop”. I have a stock availability thingie installed that shows under the product how many variables are still available for that product, and what I’m looking for, is for there incredibly awesome plugin to reduce the stock, and for example instead of 100 items left, while a product is in a cart (for the set duration – example 5 minutes-), to say 99 items left.
The website I’m trying this on is http://www.thewinnitgame.com
Can you please take a look and tell me what might be wrong?
Forum: Plugins
In reply to: [WooCommerce] Display stock availabilty on shop page, WooCommerceNope, nope, nevermind, the total_stock was correct, I just had to make some different setting.
THANK YOU! Very very much.
Forum: Plugins
In reply to: [WooCommerce] Display stock availabilty on shop page, WooCommerceWait, I actually got a little bit ahead of myself. I still love you man, I truly do, but I am faced with another slightly little situation: if i use ->stock, it says 0.000000. If i use total_stock, it shows the actual stock, but it doesn’t drop together with the variations dropping (for example I have 100 numbers, I buy one and it dissapears from the dropdown-thing seleciton, but the code you gave me still says 100.)
any clue to how could I fix this?
I tried get_stock_quantity, etc.
Forum: Plugins
In reply to: [WooCommerce] Display stock availabilty on shop page, WooCommerceMate, I am in love with you right now. I would squeeze you into my arms and make sweet love to your coding. The only change I had to make, however, considering I had a variable product and not a simple one, was this:
add_action( ‘woocommerce_after_shop_loop_item_title’, ‘my_stock’, 15);
function my_stock() {
global $product;
echo “Numbers left:”.$product->total_stock;
}instead of stock, i used total_stock
THANK YOU! From the bottom of my heart, thank you!
Forum: Plugins
In reply to: [WooCommerce] Display stock availabilty on shop page, WooCommerceStock Management is Enabled, and I am using the mystile theme. What I want is, under the product price (X.XX per Number – that’s what it says, I will link the website), to have the stock quantity left. (for example, “Only XX amount left!”).
I wondered if it is possible.
Forum: Fixing WordPress
In reply to: Display stock availabilty on shop page, on WoocommerceThank you WPyogi.
Forum: Fixing WordPress
In reply to: I would like to konw if it's possible to do the following thing:Thank you for pointing me in the right direction, I am new in these areas considering I haven’t quite faced a challenge so far.
I apologise for the useless thread, but thank you for guiding me.