Disable WooCommerce SKU on Product Page

I have a WooCommerce store and I don't want to display the SKU on any single product page. Looking at their code, I found this filter: /** * Returns whether or not SKUS are enabled. * @return...

get the download id for the product in woocommerce

I am using woocommerce in wordpress . I have set 2 files to download for each product but when I am trying to call the both the download file link using the below code...

add product search field in woo-commerce product page

right now i am using below code // Display Fields add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' ); function woo_add_custom_general_fields() { ...

WooCommerce Wordpress plugin Issues

For some reason.. I am getting two cart totals on my CART page.. No errors in teh debugger. Here is the image There are tons of different files for woocommerce.. Here is the cart-totals.php page....

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

I want add a custom Button "View Demo" next to "Add to Cart" button of WooCommerce based on Product Type, both on main shop page and single product page. I've done this steps: Add code to theme...

Add Advanced Custom Fields to WooCommerce Product Variation

I am using plugins called Advanced Custom Fields (ACF) and WooCommerce. I want to create a text and image field for WooCommerce product variation. I created fields in ACF and assigned them to...

Woocommerce Product child category from current parent category

I am trying to show the WooCommerce product child category for the corresponding parent category. I have entered the product as following: I am using the following code segment that displays the...

WooCommerce changing "SSSSS" text-based ratings to default Star-ratings

For those who know WooCommerce, this may seem like a simple fix. Well, I am totally stumped... My theme overwrites WooCommerce's star-rating system with an ugly "progress bar" style ratings...

Adding Extra Add to cart button below product summary in Woocommerce

In WooCommerce, I am trying to add an extra add to cart button below product summary. I successfully added an extra button following this code which works for single products: add_action(...

Add custome text after price in woocommerce product page

I am working on salient theme for my E-commerce website. I want to show "B" after price in woocommerce product page. The page displays like "$99,99" I want to make it displays like this: "$99,99...

Create programmatically a WooCommerce product variation with new attribute values

I have created a variable product ("parent" product) in WooCommerce version 3+. From a WordPress plugin, I would like to programmatically create the product variations ("children" product) with...

Slider for product thumbnails in WooCommerce

I've built an own theme for my WooCommerce store. At the moment I've made very few changes to the existing template files. But I want to change the view of the image slider on the product page. At...

Display a custom taxonomy in Woocommerce single product pages

I have added a new taxonomy called "Vendor" to Woocommerce with the following code: // hook into the init action and call taxonomy when it fires add_action( 'init', 'create_vendor_taxonomy', 0...

How to disable rounding of prices on WooCommerce?

I've been trying to disable product price rounding on WooCommerce without success. Even if I set decimals to 2 on WooCommerce > Settings > General > Number of decimals it will show products that...

Add and manage Product custom upload field in Woocommerce 3

I am trying to add a file upload along with radio inputs in a custom woocommerce page; where all the products are showing in a list view. The Custom Page CODE: <?php /* Template Name: Custom...

Add variation stock quantity and status to Woocommerce product variation dropdown

Based on "https://stackoverflow.com/questions/45037405/show-stock-status-next-to-each-attribute-value-in-woocommerce-variable-products/45041602#45041602", I have the following code that shows...

Add a Woocommerce fee based on shipping class and item quantity

In Woocommerce I am trying to add a shipping fee if a cart item has a specific shipping class assigned to the related product. I would like this shipping fee to be multiplied by the cart item...

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...

Blank/empty pages Cart and Checkout

We’re just getting started with WooCommerce and are preparing a store with just a few categories and products in it to play around with it and get to know it before we get seriously into it. We...

Obtain object valus in a JSON array with Google Apps Script (WooCommerce Webhook)

I have a WooCommerce webshop, which sends the created orders to a Google Spreadsheet using a webhook. I managed to make it work, except for one (crucial) step: I cannot seem to properly loop...

Error using WooCommerce - using is_type function on $product

I encounter som problem using WordPress, WooCommerce, Divi and particulary a plugin named Divi Body Commerce When I create a variable product, and go to my cart, I have a php error. It is not my...

Replace add to cart button for unlogged users in WooCommerce

In WooCommerce, I don't want to show product add to cart button for unlogged users. I am using the code bellow changing add to cart button: // Replace add to cart button with link for users who...

Disable coupons for subscription products in WooCommerce

I am trying to disable coupon codes for my WooCommerce Subscriptions that I have set up through the "all products for subscription" add on. I've tried the snippet below but it's not targeting...

Display the total price on the WooCommerce single product page with the original product price * minimum quantity

I'm looking to create a PHP code snippet that display the total price on the WooCommerce single product page with the original product price * minimum quantity Based on WooCommerce - auto update...

Remove "Search Results: '%s'" and blank space from Woocommerce Shop Search Results Page

I am trying to remove the "Search results: ' ' " text that shows above products on the Woocommerce Storefront search results page. Below is an image with the referenced text circled: I have tried...

Ajax Add to cart for simple and variable products on WooCommerce single products

The code below is working for add to cart with WooCommerce for simple products, but not for variable products. Can someone help me out? Because this code works with the latest WC, please do not...

Change add to cart button and text based on WooCommerce product type

How to change a WooCommerce add to cart button in Product List loop but depending on the product type, like for example: For products with Variations I want a text in add to cart button to: "Show...

Hide specific product variations from unlogged users in WooCommerce

I'm trying to hide only one of the two variations of a product in WooCommerce for visitors that are not logged in. The ID of the variation is 139. I don't know how to add the ID (or slug) to this...

Showing "Out of Stock" text next to variation in Woocommerce product with multuiple variations

I have been looking EVERYWHERE and I cannot seem to find a solution to a very simple problem. I have a Woocommerce store and I want to show to the user a message "Out of stock" next to the...

Add a certain free gift depending on cart amount in WooCommerce

I want to add a certain free gift, depending on cart amount in WooCommerce. Let's say: Less than 1500 - no free gift Between or equal to 1500 - 1999 - add a free product (1) Greater than or equal...