bagisto / bagisto

Free and open source laravel eCommerce platform
https://bagisto.com
Open Software License 3.0
14.52k stars 2.15k forks source link

Exception while applying catalog rule "adjust to percentage" #1869

Closed AnnikaWolff closed 4 years ago

AnnikaWolff commented 4 years ago

Bug report

Got an exception while applying a catalog rule, that should adjust the price to a given percentage:

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Class 'Webkul\Discount\Actions\Catalog\AdjustToPercent' not found
Open: /var/www/packages/Webkul/Discount/src/Helpers/Catalog/Apply.php > Line 432

Preconditions

Framework Version: Bagisto v.0.1.8 Latest commit 3eb7d86

Steps to reproduce

  1. Create Catalog Rule
    • Customer Group: General
    • Channel: Default
    • Is Active: Yes
    • Start / End: left empty
    • Condition: Select by Categories -> select any
    • Actions: Apply -> Adjust price to percentage
    • Discount Amount: 10% (or any)
    • End other rules: No
  2. Save the Rule
  3. On Catalog Rule Overview: Click Button "Apply"

Expected result

After clicking the Apply button, a success message should appear. The catalog rule should be applied to the chosen category, i.e. the price of that category's products should be decreased by the given percentage.

Actual result

After clicking the Apply button, the rule is not applied, but an exception occurs:

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Class 'Webkul\Discount\Actions\Catalog\AdjustToPercent' not found
Open: /var/www/packages/Webkul/Discount/src/Helpers/Catalog/Apply.php > Line 432
jitendra-webkul commented 4 years ago

@AnnikaWolff

We are revamping the entire cart rule and catalog rule. By this month we will release new version with more stable cart rule and catalog rule.

AnnikaWolff commented 4 years ago

Hello @jitendra-webkul

Alright, thanks for the answer. I am looking forward to it :) If you want to close this issue, it is fine by me.

Best regards!