skip to Main Content

woocommerce rest api python get products

What I need is to get all product IDs that are 'instock' using python. It looks like this: wcapi.get('products', params={"per_page": 100, 'stock_status': 'instock', 'tag': '1111'}).json() This code works, but have max limit 100 per_page, I don't understand how can I…

VIEW QUESTION

Open quick view window when clicking on product thumbnail in WooCommerce

I use the code to display product thumbnails and for "Quick View" functionality. Here is the code for the product thumbnail: // Change product thumbnail markup. remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail' ); add_action( 'woocommerce_before_shop_loop_item_title', array( __CLASS__, 'product_thumbnail' ) ); /** * Product…

VIEW QUESTION

Woocommerce – Round a number to 2 decimal places JS

I have oninput=" price_<?php echo esc_attr( $range_slider_id ); ?>.value=parseFloat(<?php echo esc_attr( $range_price_id ); ?>)*parseFloat(<?php echo esc_attr( $range_slider_id ); ?>.value); " how to round price_~.value two decimal places? I have on output: <output id="price_range_5e5851cd67084" for="range_5e5851cd67084">43.199999999999996</output> I have tried to add .toFixed(2)…

VIEW QUESTION

WordPress: allow underscore in slug – SEO

Problem I need Wordpress to stop turning underscores into hyphens in its slugs/permalinks. Situation Moving an old site over to a clean Wordpress installation. Old site uses underscores in its urls. We need to preserve the old urls including underscores…

VIEW QUESTION

WordPress CRON job commands – CPanel

From browsing the web I've noticed two variations for the command to initiate the WordPress cron jobs from cPanel. Please could someone explain the difference and which is the correct/best option to use? wget -qO- https://www.mydomain.co.uk/wp-cron.php &> /dev/null wget -q…

VIEW QUESTION
Back To Top
Search