woocommerce landing page: how to add an add to cart button

I'm building this page for a client: http://alliedscientificpro.com/lp/lightingpassport.php It is a simple HTML, NON WORDPRESS landing page. So there is no wordpress code, no Woocommerce code,...

WooCommerce products showing “Out of stock” message when not actually out of stock

Having an issue with a client website where products are randomly displaying "This product is currently out of stock and unavailable." The thing is that we don't have inventory tracking turned...

WooCommerce: Override product info before adding to cart

I've found the following example (https://stackoverflow.com/questions/12327251/woocommerce-add-product-to-cart-with-price-override) which lets the user add a product to the cart. However, it hard...

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

How to display Woocommerce product price by ID number on a custom page?

I'm trying to display a price of a product in Woocommerce, on a custom page. There is a short code for that, but it gives product price and also adds an "Add to cart button", I don't want the...

WooCommerce add to cart validation: prevent add to cart

I have a probleme with woocommerce that im trying to fix for few days. I am creating a website for a guy and he wanted me to add a custom input on the product page, I couldn't do it myself so I...

How to process the user generated price in woocommerce

I have a requirement for a product order in woocommerce. I created a custom template for ordering the product. In that template, the user has to enter dimensions such as length, width, and height....

Display a custom button on WooCommerce product pages only for certain categories

I have added a custom button to product page that is connected to product meta demo_url, which is just an URL that changes by each product (to open live demo for each product separately in a...

Missing Add to Cart button on custom product

Code: <?php // --- Product Type: re_subscription -- Custom Fields: type (mls / nomls), duration in days --- // --- Actions & Filters --- add_filter('product_type_selector',...

Add item to cart through a Get request with custom meta data in Woocommerce

I have created a button per item in the order view in woocommerce (inside the order-details-item.php) to enable the customer to add that item to the cart and so buy more. By using a href that...

Change default radio buttons checked attribute on multi modal pop in

By default, Woocommerce gives me options for my product custom layout. On a click of a button like below I get a pop up modal with options default product for However the default choice is...

Shipping carrier custom fields validation in Woocommerce checkout page

I have added two custom input fields in the shipping method section by changing the template /genesis-sample/woocommerce/checkout/review-order.php I have also managed to get them conditionally...

Replace specific cart item based on product quantity in Woocommerce

I am trying to change the cart content based on the quantity of a product in the cart. I only have 5 products in the shop: Product_1 => 1 panel, Product_2 => 12 panels, Product_3 => 18...

Ajaxify header cart items count in Woocommerce

I'm creating a custom woocommerce integrated theme for wordpress. I have a blob on the top that displays the total number of items in the cart, I want to update this blob using Jquery (w/o...

How to remove woocommerce error You cannot add another “PRODUCT NAME” to your cart

in my website woocommerce settings, remove add to card ajax and notice; and when users (visitors) add a product to basket for buy, redirect after click to basket and show message add product to...

Set or update product shipping class programmatically in Woocommerce

Good Day, I have been trying to figure out how to select shipping class programmatically using php. I'm creating a woocommerce product from frontend using a form and on form submission the product...

Allow customer to change the order status in WooCommerce My account

Looking to create a custom order process that looks like this: Customer adds item to cart During Checkout Process customer uploads design to order On Checkout payment is verified, but not...

How to fix: FB-Pixel detected event code but the pixel has not activated

We have a Woocommerce Page with a Facebook Pixel integration, on the category pages the pixel fires the following code: content_type: product_group domain: www.xxxxxx.tld content_category: Not...

Woocommerce add to cart validation hide alert message

I have woocommerce, single product page, the variational product with two variations. If some of them (or none) are not checked, the Add to cart button is disabled and I have an alert with the...

How to recalculate order taxes and total programmatically in woocommerce

I use woocommerce from Admin only and add orders manually from Admin panel only. Everything works fine except tax calculation. After adding products, I must click Recalculate to be able to apply...

How to create a filter dropdown on WooCommerce admin orders list?

I am trying to create a shipping state filter dropdown on WooCommerce admin orders list First I have added a custom column for shipping state to admin orders list: add_filter(...

Additional custom button for specific single product page in WooCommerce

In WooCommerce on need to create another button that redirects to "Contact Us" form below my current "Add to Cart" button for specific product page (example:...

WooCommerce: Change the label of the “Return to shop” button in the empty cart page

I would like to change the text in the "return to shop" button in the empty cart page in WooCommerce I found in this snippet: add_action( 'wp_footer',...

Remove submenu for 'Add Order' in WooCommerce on WordPress admin dashboard

My WooCommerce version is 4.5.2. I will like to remove the 'Add order' for a custom user so that it cannot access wp-admin/post-new.php?post_type=shop_order. I have created a custom user using...

Pass custom posted variable from a page to Woocommerce order data

I can add a custom variable to a WooCommerce order, using code like this - but only if the code is on the product page: <form action="<?php echo esc_url( wc_get_checkout_url() ); ?>"...

How to fill custom checkout field with previously entered value, like default WooCommerce checkout fields?

I have added a custom field using the below code: add_action( 'woocommerce_before_order_notes', 'bbloomer_add_custom_checkout_field' ); function bbloomer_add_custom_checkout_field( $checkout ) { ...

Display an ACF field values in WooCommerce product archive loop

i'm currently playing around on localhost since i'm going to design an ecommerce for a client who owns a records store. I've installed Elementor, WooCommerce and ACF, and at first tried to use...

WordPress WooCommerce add new field in each row at /my-account/subscriptions/ page

I am using WordPress with WooCommerce and WooCommerce subscriptions plugins and below is my code in which I have added a custom field called (Mindesk VAR Client User - Dropdown) to show in "Edit...

Dynamically creating field based on select value in ACF Pro | WordPress, WooCommerce

I am looking for a way to create following. The current situation: I have an option page with a repeater with a text subfield. Client enters text values in the repeater subfield which generate...

Woocommerce how to ajaxify add to cart button for variable products using custom html radio buttons instead of dropdown menu - no plugin

I'm trying to put all of the pieces of this puzzle together. I've been reading all of the questions and answers on this subject for the past 3 days. So the general blueprint that i'm following is...