I
I
IgorRastarov2017-09-13 12:42:11
MODX
IgorRastarov, 2017-09-13 12:42:11

How to get TV Parameter by product ID?

How to get TV Parameter by product ID? Wrote in a snippet

$page = $modx->getObject('modResource', $id); 
return $page->getTVValue('keywords');

Did not work out. Outputs nothing.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
display: block, 2017-09-13
@qork

Was the ID passed to the snippet? &id=`2`

R
Ruslan, 2017-09-13
@ruslan_aleev

Available via pdoField - https://docs.modx.pro/components/pdotools/snippets...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question