WooCommerce database upgrade behaviour
WooCommerce database upgrade behaviour
WooCommerce database upgrade behaviour
How to add product variations for large number of products in WooCommerce?
You can use an IF statement like this to import a blank value in the case that the real value is “0,00”: [IF({saleprice[1][.=”0,00″]})][ELSE]. {saleprice[1]}[ENDIF] Just be sure to change “saleprice” to the correct element name from your file.
WordPress user ID prefix
Many themes overwrite WooCommerce template files. A behaviour that can cause malfunctions. WC_TEMPLATE_DEBUG_MODE will prevent overrides in themes from taking priority // Add this to wp-config.php file define( ‘WC_TEMPLATE_DEBUG_MODE’, true ); https://docs.woocommerce.com/wc-apidocs/function-wc_get_template_part.html
How to add a special Woocommerce “Buy Now” button?
WooCommerce one time checkout pop up
How to hide / remove duplicated Woocommerce products from Shop page
This took me a while but i’ve been able to solve this issue through writing in the database directly so i’d share my solution here for others if anyone comes across the same problem. To get the attributes selected automatically when creating the variations, 2 things need to happen in the database. The variation post … Read more
you could use something like this: $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => -1 ); $results = new WP_Query( $args ); $products = $results->posts; $json_data = array(); foreach($products as $product){ $product = wc_get_product( $product->ID); if($product->is_visible()){ $json_data[] = array( ‘id’=> $product->get_id(), ‘title’=> $product->get_title(), ); } } $output= json_encode($json_data); reutrn $output this part get all the … Read more