WooCommerce one time checkout pop up
WooCommerce one time checkout pop up
WooCommerce one time checkout pop up
How Can I display Specific User Pages?
I normally use the official WooCommerce Google Analytics plugin, it has been developed by WooCommerce, so that’s always nice. There is a free version and a paid version. Sometimes you get what you pay for, I think the paid version is worth it but I guess it depends on your needs. Here is a comparison … Read more
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
The orders in WooCommerce admin are hidden (they have the “hidden” CSS class)
You can try using Ni WooCommerce Dashboard Sales Report plugin. It enables you to get a quick information about store sales order on WordPress dashboard Its Sales By Month Report feature shows the total gross sales of the last six months.
Edit Product Archive design for Woo theme
There’s a class WC_Product_Vendors_Utils that you can use e.g. $vendor = WC_Product_Vendors_Utils::is_vendor_product( $item[“product_vendors_product_id”] ); //replace this with the product ID if ( ! empty( $vendor[0] ) ) { $vendor_data = WC_Product_Vendors_Utils::get_vendor_data_by_id( $vendor[0]->term_id ); if ( ! empty( $vendor_data ) ) { $vendor_slug = $vendor_data[‘slug’]; // I am not sure of the correct value here but … Read more