Answer the question
In order to leave comments, you need to log in
Where are product names stored in MiniShop2 for ModX?
There was a task to get a list of all products from the database of a store running on CMS ModX and MiniShop2. I found a table where the basic information about the product is stored - modx_ms2_products . But there is no description or title. Tell me where to look for them?
Answer the question
In order to leave comments, you need to log in
Minisho2 is based on MODX resources and simply extends the main table, so product names => page name.
Accordingly, the titles will be in the modx_site_content table, pagetitle column.
Because of this, you can change the name of the product through modResource, like this:
$res = $modx->getObject('modResource', 15);
$res->set('pagetitle' , 'New title');
$res->save();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question