Woocommerce add coupon code automatically when certain conditions are met

Completed Posted 3 years ago Paid on delivery
Completed Paid on delivery

We run a Woocommerce shop and need a specific feature for a sale event coming soon. We offer two discount coupons: 15% (up to 99 Euro total purchase) and 20% (100+ Euro total purchase). These coupons are created using a standard plugin. Now, here is the problem: Only regular customers should be able to use these coupons AND they should be added automatically to the cart, but only if the standard WP coupon input field is empty. Example:

A new customer orders as guest: No coupon automatically added!

A new customer registers and orders as a new customer: No coupon automatically added.

A regular customer orders as a guest (not logged in): Can use the code manually, but no code added automatically.

A regular customer orders after logging-in: The code is added if the standard input is empty.

The discount depends on the total of the purchase. We could provide, for example, the user ID of the last user that is accepted as a regular customer.

We don't need any functionality in the WP dashboard, just a code snippet for the [login to view URL] that does the trick.

Fee free to ask for more information if needed.

PHP WordPress WooCommerce

Project ID: #29095278

About the project

30 proposals Remote project Active 3 years ago

Awarded to:

letsstartcoding

i got your file so we just need to do direct coding in [login to view URL] and i understood very well your 4 logics there so just let me know on all cases we need to add coupon automatically or u want it manually? just answe More

€100 EUR in 1 day
(52 Reviews)
5.9

30 freelancers are bidding on average €187 for this job

techwelfare

WOOCOMMERCE EXPERTS! We are working on woocommerce since last 11 years. We could do it. Could we discuss in details over chat now? Best Regards Simla

€200 EUR in 16 days
(186 Reviews)
7.2
nivasoftvietnam

EXPERT Wordpress Website Developer * I am an experienced Wordpress full-stack senior developer over 10+ years experience. * I would love to hear from you the project “Woocommerce add coupon code automatically wh More

€250 EUR in 7 days
(65 Reviews)
6.0
vashishtrupinder

Hi I AM READY TO START NOW I read through the job details carefully and I am absolutely sure that we can do the project very well. In a nutshell, I'm a freelancer with more than 7 years of work experience. Expert More

€250 EUR in 9 days
(94 Reviews)
6.4
anaya8777

I checked the requirements . I just want to discuss few more things. I am available to discuss now. Waiting for your response. Thanks.

€200 EUR in 7 days
(39 Reviews)
5.6
nizamfarhas

Hi There, How are you doing well? I am really interested in your project, " Woocommerce add coupon code automatically when certain conditions are met". I have rich experiences in PHP, WordPress and WooCommerce Feel f More

€110 EUR in 4 days
(22 Reviews)
5.5
blackrockwise

Hi there, You want to add a functionality to your woocommerce website that add a particular couple automatically to returning customer when the main woocommerce couple field is empty. I can handle all your woocommerce More

€240 EUR in 3 days
(14 Reviews)
4.8
rinku1902

Hello, I am an experienced WordPress developer & have worked on 200+ WordPress websites. When you assign me the work, stay assured the work will be done fast enough & of superior quality Message me to discuss further More

€150 EUR in 8 days
(35 Reviews)
4.3
shaanrafiqdev

i have checked your requirements carefully I am very interested in your project I have much experience in wordpress/Woocommerce I can work on above mentioned requirements I am ready to start work asa More

€250 EUR in 7 days
(4 Reviews)
4.3
cagriari

hi, how would you determine a regular customer ordering as a guest? by the shipping info / email?

€45 EUR in 2 days
(8 Reviews)
4.1
naveedbukhari394

Hello I have read your description and I am willing to create woocommmerce coupon I have 5+ years experience of Web developing Including with PHP, , HTML5, CSS, JAVASCRIPT, WordPress, woo-commerce, Shopify, WIX, e-com More

€30 EUR in 3 days
(5 Reviews)
4.0
sonishubham

Hi I can implement the coupon code system as you mentioned above. I have full expertise i Wordpress woocommerce. I can do this. I am available and can start working on it ASAP. Thanks

€150 EUR in 5 days
(6 Reviews)
3.3
kuditaofiq

hello Woocommerce add coupon code automatically when certain conditions are met I provide creative, proactive and high-tech solutions to your development needs. I have solid experience in HTML, Javascript, PHP, MySQL More

€30 EUR in 1 day
(1 Review)
2.5
uzaira19

Hi there! I can generate a custom function for with an exact match to the features you're looking for as I've implemented similar functionality to auto add coupons when a specific product is added and coupon code field More

€111 EUR in 3 days
(6 Reviews)
2.9
millaldeoenrique

Hi, I currently have a Marketplace with woocommerce and wordpress, I'm sure I can do the solution for coupons!

€150 EUR in 1 day
(0 Reviews)
0.0
VRTECHSOL

Hi _____ We are a locally registered IT Company providing similar capacity services for over 50+ clients. I truly understand the project requirements, and can develop your E-Commerce Store with additional plugins of d More

€150 EUR in 7 days
(0 Reviews)
0.0
SumitThukral

I can do this job for you. Just need to know what plugin are you using to generate discount codes. As we can configure woocommerce to fix this issue. If third party plugin is used then we will have to write a code to f More

€140 EUR in 5 days
(0 Reviews)
0.0
Taqitafsol

Hi, I have understood all your requirements as you have compiled such a brief, clean and to the point project description, I have already done similar projects before like adding coupons in online stores cart. Don't w More

€299 EUR in 3 days
(0 Reviews)
0.0