I added this to my functions.php file : add_filter ('woocommerce_add_to_cart_redirect', 'woo_redirect_to_checkout'); function woo_redirect_to_checkout() { $che
I am trying to find products that are on sale (including product variations) in addition to another meta_query of price under X. The wc_get_product_ids_on_sale(
I have been tasked with duplicating a WooCommerce product gallery in an internal page (not a product page). As such, I decided to create a Child theme and write
I'm using Woocommerce and product variations and all my variations have a default variation defined. I would like to know, how I can find the default variation
I have a woocommerce store and I try to select from Mysql all products and set them as "Featured" products or set them as Non "Featured" products. I have found
I have used default woocommerce templates for shop, cart and single page. I have not removed any hooks either but also I am not getting any message. Any Idea?
Currently using WordPress 5.1.1 and WooCommerce 3.5.7. My WooCommerce store has around 500 products, made up of simple and variable products. Each product natu
I'm working on an eCommerce project at the moment. I'm using WooCommerce in WordPress. I've got ridden of the product data tabs and displayed product descripti
I would like the user to be directed to a certain URL when they click the 'add to cart' button. At the moment I have this: /** * Set a custom add to cart URL
Is there anyway I can sort by stock? Since it reads 'Stock x 30' it would be helpful if I could sort by high or low. Is there any code I can add to the function
I have a certain product category that I only want to offer to logged in users. How would I implement that? So how to hide specific products from unlogged user
How can I assign multiple images to a product in WooCommerce? I've tried: update_post_meta( $post_id, '_product_image_gallery', $image_id); but it assigns o
My log shows a lot of the following messages: order_total was called incorrectly. Order properties should not be accessed directly. This message was added in v
I'm trying to improve pagespeed results for my clients. I'm making an eshop with woocommerce and although I get 90-92% for desktop in the mobile I only have 38-
I need get a list of orders in woocommerce passing start date, final date and status. I tryed use some techniques like described by Mike Jolley, and I mixed wi
I cannot figure out what i am missing here. I am creating a hidden field on the checkout page, that contains a value after a customer's choice. This part is wor
I am trying to display the percentage discount of a product on Woocommerce. The solution originally provided (linked below) works, however the discount percenta
On my product template, I execute this action : <?php /** * woocommerce_single_product_summary hook. * * @hooked woocommerce_template_single
I am actually trying to make a 3D product configurator with verge 3D and have to create new WooCommerce products for every specific product configuration. Every
I have updated all of my Wordpress plugins and I'm using the Hello Elementor theme as recommended. In Chrome all of the information is saved in the forms, and i