stock

SQL query to change backorder status of all products in WooCommerce

烂漫一生 提交于 2020-01-16 18:10:36
问题 In WooCommerce you can change the status of a product to allow backorders, the default setting is 'not allowed'. I have thousands of products on my shop and I rather not change it manually for all of them. Is there an SQL query that could do this for me directly in the database? 回答1: Try running this query in mySql UPDATE wp_postmeta SET meta_value = 'yes' WHERE meta_key = '_backorders'; This is not enough to achieve your purpose. Need to enable Manage stock as well. Try running this query

SQL query to change backorder status of all products in WooCommerce

若如初见. 提交于 2020-01-16 18:09:55
问题 In WooCommerce you can change the status of a product to allow backorders, the default setting is 'not allowed'. I have thousands of products on my shop and I rather not change it manually for all of them. Is there an SQL query that could do this for me directly in the database? 回答1: Try running this query in mySql UPDATE wp_postmeta SET meta_value = 'yes' WHERE meta_key = '_backorders'; This is not enough to achieve your purpose. Need to enable Manage stock as well. Try running this query

Change stock email notifications recipient in WooCommerce

我与影子孤独终老i 提交于 2020-01-14 06:55:08
问题 I want to change stock email recipient email address in woocommerce. Already changes admin email but mails are still going to old email. 回答1: To change stock email recipient, try the following: add_filter( 'woocommerce_email_recipient_backorder', 'change_stock_email_recipient', 10, 2 ); // For Backorders notification add_filter( 'woocommerce_email_recipient_low_stock', 'change_stock_email_recipient', 10, 2 ); // For Low stock notification add_filter( 'woocommerce_email_recipient_no_stock',

DC.JS get last month value as filter

旧城冷巷雨未停 提交于 2020-01-07 02:51:25
问题 I've got a question concerning measures that can't be aggregated over time, for example stock value. In the example below, I've created a time line for my total stock value, which works well. Additionally I would like to see the most current stock level per company. This should be last month of my time selection. I can't get this to work as the stock value is being summed over the entire period, where I would like to see the stock value of the last period (month). Whenever I change my

DC.JS get last month value as filter

↘锁芯ラ 提交于 2020-01-07 02:51:10
问题 I've got a question concerning measures that can't be aggregated over time, for example stock value. In the example below, I've created a time line for my total stock value, which works well. Additionally I would like to see the most current stock level per company. This should be last month of my time selection. I can't get this to work as the stock value is being summed over the entire period, where I would like to see the stock value of the last period (month). Whenever I change my

Same values for ARIMA forecasts in R

痴心易碎 提交于 2020-01-06 07:59:11
问题 I am trying to do forecasting of stock prices in R using ARIMA. I am using the auto.arima function to fit my model. Every time I'm trying to do that I get the same value for the forecasted values. I tried using different stocks but the same thing happens in every case. Here I tried forecasting apple prices: arimapple <- ts(appletrain, start = timedata[1]) fitappletrain <- auto.arima(arimapple) fitappletrain forecastapple <- forecast(fitappletrain, h=57) forecastapple and the output that I get

Magento: After ordering configurable product, its canceled because its out of stock

混江龙づ霸主 提交于 2020-01-02 17:11:58
问题 my problem is: i have a product with simple products as childs. (maybe tshirts whith size S-XL and some colors) Now if i order one of this, it is canceled with the order-confirmation email. I think its a problem with the stock but i dont know. There are 99 items in stock of every kind and all are activated and ready to deliver. Anybody who has had the same problem? 回答1: Here the Solution: The problem was crossing ids in the order tables so magento mixed up all items. Solved this with

Reduce WooCommerce Item Inventory By Attribute Value

谁说胖子不能爱 提交于 2019-12-30 07:27:34
问题 I have a setup with Woocommerce "Variable Products" where the only variation is 'size' attribute: 15 grams, 100 grams, 250 grams. What I want to do is use that variation amount to pass to the Woo wc-stock-functions, so that when a product variation '15 grams' is purchased, the overall stock goes down by 15, not 1. Inside Woo, there is file wc-stock-functions (http://hookr.io/plugins/woocommerce/3.0.6/files/includes-wc-stock-functions/) - and this even gives a filter, woocommerce_order_item

Download all stock symbol list of a market [closed]

人走茶凉 提交于 2019-12-29 02:56:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I need to download in some way a list of all stock symbol of specified market. I've found in this link ho can I do it someway. It uses following link in order to retrieve stock list that statisfies some parameters: https://www.google.com/finance?start=0&num=3000&q=%5B(exchange%20%3D%3D%20%22NASDAQ%22)%20%26%20

Display the stock availability for all product types in Woocommerce archive pages

馋奶兔 提交于 2019-12-29 01:30:30
问题 I am using this code in showing the stocks of products: add_action( 'woocommerce_after_shop_loop_item', 'display_variable_product_stock_quantity', 10 ); function display_variable_product_stock_quantity(){ wc_get_variable_product_stock_quantity( 'echo_html' ); } function show_stock() { global $product; if ( $product->stock ) { // if manage stock is enabled if ( ! $product->managing_stock() && ! $product->is_in_stock() ) echo ''; } if ( number_format($product->stock,0,'','') > 0 ) { // if stock