How to hide a random text with a div tag using a class on product pages with a specific tag
How to hide a random text with a div tag using a class on product pages with a specific tag
How to hide a random text with a div tag using a class on product pages with a specific tag
Try this. I followed the WP_Query docs to build this. $args = [ ‘meta_query’ => [ ‘relation’ => ‘AND’, [ ‘_stock_status’ => [ ‘key’ => ‘_stock_status’, ‘compare’ => ‘EXISTS’, ], ‘_sale_price’ => [ ‘key’ => ‘_sale_price’, ‘compare’ => ‘EXISTS’, ], ‘_price’ => [ ‘key’ => ‘_price’, ‘compare’ => ‘EXISTS’, ] ] ], ‘orderby’ => [ … Read more
Add “new” tag for existing products
SOLVED – add_action() for $product->get_date_created
WooCommerce – dynamically loading checkout page using ajax not showing payment methods for guest
Woocommerce checkout page issue – Payment methods not loading – strange “Credit/Debit Card Secure Payment” form
echo product parent category
Using a clean wordpress install, woocommerce and storefront theme, I came up with this code. It sorts regular products and variable products only. Only sorts in admin panel. Sorts by weight from hgih to low (you can see the commented section, you can uncomment the relevant option to you). The code goes into functions.php add_filter(‘woocommerce_order_get_items’, … Read more
In order to achive that you only need two woocommerce filters. First we remove the email post field from the checkout form. Second we set the the submited form data, email, to some fixed value. This is the whole code, paste it into functions.php and you are good to go. Don’t forget to change the … Read more
You can use Woo-commerce option to select default variation in front-end. Please see attached file: