139 questions
9
votes
5
answers
12k
views
How to add variation stock status to Woocommerce product variation dropdown
I would like to show the stock status (eg. In Stock / Out of Stock) for each product variation shown in the drop down list of variations on the Woocommerce Product Page. I have copied the relevant ...
11
votes
2
answers
22k
views
How to add custom stock status to products in WooCommerce 4+
I am using the following code to add new stock statuses in WooCommerce 4+
The new statuses are:
Preorder
Contact us
function add_custom_stock_type() {
?>
<script type="text/...
105
votes
11
answers
153k
views
Stock ticker symbol lookup API [closed]
Is there any sort of API that just offers a simple symbol lookup service? i.e., input a company name and it will tell you the ticker symbol? I've tried just screen-scraping Google Finance, but after a ...
35
votes
4
answers
31k
views
Converting OHLC stock data into a different timeframe with python and pandas
Could someone please point me in the right direction with respect to OHLC data timeframe conversion with Pandas? What I'm trying to do is build a Dataframe with data for higher timeframes, given data ...
24
votes
2
answers
55k
views
Updating product stock programmatically in Woocommerce 3
I need so help. I'm trying to update the woocommerce product stock quantity programmatically. We have a vendor feed to us through some JSON. I can read the stock from the feed and can pull the data ...
4
votes
1
answer
5k
views
Show stock status next to each attribute value in WooCommerce variable products
I want to implement in my store something similar like this:
I have this code, but this show quantity next to each variation.
function get_stock_variations_from_product(){
global $product;
$...
155
votes
8
answers
115k
views
What online brokers offer APIs? [closed]
So I'm getting really sick of E*TRADE and, being a developer, would love to find an online broker that offers an API. It would be great to be able to write my own trading tools, and maybe even modify ...
2
votes
1
answer
4k
views
Calculate Avg Price, Realized gain & Unrealized gain via UDF using FIFO method
This post is in continuation of my earlier post where I have already got assistance from Tom Sharpe on how to calculate the Average Price of a stock using the FIFO method as per transaction table &...
242
votes
18
answers
188k
views
source of historical stock data [closed]
I'm trying to make a stock market simulator (perhaps eventually growing into a predicting AI), but I'm having trouble finding data to use. I'm looking for a (hopefully free) source of historical stock ...
117
votes
9
answers
260k
views
How to get a complete list of ticker symbols from Yahoo Finance? [closed]
I've googled endlessly for a method of getting a complete (and daily updated) list of all Yahoo ticker symbols available through http://finance.yahoo.com
Yahoo has information for stocks, futures etc ...
2
votes
2
answers
5k
views
importXML Parse Error [duplicate]
I need to parse balance sheet data for a given set of stocks on otcmarkets.com. I'm trying to use the importXML function in Google Spreadsheet, but it is not returning any data for me. The xPath ...
40
votes
3
answers
45k
views
Database schema for organizing historical stock data [closed]
I'm creating a database schema for storing historical stock data. I currently have a schema as show below.
My requirements are to store "bar data" (date, open, high, low, close volume) for multiple ...
6
votes
3
answers
8k
views
Get the total stock of all variations from a variable product In Woocommerce
IN woocommerce I would like to display the total stock of all variations in a variable product. The stock of each product variation is managed at the product variation level.
If I use for a variable ...
5
votes
1
answer
4k
views
Display custom stock message if "Manage Stock" is not enabled in WooCommerce
If Enable stock management at the product level is not checked I would like to show a message in product page for the stock status
When the Stock status is
instock - "Available"
outofstock -...
4
votes
1
answer
4k
views
Hide out of stock products only on shop archive pages in Woocommerce
I am trying to hide out of stock products only from Shop page, but keep them on the separate category page.
Woocommerce settings allows only to choose either to show out of stock products or to hide ...