friends-of-presta / fop_console

Prestashop Module providing a set of shell/terminal commands for developers (PrestaShop 1.7.5+)
Academic Free License v3.0
84 stars 35 forks source link

New Command : fop:cart:discount (List Cart Discount) #258

Open Grezor opened 2 years ago

Grezor commented 2 years ago

Domain

CartDiscount

Command

fop:cart:discount

parameters

date, month, year, stats

Command description

I would like to propose a new command to have the list of promo codes. example : "JULY2022"

Name of the code total use remaining finished_at
JULY2022 300 150 150 2022-07-31

I would like some feedback on this command. If it is accepted, I will be given this outcome

my opinion: I propose this command, because currently in my company we use a lot of promo code. I had to make an SQL query to know how many people use the promo code A and how many are left. Here it is, in the next few months. It will happen again on my side.

regards, Geoffrey / Grezor

SebSept commented 2 years ago

dates with french format is maybe not a good bet. Not sure..

jf-viguier commented 2 years ago

@SebSept I've changed this date format