attribute update event for product flat is suppressed for now as code and type never gets changed when updating the attribute
This commit is contained in:
parent
14dfec8365
commit
66c74af6ca
|
|
@ -118,7 +118,7 @@ class AttributeController extends Controller
|
|||
|
||||
$attribute = $this->attribute->update(request()->all(), $id);
|
||||
|
||||
Event::fire('after.attribute.updated', $attribute);
|
||||
// Event::fire('after.attribute.updated', $attribute);
|
||||
|
||||
session()->flash('success', 'Attribute updated successfully.');
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class ProductsFlat
|
|||
*/
|
||||
public function afterAttributeUpdated($attribute)
|
||||
{
|
||||
dd($attribute);
|
||||
return true;
|
||||
}
|
||||
|
||||
public function afterAttributeDeleted($attribute)
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ class EventServiceProvider extends ServiceProvider
|
|||
*/
|
||||
public function boot()
|
||||
{
|
||||
Event::listen('after.attribute.updated', 'Webkul\Product\Listeners\ProductsFlat@afterAttributeUpdated');
|
||||
// Event::listen('after.attribute.updated', 'Webkul\Product\Listeners\ProductsFlat@afterAttributeUpdated');
|
||||
|
||||
Event::listen('after.attribute.created', 'Webkul\Product\Listeners\ProductsFlat@afterAttributeCreated');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue