Latest updated products for Simpla cms Simpla CMS
In the database for each product, one of the characteristics stores the date of the last change of the product in the admin panel
1. In the database for each product, one of the characteristics stores the date of the last change of the product in the admin panel. When editing a product in the admin panel, the value is automatically changed to the current date.
2. On the main page, added the Latest updates block, where you can display several products with the most recent date in the value of this characteristic.
You buy instructions in a text file. The files themselves are not provided. Integration implies installation exclusively on a clean version of Simpla CMS.
Changes that will be required besides the code:
In what follows, it is assumed that the characteristic, which stores the date of the last change of the product, has ID = 111. If another is used, then in the code it is necessary to replace 111 in two places with the correct ID value.
limit=X; Indicates the output of products, for example limit=6; means the last 6 updated products will be displayed.
There is no need to make changes to the database.
Created for Simpla CMS version 2.3.8.
Most likely will work for other 2.x versions too