Questions tagged [discount]

405 questions
5
votes
2 answers

Add a discount for specific selected payment method in WooCommerce

Without a using coupon functionality I would like to apply a 15% discount for a specific payment method ID like 'xyz'. I would like help identifying which hooks to use. The general idea of what I would like to achieve is: if payment_method_hook ==…
The Dude man
  • 383
  • 6
  • 19
5
votes
1 answer

Cart discount based on cart item count and only for items that are not in sale

In WooCommerce, I would like to give a discount of 10% specifically for those products that are not on sale. If cart item count is 5 or more items and not on sale, then I give a discount of 10%. I use the following code to get a discount based on…
Osman
  • 53
  • 4
4
votes
1 answer

Clue on how to program a discount system site like groupon

I found this post: programming a contest based on cupon codes in drupal I wonder if there is any sort of module that does something like http://www.eversave.com/ or http://www.groupon.com; Does anybody knows some module(s) that can give me a "head…
user745814
  • 41
  • 1
4
votes
3 answers

Apply a 100% coupon discount on the cheapest cart item in WooCommerce

I have created a 'BOGOF' (buy one get one free) coupon, using the normal woocommerce coupon method. The coupon gives the user 100% percentage discount on 1 other item in the cart. Coupon settings General: Discount type: Percentage discount…
Char
  • 318
  • 2
  • 17
4
votes
1 answer

Apply a discount for a specific user role in Woocommerce

I have a woocommerce store, with 3 user roles, I want to provide a 10% discount on the cart total only for a user role 'company'. I found "Percentage discount based on user role and payment method in Woocommerce" answer that is very neer of what I…
fafchook
  • 819
  • 1
  • 13
  • 17
4
votes
1 answer

Cart bulk quantity discount for specific products in Woocommerce

In woocommerce I am trying to make a custom cart item quantity discount for a specific product ID only. This is what I am trying to do: If a customer add to cart a specific product, I would like to keep the original price for the first item and…
4
votes
1 answer

Add a percentage discount based on customer total purchases sum in Woocommerce

In Woocommerce, I would like to set a percentage discount based on customer total purchases sum. For example if the total purchase sum greater or equal to 200$, customer get 5% discount. So, I have first part of code for showing the total…
4
votes
2 answers

WooCommerce discount: buy one get one 50% off

I wish to set up a specific discount on a particular variable products, if customer buys one product they get the another(same) on 50% discount(Buy one get another for 50% off). I've tried many discount plugins buy the closest that I have found…
abdul
  • 133
  • 3
  • 13
4
votes
1 answer

Apply a discount only on the second cart item in Woocommerce

How to get and modify price of the second item in my cart? I want to made discount -3% on the second product (items in cart already sorted by the price, highest top). I think it must calculate in woocommerce_before_calculate_totals or like discount…
Bogdan
  • 342
  • 5
  • 13
4
votes
2 answers

Fix maximum coupon Discount On Cart percentage in WooCommerce

I have a coupon code (XYZ25) in woocommerce which include 25% off and maximum discount is Rs.250. How can i restrict user's to not get more than Rs.250 Discount if they apply coupon code XYZ25 for 25% discount.
Ravi Shankar
  • 141
  • 3
  • 10
4
votes
1 answer

WooCommerce: Add a discount based on individual items quantity

In my WooCommerce website I have a few products with the same price of 80$. I want to add a Discount by the products quantity. The logic is like that: if (Products Quantity is 2){ // the original product price change from 80$ to 75$…
BMARK AMIT
  • 77
  • 1
  • 11
4
votes
2 answers

How can I import bulk coupon to woocommerce from csv

I'm trying to import about 1000 coupon codes to woocoommerce from a csv file I've used this code but it's not working this code can generate 1 coupon programmly : $coupon_code = 'UNIQUECODE'; // Code $amount = '10'; // Amount $discount_type =…
iCode98
  • 41
  • 1
  • 7
4
votes
1 answer

Paypal recurring billing with a trial and discount code

I have a membership website where membership costs $19.99/month. I'd like to give my users 2 weeks trial period AND a discunt for the first month of payment after that. That is: User purchases a membership which costs $19.99/month I give the user 2…
Mathew
  • 554
  • 4
  • 11
4
votes
1 answer

Anyone know if there is a service to validate UK student card numbers?

Not entirely sure if this is the right place for this question, but here goes. I have tried getting in touch with the UK NUS people, but so far had no response, to the question of whether there any web services available to validate a UK NUS…
BizNuge
  • 938
  • 1
  • 8
  • 20
3
votes
3 answers

Invoicing database design

I created an application few days ago that deals with invoicing. I would like to know how to best integrate a discount to my invoices. Should I put it as a negative item (in the invoice_items table) or should I create a "discount" column in the…
redmoon7777
  • 4,498
  • 1
  • 24
  • 26
1
2
3
26 27