Describe your bug or feature request.

Currently the admin promotions list is powered by a simple entity list builder. One reason why this was never converted to a view was the draggable rows allowing to specify the promotions order.

As a result, it's currently impossible to easily add filters, sorts etc...

For example, we can't currently filter by coupon code, offer, or even name. All of this would be easily doable if the list was powered by a view.

Unfortunately, we can't easily add drag&drop support to the view without depending on yet another contrib module (e.g draggableviews).

My proposal is to replace the current list by a view, and move the current listing under a "Reorder" tab.

This way, we'd have a first tab listing all promotions with filters etc, and a second list where users can tweak the promotions order.

This gives us the following:

I'm also suggesting we revert the changes recently introduced where we separate the enabled/disabled promotions into 2 separate listings.

CommentFileSizeAuthor
#2 3248910-2.patch42.32 KBjsacksick
new-promotions-admin.png58.46 KBjsacksick

Comments

jsacksick created an issue. See original summary.

jsacksick’s picture

Status: Active » Needs review
StatusFileSize
new42.32 KB

With the attached patch, we can now filter by offer type, and the offer is actually displayed in the table directly (this was an important missing piece of information IMO).

jsacksick’s picture

Title: Replace the promotions list by a view » Revamp the promotions admin list using a view

  • jsacksick committed aa312f9 on 8.x-2.x
    Issue #3248910 by jsacksick: Revamp the promotions admin list using a...

  • jsacksick committed 03cc227 on 3.0.x
    Issue #3248910 by jsacksick: Revamp the promotions admin list using a...
jsacksick’s picture

Status: Needs review » Fixed

  • jsacksick committed e3e777e on 8.x-2.x
    Issue #3248910 followup by jsacksick: Show only enabled promotions on...

  • jsacksick committed 550e034 on 3.0.x
    Issue #3248910 followup by jsacksick: Show only enabled promotions on...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.