Skip to content

Latest commit

 

History

History
81 lines (57 loc) · 3.72 KB

CHANGELOG.md

File metadata and controls

81 lines (57 loc) · 3.72 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.2.0 (2023-06-29)

  • Add active column to Offers - it's now possible to deactivate Offers. The default value is true (for backwards compatibility).

2.1.0 (2023-06-25)

  • Add product_ids column to Offers - it's now possible to limit an Offer to specific products
  • Multiple Offers can now be applied on the same Order.

2.0.0 (2023-06-23)

  • Remove php7.4 support
  • Added events: RemovedFromCart, CartEmptied
  • Override the OrderItem model in commerce.php config.

1.0.2 (2021-11-28)

  • New Feature: Restrict a coupon to a specific product!

We added the following columns to the coupons table: product_type & product_id.

If you're upgrading an existing installation, create the following migration:

<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use YiddisheKop\LaravelCommerce\Models\Coupon;

class AddProductMorphsToCouponsTable extends Migration
{

    public function up()
    {
        Schema::table('coupons', function (Blueprint $table) {
            $table->nullableMorphs('product');
        });
    }

    public function down()
    {
        Schema::table('coupons', function (Blueprint $table) {
            $table->dropMorphs('product');
        });
    }
}

1.0.1-alpha.0 (2020-11-30)

1.0.0 (2020-11-30)

  • initial release 🥳

Features

Bug Fixes

  • eventServiceProvider (fbff95e)
  • Order paid_at dates (02a09a7)
  • pass attributes at cart creation (3291bea)
  • recalculate totals after adding/removing item from cart (db56afd)
  • remove offer when removing cart-items (f96f1a8)
  • reverted to coupon_total (fdaa6d4)
  • set default currency at cart creation (c650483)