+1 vote
by
Tried so
[[!pdoPage?
&element=`msProducts`
&parents=`18`
&tpl=`tpl.msProducts.row`
&includeTVs=`brand`
]]
in the chunk [[+tv.brand]] another tried pdoResources
[[pdoResources? 
&parents=`18`
&depth=`0`
&tpl=`tpl.msProducts.row`
&includeTVs=`brand,price`
&select=`{"modResource":"id,pagetitle,content,price"}`
]]
pdoResources - in this case only displays additional tv created by me pdoPage - in this case, the tv displays only created by default miniShop2 And so neither one wants, and the fields in miniShop2 Obviously not enough, or not enough opportunities to set it up

2 Answers

0 votes
by
 
Best answer
Also faced with this problem. Solution:
When we take the extra box in pdoResources, we write:
&includeTVs=`tv.brand,tv.price`.
But in pdoPage need to specify separately the notorious prefix "tv." to read as follows:
&tvPrefix=`tv.`,
and then specify yourself custom fields without prefix. The snippet call would look like this:
[[!pdoPage?   
&element=`msProducts`
&parents=`18`
&tpl=`tpl.msProducts.row`
&tvPrefix=`tv.`
&includeTVs=`brand`
]]
+1 vote
by
wouldn't you &processTVs=`1` ?
by
Don't know, I have refused MODX now do shop on prestashop. Thank you.
...