{"repo":"Safemood/discountify","free":true,"listed":false,"github":"https://github.com/Safemood/discountify","clone":"git clone https://github.com/Safemood/discountify.git","description":"Laravel package for dynamic discounts with custom conditions.","language":"PHP","stars":234,"topics":["ecommerce","laravel","php"],"license":"MIT","category":"ecommerce","readme_excerpt":"Laravel Discountify for dynamic discounts with custom conditions. Discountify is a Laravel package designed for managing dynamic discounts with custom conditions. It allows you to create flexible and powerful discounting strategies, easily defining conditions and applying percentage-based discounts to enhance your e-commerce application. - Installation - Usage - Define Discounts Conditions - Set Items, Global Discount, and Tax Rate - Calculate Total Amounts - Dynamic Field Names - Class-Based Discounts - Skip Discounts conditions - Event Tracking - Coupon Based Discounts Installation You can install the package via composer: You can publish the config file with: This is the contents of the published config file: Usage Define Conditions Set Items, Global Discount, and Tax Rate Calculate Total Amounts Dynamic Field Names Class-Based Discounts The classes in App\\Conditions will be auto-discovered by Discountify for seamless integration—no configuration is needed. - Create Class-Based Conditions: To create a class-based condition using the discountify:condition artisan command, you can run the following command: - Command Options: --discount (-d): Specifies the discount value for the condition. Default value is 0. --slug (-s): Specifies the slug for the condition. If not provided, the name of the condition will be used as the slug. --force (-f): Creates the class even if the condition class already exists. Skip Discounts Conditions This will allows you to exclude specific conditi","default_branch":null,"files":null,"tree":[],"storefront":"/r/Safemood","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Safemood/discountify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}