We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37846
    • 26 Posts
    I have modul - product displays
    ...
    $prodPackageName = $modx->getOption('prodPackageName',$scriptProperties,'');//shop
    $prodClassName = $modx->getOption('prodClassName',$scriptProperties,'');//ShopContent
    $prodTemplateId = $modx->getOption('prodTemplateId',$scriptProperties,1);
    ...


    and have shema
    <?xml version="1.0" encoding="UTF-8"?>
    <model package="shop" baseClass="xPDOObject" platform="mysql" defaultEngine="MyISAM" version="1.1">
    	<object class="ShopContent" table="shop_content" extends="xPDOSimpleObject">
    ...


    this module works on the parameters of the settings "prodPackageName""prodClassName" - how to make the parameters were taken from the goods
      • 4172
      • 5,888 Posts
      can't you just use migxLoopCollection?

      [[migxLoopCollection? 
      &packageName=`shop`
      &classname=`ShopContent`
      &where=`{"prodTemplateId":"5"}`
      &tpl=`@CODE:[[+id]]<br />`
      ]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 37846
        • 26 Posts
        I have 6 packageName and 6 classname. What I can edit???
        ...
        $prodPackageName = $modx->getOption('prodPackageName',$scriptProperties,'');//shop
        $prodClassName = $modx->getOption('prodClassName',$scriptProperties,'');//ShopContent
        $prodTemplateId = $modx->getOption('prodTemplateId',$scriptProperties,1);
        ...


        and - I use http://modx-shopkeeper.ru/documentation/modx-revolution/tovaryi-iz-otdelnoj-tabliczyi.html