Woocommerce 2.0+ discount price per quantity and variation on product page

Using Mystile theme in latest version of Woocommerce, i overrided variation.php in order to show discount price depending on quantity and variation chosen. I have 3 attributes : "marquage",...

wordpress : showing a result of plugin using ajax

the problem is when i get the result by using shortcode and i put it in my page nothing is showing even if the content is here. first here is my function using ajax : function ma_fonction_js() ...

Woocommerce get undefined cookie when calculate fees after updated_checkout fired

i try to make custom field (next will called "package") on woocommerce checkout page that will determine whether the extra field applied or not when the value of custom field changed. and the...

WooCommerce : Pre Setting Default Payment Method on Cart Page

I am trying to restrict discounts or coupons if a customer selects a specific payment method. To do this, I have used a plugin called WooCommerce Extended Coupon Features. I have 3 active payment...

How do I programmatically apply a coupon in Woocommerce for first order made by a customer?

In Woocommerce I'm trying to find a way to apply a 20% discount to the first order made by a new customer. It appears that I can use the functions woocommerce_after_checkout_validation and...

Woocommerce First And Second Order Discount Coupon

One of my client wants that when new users comes to website then they"ll get Rs. 500 discount. Here's the complication, the discount like that on first order he get Rs. 250 discount after entering...

Woocommerce total sales value from specific coupon

The issue: I need a way to first get all sales made with a specific coupon code. Then get the total revenue from all those sales (and preferably subtracting any returns on those sales. To get the...

Adding a discount by cart items conditionally based on the item quantity

I have set up a Woocommerce shop and wish to set up a specific discount on all products based on multiples of 12 (a box). I've tried many discount plugins but haven't found what I am looking...

Set discount based on number of orders in WooCommerce

In WooCommerce, how to set discount based on number of order? For example I would like to apply a discount based on customer orders: first order discount $50 second order discount $30 third order...

Extracting from formatted price the number for calculations in WooCommerce

I'm working on a custom invoice template with the plugin WooCommerce PDF Invoices & Packing Slips by Ewout Fernhout, and I faced with problem, when I want to create a more detailed product list on...

WooCommerce - Buy 10, get 3 free - only the cheapest 3 are free

I have a client currently who sell line-marking paint, and they want an offer on their site that works in the following way: If a customer purchases 10+ paints (they can mix and match), they will...

Apply a discount on the cart content total excluding taxes in WooCommerce

I need to apply a discount to the cart subtotal before tax is calculated if a user is ordering for the first time. However, tax is calculated per-item in WooCommerce and added to the subtotal...

Enable a calculated cart discount limit in Woocommerce

I am trying to put together a WooCommerce discount without the use of coupons and all is working except for the "limit" function. Each new customer will receive a 20% (first time shoppers) on...

Custom cart notice based on user total purchased amount in Woocommerce

I am trying to display a custom cart notice based on user total purchased amount in Woocommerce, based on this answer...

First order discount for guest customers checking Woocommerce orders billing email

By checking the GUEST customer's email address against processing and completed orders, I want to give the GUEST a "first order discount" if the email has no orders. It would be nice if this could...

Auto apply coupon based on total spent in shop woocommerce

I need to apply a previously created coupon in woocommerce cart based on total spent in shop by logged in users. Example, If user already spent $300 or more in previous orders, in the next order,...

WooCommerce order again and custom item data for price calculation

I have some problems trying to add/get custom item data when a re-order is made. First let me explain a little bit: I am using WooCommerce as a invoice maker mostly, so one of the custom changes I...