What online brokers offer APIs? [closed]

I vote for IB(Interactive Brokers). I’ve used them in the past as was quite happy. Pinnacle Capital Markets trading also has an API (pcmtrading.com) but I haven’t used them. Interactive Brokers: https://www.interactivebrokers.com/en/?f=%2Fen%2Fsoftware%2Fibapi.php Pinnacle Capital Markets: http://www.pcmtrading.com/es/technology/api.html

How to add variation stock status to Woocommerce product variation dropdown

Update 2021 (Only for variable products with 1 dropdown) – thanks to @Alex Banks Anyway this will really work when there is ONLY ONE dropdown select field (so one attribute for the variations). With multiple attributes (so multiple dropdown select fields) it displays something that can be wrong depending on the variations stock status attributes … Read more

Show stock status next to each attribute value in WooCommerce variable products

Faster and optimized code version for WooCommerce 3+ only in: Display variation stock status on single dropdown variable products in Wocommerce 3 Updated WooCommerce compatibility or previous version 2.6.x You can do it using a custom function hooked in woocommerce_variation_option_name filter hook. This is only viable for products that have a unique attribute for their … Read more

Updating product stock programmatically in Woocommerce 3

Update 2 Since woocommerce 3 “outofstock” product status is saved in 2 locations: As post meta data for _stock_status meta key (just as before). As a post term name outofstock remaining to product_visibility custom taxonomy That means that you missed just a step (the step 3): $out_of_stock_staus=”outofstock”; // 1. Updating the stock quantity update_post_meta($product_id, ‘_stock’, … Read more

How to add custom stock status to products in WooCommerce 4+

Last update: 04/22 – Tested in WordPress 5.9.2 & WooCommerce 6.3.1 Code goes in functions.php file of the active child theme (or active theme). Use woocommerce_product_stock_status_options instead of woocommerce_product_options_stock_status. This way you can immediately add a status instead of replace the existing dropdown Also use woocommerce_get_availability_text & woocommerce_get_availability_class opposite woocommerce_get_availability. This way you don’t have … Read more