Hello Friends, i am looking for a coupen code functionality with laravel , i have to do the functionality called the Coupon code, the coupon code is to be created from backend(Admin Panel) then selected user to send mail to receive coupon code, then we have to choose the validity from and valid to the coupon code to control it from Admin panel, and allow the discount price whether fixed or percentage.
i have share the details about our query and client requirement below, please check by your reference.
Our Query
1. So its for all users
2. So want to do this from backend i.e validity and set it to for a day a week a month, 48 hours etc.
3. This will also be set in Backend
4. Is this applicable for Only one time?
5. “The percentage may vary, it can always vary. ” can you please detail this so that we can understand
6. How will the coupon code effect the total price on the product? Do you have any kind of calculation or percenatge discount on total price
Client Requirement
1. no it’s only for users who have the dedicated promocode provided, either via an email we send them or available from anyone who follows us on Instagram for example.
2. yes from the back end i can define the promocodes for however long. There may be one or more promocodes issued at the same time.
3. yes
4. no they can use it as many times as they want during the specified validity period.
5. so for example if you are a new user for 1 day only you get 50% off for example. Another person will have another code for 20% on their next purchase. so discounts will not always be the same
6. yes of course the coupon code is all about affecting the price and giving a customer a discount on checkout.
I have partially completed the task, i have used the controller called
CouponCodeController.php Please check the files
It’s the Laravel 4.2 version . If any one has the answer i can update my current code’s to you .
laravel coupen code
Share
This is the basic functionality of promo code which client wants. Where does he want it to implement? Is there any shopping cart? If yes, is it a customized shopping cart?
If it is a laravel shopping cart, then please provide the name of the extension.
I am making this as resolved, since i made that functionality to get worked.
And the answer for your question : Yes it is a customized shopping cart using laravel.
This shop is built by laravel and coupon code is a hard coded .