Product Restock

Restocking products

Restock option appears on the product edit form whenever the current stock is below zero. If the Restock Date is filled, an email will be mailed to the admin reminding them to restock this product on that day. If multiple products are selected for the same day, the admin will only receive one email listing all the products. 

The email used can be configured under 'Restock Email' in  Catalogues module Configure Manage Configuration. If this email is not found, then the restock cron will use the centre email. The Restock script runs once daily. 

You can request the restock date using the following function, by default the date will be returned using the Y-m-d format, but you can pass any valid PHP date format to this function as a variable.

<{$product->getRestockDate(<$format 'Y-m-d'>)}>

You will need to check the date as it may be in the past and the admin may have failed to restock, you can get back the unix time stamp by using getRestockDate('U');