Y
Y
Yuri Evstafyev2019-01-15 16:01:14
MODX
Yuri Evstafyev, 2019-01-15 16:01:14

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

1 answer(s)
M
maniiii, 2019-01-15
@yevstafyev

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();

will change the product name with id 15.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question