Jump to content
thirty bees forum
  • 0

statsoos - List of customer out of stock registrations (from PS)


Question

Posted

Help from the PS forum.

0_1512684559292_Screenshot-2017-12-7 Statistiken • FashionMoon.png

Who uses this module and has in the list as display a date of 1970 etc goes as follows:

customize the files in the MailAlert module

modules / mailalerts / classes / MailAlert.php after line 51 'idlang' => ['type' => self :: TYPEINT, 'validate' => 'isUnsignedInt', 'required' => true], add 'dateadd' => ['type' => self :: TYPEDATE, 'validate' => 'isDate', 'required' => true], after line 59/60 public $ idlang; add public $ dateadd; 0_1512684393401_Screenshot-2017-12-7 Datei fashionmoon de httpdocs modules mailalerts classes MailAlert php anzeigen - Plesk 12 5 30-statsoos.png

modules / mailalerts / mailalerts.php after line 176 (id_lang int (10) unsigned NOT NULL,) add date_add datetime NOT NULL,

0_1512684411852_Screenshot-2017-12-7 Datei fashionmoon de httpdocs modules mailalerts classes MailAlert php anzeigen - Plesk 12 5 30-statsoos-2.png

Then reset the module Mail Alerts. On the next customer request (email notification product not available) on a product that is not in stock should appear with the current date.

I personally hope that the changes will be added to the Mail Alerts module as default.

5 answers to this question

Recommended Posts

  • 0
Posted

A quick warning to NOT change the Mail Alert module. At least for me it looks like it messed up order processing. Orders were being registered without product information.  

  • 0
Posted

I didn't know about the list in alerts until now. But I see that they share the same database. If you delete someone in this module, they get deleted from alerts.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...