Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate conditions classes command #6

Merged
merged 9 commits into from
Jan 26, 2024
Merged

Conversation

Safemood
Copy link
Owner

This pull request introduces a new console command to the Discountify package: discountify:condition. This command facilitates the creation of new condition classes, enabling users to define custom conditions for discounts in a convenient manner.

Options:

--discount (-d): Specifies the discount value for the condition. Default value is 0.
--force (-f): Creates the class even if the condition class already exists.
--slug (-s): Specifies the slug for the condition. If not provided, the name of the condition will be used as the slug.

Example:

php artisan discountify:condition OrderTotalDiscount 
php artisan discountify:condition OrderTotalDiscount --discount=10 --slug=order_total

@Safemood Safemood merged commit af9d60b into main Jan 26, 2024
1 check passed
@Safemood Safemood deleted the generate-conditions-classes branch January 26, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant