Comments (16)
Hi @dayaki.
Sorry for late reply.
I hadn't planned to work on monetary value. But I like that idea and I think that I will work on that for next version.
from laravel-promocodes.
@zgabievi Thanks, any timeline as to when you can work on this? Could you give me directions on how I can implement this? as i love to include this in an ongoing project.
Thanks
from laravel-promocodes.
@dayaki easies way to implement this is to use if condition. If I understood you correctly you can do something like this:
$applied = Promocodes::apply('TEST-CODE');
if ($applied) {
// do some action. give user something ))
}
If you didn't mean this you can contact me on my email and I will try to help you ;)
from laravel-promocodes.
Thanks, sent you an email.
from laravel-promocodes.
Oh, now I see. Great idea. I will work on that today. And will inform you about updates. Thank you for this idea
On May 17, 2016, at 19:05, Dayo Akinkuowo [email protected] wrote:
Thanks, sent you an email.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub #1 (comment)
from laravel-promocodes.
Thanks so much, will be expecting
from laravel-promocodes.
from laravel-promocodes.
Awesome man, do i need to update/reinstall your package to make use of the changes? because I did composer update
and your package didnt update
from laravel-promocodes.
You need to update to 0.1.2 version
from laravel-promocodes.
@dayaki Can we close this issue?
from laravel-promocodes.
am getting this error:
from laravel-promocodes.
Sorry, there was symbol mistake :/ I've fixed that
from laravel-promocodes.
Whenever i try to save a code using Promocodes::save(5, 10.50)
, i keep getting SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '10.5' for key 'promocodes_code_unique' (SQL: insert into
promocodes(
code) values (GT16-P8PBTF-CYY6W), (10.5), (GT16-ZNA410-TAJNN), (10.5), (GT16-U9NHAJ-ZUB4R), (10.5), (GT16-7DFYUF-9W5MX), (10.5), (GT16-38ATM9-KR3KM), (10.5))
error
from laravel-promocodes.
Here we go. I've tested some cases with tinker. Here is screenshot of this test:
Please, update to 0.1.4.
P.S. and update Promocode.php too
from laravel-promocodes.
Thanks, its working now, BUT you missed a]
in line 144 of Promocodes.php. It is $data[$key['reward'] = $reward;
instead of $data[$key]['reward'] = $reward;
from laravel-promocodes.
Fixed, thanks. I'm so bad today :D I will close issue for now. ;)
from laravel-promocodes.
Related Issues (20)
- Column not found: 1054 Unknown column 'user_id' in 'field list' HOT 1
- decrement on unlimted usage HOT 2
- Unable to upgrade to Laravel 10 HOT 7
- Vendor publish command
- could not able to find Gabievi\Promocodes\Traits\AppliesPromocode;
- Anyway to apply this to certain products only?
- Not Supported For Laravel 10 illuminate/support 10 HOT 2
- Any plans to improve the code quality of the package? HOT 2
- Request Feature to get Valid and not Valid Promocodes HOT 1
- Laravel 9 Support Request HOT 1
- how can i applay pomocode one time for each user ? HOT 1
- Unable to install package HOT 1
- Gift Card feature HOT 1
- Typehint causing issues with custom user model HOT 1
- Validation promo code HOT 3
- Partial usage of promotional code (gift card)
- Adding Value to Promo Codes HOT 2
- Lets user create promo code
- PSR-4 issue with Zorb\Promocodes\Promocode\Promocode class HOT 1
- Is there an upgrade guide for moving from v8 to v9 of this package?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-promocodes.